-
-
Notifications
You must be signed in to change notification settings - Fork 957
/
area.php
59 lines (58 loc) · 2.11 KB
/
area.php
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
$area = $areaForm['data'];
$widget = $areaForm['widget'];
?>
<div
id="<?= $this->getId('area-'.$index) ?>"
class="card map-area"
data-control="area"
data-area-color="<?= $area['color'] ?>"
data-index-value="<?= $index ?>"
>
<div
class="map-area-header p-3"
role="tab"
id="<?= $this->getId('area-header-'.$index) ?>"
>
<h5 class="map-area-title">
<?php if (!$this->previewMode AND $this->sortable) { ?>
<a
class="map-area-handle <?= $this->getId('area-handle-'.$index) ?>"
role="button">
<i class="fa fa-bars text-black-50"></i>
</a>
<?php } ?>
<span
class="badge border-circle"
style="background-color:<?= $area['color']; ?>"
> </span>
<a
data-toggle="collapse"
href="#<?= $this->getId('area-body-'.$index) ?>"
aria-expanded="true"
aria-controls="<?= $this->getId('area-body-'.$index) ?>"
role="button"
><?= $area['name']; ?></a>
<a
class="close text-danger"
aria-label="Remove"
<?php if (!$this->previewMode) { ?>
data-control="remove-area"
data-area-selector="#<?= $this->getId('area-'.$index) ?>"
data-confirm-message="<?= lang('admin::lang.alert_warning_confirm') ?>"
<?php } ?>
><i class="fa fa-times"></i></a>
</h5>
</div>
<div
id="<?= $this->getId('area-body-'.$index) ?>"
class="map-area-body p-3 collapse<?= $index == 1 ? ' show' : '' ?>"
role="tabpanel"
data-parent="#<?= $this->getId('areas') ?>"
aria-labelledby="<?= $this->getId('area-header-'.$index) ?>"
>
<?= $this->makePartial('maparea/area_form', ['widget' => $widget]) ?>
</div>
<input type="hidden" data-map-shape <?= $this->getMapShapeAttributes($index, $area); ?>>
</div>