-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev #T1052: Group Summary: Move check logic and export under tools (#…
…1990) Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
- Loading branch information
1 parent
248cf10
commit 6894a81
Showing
5 changed files
with
117 additions
and
65 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
application/extensions/TopbarWidget/views/includes/editGroupToolsDropdownItems.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,19 @@ | ||
<?php if($hasSurveyContentReadPermission): ?> | ||
<!-- Check survey logic --> | ||
<li> | ||
<a class="pjax" href="<?php echo Yii::App()->createUrl("admin/expressions/sa/survey_logic_file/sid/{$surveyid}/gid/{$gid}/"); ?>"> | ||
<span class="icon-expressionmanagercheck"></span> | ||
<?php eT("Check logic"); ?> | ||
</a> | ||
</li> | ||
<?php endif; ?> | ||
|
||
<?php if($hasSurveyContentExportPermission):?> | ||
<!-- Export --> | ||
<li> | ||
<a href="<?php echo Yii::App()->createUrl("admin/export/sa/group/surveyid/$surveyid/gid/$gid");?>"> | ||
<span class="icon-export"></span> | ||
<?php eT("Export"); ?> | ||
</a> | ||
</li> | ||
<?php endif; ?> |
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
55 changes: 55 additions & 0 deletions
55
application/extensions/TopbarWidget/views/includes/groupToolsDropdownItems.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,55 @@ | ||
<?php if($hasSurveyContentReadPermission): ?> | ||
<!-- Check survey logic --> | ||
<li> | ||
<a class="pjax" href="<?php echo Yii::App()->createUrl("admin/expressions/sa/survey_logic_file/sid/{$surveyid}/gid/{$gid}/"); ?>"> | ||
<span class="icon-expressionmanagercheck"></span> | ||
<?php eT("Check logic"); ?> | ||
</a> | ||
</li> | ||
<?php endif; ?> | ||
|
||
<?php if($hasSurveyContentExportPermission):?> | ||
<!-- Export --> | ||
<li> | ||
<a href="<?php echo Yii::App()->createUrl("admin/export/sa/group/surveyid/$surveyid/gid/$gid");?>"> | ||
<span class="icon-export"></span> | ||
<?php eT("Export"); ?> | ||
</a> | ||
</li> | ||
<?php endif; ?> | ||
|
||
<?php if($hasSurveyContentDeletePermission):?> | ||
<!-- Delete --> | ||
<?php if( $oSurvey->active != "Y" ):?> | ||
<?php if(is_null($condarray)):?> | ||
<?php // can delete group and question ?> | ||
<li> | ||
<a href="#" onclick="return false;" | ||
data-toggle="modal" | ||
data-target="#confirmation-modal" | ||
data-onclick='(function() { <?php echo convertGETtoPOST(Yii::app()->createUrl("questionGroupsAdministration/delete/", ["asJson" => true, "surveyid" => $surveyid, "gid"=>$gid])); ?> })' | ||
data-message="<?php eT("Deleting this group will also delete any questions and answers it contains. Are you sure you want to continue?","js"); ?>" | ||
> | ||
<span class="fa fa-trash"></span> | ||
<?php eT("Delete"); ?> | ||
</a> | ||
</li> | ||
<?php else: ?> | ||
<?php // there is at least one question having a condition on its content ?> | ||
<li class="disabled"> | ||
<a class="btntooltip" disabled data-toggle="tooltip" data-placement="bottom" title="<?php eT("Impossible to delete this group because there is at least one question having a condition on its content"); ?>" > | ||
<span class="fa fa-trash"></span> | ||
<?php eT("Delete"); ?> | ||
</a> | ||
</li> | ||
<?php endif; ?> | ||
<?php else:?> | ||
<!-- Activated --> | ||
<li class="disabled"> | ||
<a class="btntooltip" disabled data-toggle="tooltip" data-placement="bottom" title="<?php eT("You can't delete this question group because the survey is currently active."); ?>" > | ||
<span class="fa fa-trash"></span> | ||
<?php eT("Delete"); ?> | ||
</a> | ||
</li> | ||
<?php endif; ?> | ||
<?php endif; ?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- Edit button --> | ||
<?php if($hasSurveyContentUpdatePermission): ?> | ||
<a class="btn btn-success pjax" href="<?php echo Yii::App()->createUrl("questionGroupsAdministration/edit/surveyid/{$surveyid}/gid/{$gid}/"); ?>" role="button"> | ||
<span class="icon-edit"></span> | ||
<?php eT("Edit");?> | ||
</a> | ||
<?php endif; ?> |