Skip to content

Commit 6e4e9e9

Browse files
author
Marvin Durot
committed
Add copy button to pages list toolbar
1 parent 6ca8d2f commit 6e4e9e9

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

controllers/pages/_list_toolbar.htm

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,17 @@
1818
data-stripe-load-indicator>
1919
Delete selected
2020
</button>
21+
<button
22+
class="btn btn-default wn-icon-clipboard"
23+
disabled="disabled"
24+
onclick="$(this).data('request-data', { checked: $('.control-list').listWidget('getChecked') })"
25+
data-request="onCopy"
26+
data-request-confirm="<?= e(trans('backend::lang.list.copy_selected_confirm')); ?>"
27+
data-trigger-action="enable"
28+
data-trigger=".control-list input[type=checkbox]"
29+
data-trigger-condition="checked"
30+
data-request-success="$(this).prop('disabled', 'disabled')"
31+
data-stripe-load-indicator>
32+
<?= e(trans('backend::lang.list.copy_selected')); ?>
33+
</button>
2134
</div>

0 commit comments

Comments
 (0)