Skip to content

Commit 36415a1

Browse files
committed
Updated buttons
1 parent 39d1aa9 commit 36415a1

32 files changed

+200
-170
lines changed

public/js/dist/all.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52976,12 +52976,12 @@ $.fn.sort_select_box = function () {
5297652976
/*
5297752977
HOW TO USE
5297852978
Create a Button looking like this:
52979-
<a href='{{ route('modal.show', 'user') }}' data-toggle="modal" data-target="#createModal" data-select='assigned_to' class="btn btn-sm btn-primary">New</a>
52979+
<a href='{{ route('modal.show', 'user') }}' data-toggle="modal" data-target="#createModal" data-select='assigned_to' class="btn btn-sm btn-theme">New</a>
5298052980
If you don't have access to Blade commands (like {{ and }}, etc), you can hard-code a URL as the 'href'
5298152981
data-toggle="modal" - required for Bootstrap Modals
5298252982
data-target="#createModal" - fixed ID for the modal, do not change
5298352983
data-select="assigned_to" - What is the *ID* of the select-dropdown that you're going to be adding to, if the modal-create was a success? Be on the lookout for duplicate ID's, it will confuse this library!
52984-
class="btn btn-sm btn-primary" - makes it look button-ey, feel free to change :)
52984+
class="btn btn-sm btn-theme" - makes it look button-ey, feel free to change :)
5298552985

5298652986
If you want to pass additional variables to the modal (In the Category Create one, for example, you can pass category_id), you can encode them as URL variables in the href
5298752987

public/js/dist/all.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/assets/js/snipeit_modals.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
1212
Create a Button looking like this:
1313
14-
<a href='{{ route('modal.show', 'user') }}' data-toggle="modal" data-target="#createModal" data-select='assigned_to' class="btn btn-sm btn-primary">New</a>
14+
<a href='{{ route('modal.show', 'user') }}' data-toggle="modal" data-target="#createModal" data-select='assigned_to' class="btn btn-sm btn-theme">New</a>
1515
1616
If you don't have access to Blade commands (like {{ and }}, etc), you can hard-code a URL as the 'href'
1717
1818
data-toggle="modal" - required for Bootstrap Modals
1919
data-target="#createModal" - fixed ID for the modal, do not change
2020
data-select="assigned_to" - What is the *ID* of the select-dropdown that you're going to be adding to, if the modal-create was a success? Be on the lookout for duplicate ID's, it will confuse this library!
21-
class="btn btn-sm btn-primary" - makes it look button-ey, feel free to change :)
21+
class="btn btn-sm btn-theme" - makes it look button-ey, feel free to change :)
2222
2323
If you want to pass additional variables to the modal (In the Category Create one, for example, you can pass category_id), you can encode them as URL variables in the href
2424

resources/lang/en-US/general.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@
648648
'set_password' => 'Set a Password',
649649
'upload_deleted' => 'Upload Deleted',
650650
'child_locations' => 'Child Locations',
651+
'append' => 'Append',
651652

652653
// Add form placeholders here
653654
'placeholders' => [

resources/views/account/accept/create.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
<input type="hidden" name="signature_output" id="signature_output">
102102
</div>
103103
<div class="col-md-12 col-sm-12 col-lg-12 col-xs-12 text-left">
104-
<button type="button" class="btn btn-sm btn-default clear" data-action="clear" id="clear_button">{{trans('general.clear_signature')}}</button>
104+
<button type="button" class="btn btn-sm btn-theme clear" data-action="clear" id="clear_button">{{trans('general.clear_signature')}}</button>
105105
</div>
106106
</div>
107107
</div>

resources/views/blade/input/location-select.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class="js-data-ajax"
5555
<div class="col-md-1 col-sm-1 text-left">
5656
@unless($hideNewButton)
5757
@can('create', Location::class)
58-
<a href='{{ route('modal.show', 'location') }}' data-toggle="modal" data-target="#createModal" data-select='{{ $name }}_location_select' class="btn btn-sm btn-primary">{{ trans('button.new') }}</a>
58+
<a href='{{ route('modal.show', 'location') }}' data-toggle="modal" data-target="#createModal" data-select='{{ $name }}_location_select' class="btn btn-sm btn-theme">{{ trans('button.new') }}</a>
5959
@endcan
6060
@endunless
6161
</div>

resources/views/custom_fields/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<h2 class="box-title">{{ trans('admin/custom_fields/general.fieldsets') }}</h2>
2222
<div class="box-tools pull-right">
2323
@can('create', \App\Models\CustomFieldset::class)
24-
<a href="{{ route('fieldsets.create') }}" class="btn btn-sm btn-primary" data-tooltip="true" title="{{ trans('admin/custom_fields/general.create_fieldset_title') }}">{{ trans('admin/custom_fields/general.create_fieldset') }}</a>
24+
<a href="{{ route('fieldsets.create') }}" class="btn btn-sm btn-theme" data-tooltip="true" title="{{ trans('admin/custom_fields/general.create_fieldset_title') }}">{{ trans('admin/custom_fields/general.create_fieldset') }}</a>
2525
@endcan
2626
</div>
2727
</div><!-- /.box-header -->
@@ -115,7 +115,7 @@ class="table table-striped snipe-table"
115115
<h2 class="box-title">{{ trans('admin/custom_fields/general.custom_fields') }}</h2>
116116
<div class="box-tools pull-right">
117117
@can('create', \App\Models\CustomField::class)
118-
<a href="{{ route('fields.create') }}" class="btn btn-sm btn-primary" data-tooltip="true" title="{{ trans('admin/custom_fields/general.create_field_title') }}">{{ trans('admin/custom_fields/general.create_field') }}</a>
118+
<a href="{{ route('fields.create') }}" class="btn btn-sm btn-theme" data-tooltip="true" title="{{ trans('admin/custom_fields/general.create_field_title') }}">{{ trans('admin/custom_fields/general.create_field') }}</a>
119119
@endcan
120120
</div>
121121

resources/views/departments/view.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@stop
1010

1111
@section('header_right')
12-
<a href="{{ route('departments.edit', ['department' => $department->id]) }}" class="btn btn-sm btn-primary pull-right">{{ trans('admin/departments/table.update') }} </a>
12+
<a href="{{ route('departments.edit', ['department' => $department->id]) }}" class="btn btn-sm btn-theme pull-right">{{ trans('admin/departments/table.update') }} </a>
1313
@stop
1414

1515
{{-- Page content --}}

resources/views/hardware/bulk.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@section('header_right')
11-
<a href="{{ URL::previous() }}" class="btn btn-sm btn-primary pull-right">
11+
<a href="{{ URL::previous() }}" class="btn btn-sm btn-theme pull-right">
1212
{{ trans('general.back') }}</a>
1313
@stop
1414

resources/views/hardware/edit.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
{!! $errors->first('asset_tag', '<span class="alert-msg"><i class="fas fa-times"></i> :message</span>') !!}
4747
</div>
4848
<div class="col-md-2 col-sm-12">
49-
<button class="add_field_button btn btn-default btn-sm" name="add_field_button">
49+
<button class="add_field_button btn btn-sm btn-theme" name="add_field_button">
5050
<x-icon type="plus" />
5151
<span class="sr-only">
5252
{{ trans('general.new') }}
@@ -86,7 +86,7 @@ class="col-md-3 control-label">{{ trans('admin/hardware/form.tag') }} {{ $i }}</
8686
{!! $errors->first('asset_tags.'.$i, '<span class="alert-msg"><i class="fas fa-times"></i> :message</span>') !!}
8787
</div>
8888
<div class="col-md-2 col-sm-12">
89-
<a href="#" class="remove_field btn btn-default btn-sm"><x-icon type="minus"/></a>
89+
<a href="#" class="remove_field btn btn-sm btn-theme"><x-icon type="minus"/></a>
9090
</div>
9191
</div>
9292
@include ('partials.forms.edit.serial', ['fieldname'=> 'serials['.$i.']', 'old_val_name' => 'serials.'.$i, 'translated_serial' => trans('admin/hardware/form.serial')])
@@ -357,7 +357,7 @@ function user_add(status_id) {
357357
box_html += '<input type="text" class="form-control" name="asset_tags[' + x + ']" value="{{ (($snipeSettings->auto_increment_prefix!='') && ($snipeSettings->auto_increment_assets=='1')) ? $snipeSettings->auto_increment_prefix : '' }}'+ auto_tag +'" required>';
358358
box_html += '</div>';
359359
box_html += '<div class="col-md-2 col-sm-12">';
360-
box_html += '<a href="#" class="remove_field btn btn-default btn-sm"><x-icon type="minus" /></a>';
360+
box_html += '<a href="#" class="remove_field btn btn-sm btn-theme"><x-icon type="minus" /></a>';
361361
box_html += '</div>';
362362
// box_html += '</div>';
363363
box_html += '</div>';

0 commit comments

Comments
 (0)