Skip to content

Commit

Permalink
add span to backpack button text
Browse files Browse the repository at this point in the history
  • Loading branch information
pxpm committed Aug 14, 2024
1 parent 39f5133 commit 27bfb1a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/resources/views/crud/buttons/create.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@if ($crud->hasAccess('create'))
<a href="{{ url($crud->route.'/create') }}" class="btn btn-primary" data-style="zoom-in">
<span><i class="la la-plus"></i> {{ trans('backpack::crud.add') }} {{ $crud->entity_name }}</span>
<span><i class="la la-plus"></i> <span class="create-button-text-span">{{ trans('backpack::crud.add') }} {{ $crud->entity_name }}</span></span>
</a>
@endif
2 changes: 1 addition & 1 deletion src/resources/views/crud/buttons/delete.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@if ($crud->hasAccess('delete', $entry))
<a href="javascript:void(0)" onclick="deleteEntry(this)" data-route="{{ url($crud->route.'/'.$entry->getKey()) }}" class="btn btn-sm btn-link" data-button-type="delete">
<span><i class="la la-trash"></i> {{ trans('backpack::crud.delete') }}</span>
<span><i class="la la-trash"></i> <span class="delete-button-text-span">{{ trans('backpack::crud.delete') }}</span></span>
</a>
@endif

Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/crud/buttons/quick.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
@endforeach
>
@if ($icon) <i class="{{ $icon }}"></i> @endif
{{ $label }}
<span class="{{$button->name}}-button-text-span">{{ $label }}</span>
</{{ $wrapper['element'] }}>
@endif

Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/crud/buttons/reorder.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@if ($crud->get('reorder.enabled') && $crud->hasAccess('reorder'))
<a href="{{ url($crud->route.'/reorder') }}" class="btn btn-outline-primary" data-style="zoom-in">
<span><i class="la la-arrows"></i> {{ trans('backpack::crud.reorder') }} {{ $crud->entity_name_plural }}</span>
<span><i class="la la-arrows"></i> <span class="reorder-button-text-span">{{ trans('backpack::crud.reorder') }} {{ $crud->entity_name_plural }}</span></span>
</a>
@endif
2 changes: 1 addition & 1 deletion src/resources/views/crud/buttons/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{{-- Single edit button --}}
<a href="{{ url($crud->route.'/'.$entry->getKey().'/show') }}" class="btn btn-sm btn-link">
<span><i class="la la-eye"></i> {{ trans('backpack::crud.preview') }}</span>
<span><i class="la la-eye"></i> <span class="show-button-text-span">{{ trans('backpack::crud.preview') }}</span></span>
</a>

@else
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/crud/buttons/update.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{{-- Single edit button --}}
<a href="{{ url($crud->route.'/'.$entry->getKey().'/edit') }}" class="btn btn-sm btn-link">
<span><i class="la la-edit"></i> {{ trans('backpack::crud.edit') }}</span>
<span><i class="la la-edit"></i> <span class="update-button-text-span">{{ trans('backpack::crud.edit') }}</span></span>
</a>

@else
Expand Down

0 comments on commit 27bfb1a

Please sign in to comment.