This repository was archived by the owner on Jul 5, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathtemplate.php
More file actions
34 lines (29 loc) · 1.26 KB
/
template.php
File metadata and controls
34 lines (29 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<div class="structure<?php e($field->readonly(), ' structure-readonly') ?> builder<?php e($field->readonly(), ' builder-readonly') ?>"
data-field="builder"
data-api="<?php __($field->url('sort')) ?>"
data-sortable="<?php e($field->readonly(), 'false', 'true') ?>"
data-style="<?php echo $field->style() ?>">
<div class="builder-label">
<?php echo $field->headline() ?>
</div>
<div class="structure-entries builder-entries">
<?php if(!$field->entries()->count()): ?>
<div class="structure-empty">
<?php _l('fields.structure.empty') ?>
</div>
<?php else: ?>
<?php require(__DIR__ . DS . 'styles' . DS . 'items.php') ?>
<?php endif ?>
</div>
<div class="structure-entry builder-entry builder-add-container hidden">
<div class="builder-entry-quickform-container">
</div>
</div>
<div class="builder-add-buttons">
<?php foreach ($field->fieldsets as $fieldsetName => $fieldset):
$fieldset = $field->fieldset($fieldsetName);
?>
<a class="btn btn-rounded" data-quickform href="#" data-href="<?= purl($field->page, 'field/' . $field->name . '/builder/add?fieldset=' . $fieldsetName) ?>"><i class="icon icon-left fa fa-plus-circle"></i><?= i18n($fieldset->label) ?></a>
<?php endforeach ?>
</div>
</div>