/
cancel-delete.php
80 lines (73 loc) · 2.73 KB
/
cancel-delete.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
if (isset($aAction['showSelected'])) {
$showSelected = $aAction['showSelected'];
} else {
$showSelected = 'no';
}
if (isset($aAction['selectedUrl'])) {
$selectedUrl = $aAction['selectedUrl'];
} else {
$selectedUrl = '#';
}
if (isset($aAction['largeModalView']) && $aAction['largeModalView']) {
$largeModalView = 'modal-lg';
}else{
$largeModalView = '';
}
?>
<!-- Modal confirmation for <?php
echo $aAction['action']; ?> -->
<div id="massive-actions-modal-<?php
echo $this->gridid; ?>-<?php
echo $aAction['action']; ?>-<?php
echo $key; ?>"
class="modal fade"
role="dialog"
data-keepopen="<?php echo $aAction['keepopen']; ?>"
data-show-selected="<?php echo $showSelected; ?>"
data-selected-url="<?php echo $selectedUrl ?>"
>
<div class="modal-dialog <?php echo $largeModalView?>">
<!-- Modal content-->
<div class="modal-content" style="text-align:left; color:#000">
<?php
Yii::app()->getController()->renderPartial(
'/layouts/partial_modals/modal_header',
['modalTitle' => $aAction['sModalTitle']]
);
?>
<div class="modal-body">
<div class='modal-body-text'><?php
echo $aAction['htmlModalBody']; ?></div>
<!-- shows list of selected items in the modal-->
<div class="selected-items-list"></div>
<?php
if (isset($aAction['aCustomDatas'])) { ?>
<!--
Custom datas needed for action defined directly in the widget call.
Always hidden in Yes/No case.
For specific input (like text, selector, etc) that should be filled by user
parse a form to htmlModalBody and attribute to the wanted input the class "custom-data"
-->
<div class="custom-modal-datas hidden">
<?php
foreach ($aAction['aCustomDatas'] as $aCustomData) { ?>
<input
class="custom-data"
type="hidden"
name="<?php
echo $aCustomData['name']; ?>"
value="<?php
echo $aCustomData['value']; ?>"/>
<?php
} ?>
</div>
<?php
} ?>
</div>
<?php
Yii::app()->getController()->renderPartial('/layouts/partial_modals/modal_footer_canceldelete');
?>
</div>
</div>
</div>