Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #17500: When mass-deleting, list survey names and ids to …
…be deleted (#2100) * Fixed issue #17500: When mass-deleting, list survey names and ids to be deleted * Fixed issue #17500: When mass-deleting, list survey names and ids to be deleted - Removed hungarian notation - Make sure the input is an array * Fixed issue #17500: When mass-deleting, list survey names and ids to be deleted - Fix renderItemsSelected() Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
- Loading branch information
1 parent
f40c560
commit ada1d9c
Showing
5 changed files
with
120 additions
and
1 deletion.
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
37 changes: 37 additions & 0 deletions
37
...tion/extensions/admin/survey/ListSurveysWidget/views/massive_actions/_selected_survey.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,37 @@ | ||
<?php | ||
/** | ||
* This view display the result of selected surveys. It's rendered via ajax for the confirmation modal in survey list | ||
* | ||
* @var $aResults The array containing the result of each survey selection | ||
*/ | ||
?> | ||
<hr> | ||
<table class="table table-striped"> | ||
<thead> | ||
<th><?php eT('Survey ID');?></th> | ||
<th><?php eT('Title');?></th> | ||
<th><?php eT('Status');?></th> | ||
</thead> | ||
|
||
<tbody> | ||
<?php foreach($aResults as $iSid => $result):?> | ||
<tr> | ||
<td> | ||
<?php echo $iSid;?> | ||
</td> | ||
<td> | ||
<?php echo $result['title'];?> | ||
</td> | ||
<?php if ($result['result']):?> | ||
<td class="text-success"> | ||
<?php eT('Selected'); ?> | ||
</td> | ||
<?php else: ?> | ||
<td class="text-warning"> | ||
<?php echo $result['error'] ; ?> | ||
</td> | ||
<?php endif;?> | ||
</tr> | ||
<?php endforeach;?> | ||
</tbody> | ||
</table> |
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