Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #T1055: Optimization open/closed-access mode and survey a…
…ctivation screens (#2097)
- Loading branch information
1 parent
974a09f
commit 4f3197a
Showing
6 changed files
with
105 additions
and
47 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
31 changes: 31 additions & 0 deletions
31
application/views/admin/token/afterDeleteParticipantsTable.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,31 @@ | ||
<?php | ||
/** | ||
* View which will appear, if the particpants table is deleted. | ||
*/ | ||
?> | ||
<div class="side-body <?php echo getSideBodyClass(false); ?>"> | ||
<div class="row welcom survey-action"> | ||
<div class="col-lg-12 content-right"> | ||
<div class="jumbotron message-box"> | ||
<h3 class="lead"><?php eT('Survey participants table deleted'); ?></h3> | ||
<br /> <br /> | ||
<p> | ||
<?php eT('The survey participants table has been deleted and your survey has been switched back to open-access mode. Participants no longer require an access code to access the survey.'); ?> | ||
<br /> <br /> | ||
<?php eT('A backup of this table has been made and can be accessed by your administrator.'); ?> | ||
<br /> | ||
<?php echo '('. $backupTableName .')'; ?> | ||
<br /> <br /> | ||
<?php eT("You can switch back to closed-access mode at any time. Navigate to Settings --> Survey participants and click on the ''Switch to closed-access mode'' button."); ?> | ||
<br /><br /> | ||
<input | ||
class="btn btn-default" | ||
type="submit" | ||
value="<?php eT('Main Admin Screen'); ?>" | ||
onclick="window.open( | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
'<?php echo $this->createUrl("surveyAdministration/view/surveyid/{$iSurveyId}"); ?>', | ||
'_top'" /> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* Delete Participants Table view | ||
*/ | ||
?> | ||
<div class="side-body <?php echo getSideBodyClass(false); ?>"> | ||
<div class="row welcom survey-action"> | ||
<div class="col-lg-12 content-right"> | ||
<div class="jumbotron message-box"> | ||
<h3 class="lead"><?php eT('Delete survey participants table'); ?></h3> | ||
<p> | ||
<?php eT('Delete participants table will switch the survey back to open-access mode.'); ?> | ||
<br /> <br /> | ||
<?php eT('Access codes will no longer be required to access this survey.'); ?> | ||
<br /> <br /> | ||
<?php eT('A backup of this table will be made if you proceed. Your system administrator will be able to access this table.'); ?> | ||
<br /> | ||
<?php echo '('. $backupTableName .')'; ?> | ||
<br /> <br /> | ||
<?php eT("You can switch back to closed-access mode at any time. Navigate to Settings --> Survey participants and click on the 'Switch to closed-access mode' button."); ?> | ||
<br /> <br /> | ||
</p> | ||
<input | ||
class="btn btn-default" | ||
type="submit" | ||
value="<?php eT('Cancel'); ?>" | ||
onclick="window.open( | ||
'<?php echo $this->createUrl("admin/tokens/sa/index/surveyid/{$iSurveyId}"); ?>', | ||
'_top')" /> | ||
<input | ||
class="btn btn-danger" | ||
type='submit' | ||
value="<?php eT('Delete table'); ?>" | ||
onclick="window.open( | ||
'<?php echo $this->createUrl("admin/tokens/sa/kill/surveyid/{$iSurveyId}/ok/Y"); ?>', | ||
'_top')" /> | ||
|
||
</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
Syntax error in the JS here