2016-07-21 16:55:03 +00:00
|
|
|
<div class="field-repeater"
|
|
|
|
|
data-control="fieldrepeater"
|
|
|
|
|
data-sortable-container="#<?= $this->getId('items') ?>"
|
|
|
|
|
data-sortable-handle=".<?= $this->getId('items') ?>-handle">
|
2015-03-04 08:05:32 +00:00
|
|
|
|
2017-01-27 10:27:27 +00:00
|
|
|
<div class="field-repeater-buttons">
|
|
|
|
|
<a href="javascript:;" class="item repeater-collapse-all">
|
|
|
|
|
<?= e(trans('backend::lang.dashboard.collapse_all')) ?>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a href="javascript:;" class="item repeater-expand-all">
|
|
|
|
|
<?= e(trans('backend::lang.dashboard.expand_all')) ?>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
2015-03-23 09:03:37 +00:00
|
|
|
<ul id="<?= $this->getId('items') ?>" class="field-repeater-items">
|
2015-03-05 08:02:23 +00:00
|
|
|
<?php foreach ($this->formWidgets as $index => $widget): ?>
|
|
|
|
|
<?= $this->makePartial('repeater_item', [
|
|
|
|
|
'widget' => $widget,
|
|
|
|
|
'indexValue' => $index
|
|
|
|
|
]) ?>
|
|
|
|
|
<?php endforeach ?>
|
2015-03-23 09:03:37 +00:00
|
|
|
</ul>
|
2015-03-04 08:05:32 +00:00
|
|
|
|
|
|
|
|
<div class="field-repeater-add-item loading-indicator-container indicator-center">
|
|
|
|
|
<a
|
|
|
|
|
href="javascript:;"
|
2016-07-21 22:38:32 +00:00
|
|
|
data-request="<?= $this->getEventHandler('onAddItem') ?>"
|
2016-07-23 04:22:36 +00:00
|
|
|
data-load-indicator>
|
2015-03-05 08:02:23 +00:00
|
|
|
<?= e(trans($prompt)) ?>
|
2015-03-04 08:05:32 +00:00
|
|
|
</a>
|
|
|
|
|
</div>
|
2015-03-05 08:02:23 +00:00
|
|
|
|
2015-03-04 08:05:32 +00:00
|
|
|
</div>
|