Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'task/zoho-L41-T742-modals-ui-changes-one-commit'
- Loading branch information
Showing
68 changed files
with
41,228 additions
and
41,150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
application/extensions/admin/grid/MassiveActionsWidget/views/modals/cancel-apply.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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_cancelapply'); | ||
?> | ||
</div> | ||
</div> | ||
</div> |
80 changes: 80 additions & 0 deletions
80
application/extensions/admin/grid/MassiveActionsWidget/views/modals/cancel-delete.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.