Skip to content

Commit

Permalink
Add copy button to pages list toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
marvindurot committed Jul 11, 2023
1 parent 6ca8d2f commit 6e4e9e9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions controllers/pages/_list_toolbar.htm
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,17 @@
data-stripe-load-indicator>
Delete selected
</button>
<button
class="btn btn-default wn-icon-clipboard"
disabled="disabled"
onclick="$(this).data('request-data', { checked: $('.control-list').listWidget('getChecked') })"
data-request="onCopy"
data-request-confirm="<?= e(trans('backend::lang.list.copy_selected_confirm')); ?>"
data-trigger-action="enable"
data-trigger=".control-list input[type=checkbox]"
data-trigger-condition="checked"
data-request-success="$(this).prop('disabled', 'disabled')"
data-stripe-load-indicator>
<?= e(trans('backend::lang.list.copy_selected')); ?>
</button>
</div>

0 comments on commit 6e4e9e9

Please sign in to comment.