54 lines
2.4 KiB
HTML
54 lines
2.4 KiB
HTML
<div data-control="toolbar">
|
|
<a
|
|
data-control="popup"
|
|
data-size="huge"
|
|
data-handler="onRelationButtonCreate"
|
|
href="javascript:;"
|
|
class="btn btn-sm btn-secondary oc-icon-file">
|
|
<?= e(trans('backend::lang.relation.create_name', ['name' => trans($relationLabel)])) ?>
|
|
</a>
|
|
<?php if ($relationViewMode == 'single'): ?>
|
|
<button
|
|
class="btn btn-sm btn-secondary oc-icon-trash-o"
|
|
data-request="onRelationButtonDelete"
|
|
data-request-confirm="<?= e(trans('backend::lang.relation.delete_confirm')) ?>"
|
|
data-stripe-load-indicator>
|
|
<?= e(trans('backend::lang.relation.delete')) ?>
|
|
</button>
|
|
<?php else: ?>
|
|
<button
|
|
class="btn btn-sm btn-secondary oc-icon-trash-o"
|
|
onclick="$(this).data('request-data', {
|
|
checked: $('#<?= $this->relationGetId('view') ?> .control-list').listWidget('getChecked')
|
|
})"
|
|
disabled="disabled"
|
|
data-request="onRelationButtonDelete"
|
|
data-request-confirm="<?= e(trans('backend::lang.relation.delete_confirm')) ?>"
|
|
data-trigger-action="enable"
|
|
data-trigger="#<?= $this->relationGetId('view') ?> .control-list input[type=checkbox]"
|
|
data-trigger-condition="checked"
|
|
data-stripe-load-indicator>
|
|
<?= e(trans('backend::lang.relation.delete')) ?>
|
|
</button>
|
|
<?php endif ?>
|
|
<button
|
|
class="btn btn-sm btn-secondary oc-icon-picture-o"
|
|
onclick="$(this).data('request-data', {
|
|
checked: $('#<?= $this->relationGetId('view') ?> .control-list').listWidget('getChecked')
|
|
})"
|
|
disabled="disabled"
|
|
data-request="onRelationButtonSetFront"
|
|
data-request-confirm="<?= e(trans('graker.photoalbums::lang.messages.set_front')) ?>"
|
|
data-trigger-action="enable"
|
|
data-trigger="#<?= $this->relationGetId('view') ?> .control-list input[type=checkbox]"
|
|
data-trigger-condition="checked"
|
|
data-stripe-load-indicator>
|
|
<?= e(trans('graker.photoalbums::lang.plugin.set_front_button')) ?>
|
|
</button>
|
|
<a
|
|
href="<?= $this->getReorderPath() ?>"
|
|
class="btn btn-sm btn-secondary oc-icon-refresh">
|
|
<?= e(trans('graker.photoalbums::lang.plugin.reorder_button')) ?>
|
|
</a>
|
|
</div>
|