Skip to content

Commit

Permalink
Update list toolbar to latest spec
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Feb 9, 2024
1 parent 3f737c5 commit e014a0d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/Scaffold/Console/controller/_list_toolbar.stub
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<div data-control="toolbar">
<div data-control="toolbar loader-container">
<a
href="<?= Backend::url('{{namespace_path}}/{{lower_name}}/create') ?>"
class="btn btn-primary oc-icon-plus">
<?= e(trans('backend::lang.list.create_button', ['name'=>'{{title_singular_name}}'])) ?>
class="btn btn-primary">
<i class="icon-plus"></i>
<?= __("New :name", ['name' => '{{title_singular_name}}']) ?>
</a>


<div class="toolbar-divider"></div>

<button
class="btn btn-danger oc-icon-trash-o"
class="btn btn-secondary"
data-request="onDelete"
data-request-message="<?= __("Deleting...") ?>"
data-request-confirm="<?= __("Are you sure?") ?>"
data-list-checked-trigger
data-list-checked-request
data-stripe-load-indicator
disabled>
<?= e(trans('backend::lang.list.delete_selected')) ?>
<i class="icon-delete"></i>
<?= __("Delete") ?>
</button>
</div>

0 comments on commit e014a0d

Please sign in to comment.