Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
LouisGac
committed
Mar 16, 2016
1 parent
47eb86e
commit 9d623e1
Showing
5 changed files
with
129 additions
and
74 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
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 |
---|---|---|
@@ -1,38 +1,36 @@ | ||
<div class="side-body"> | ||
<div class="row"> | ||
<div class="col-lg-12 content-right"> | ||
<br/> | ||
<div class="row"> | ||
<div class="col-lg-12 content-right"> | ||
<br/> | ||
|
||
<div class="jumbotron message-box"> | ||
<h2><?php eT("Delete survey"); ?></h2> | ||
<p class="lead"><?php eT("Warning"); ?></p> | ||
<p> | ||
<strong><?php eT("You are about to delete this survey"); ?> (<?php echo $surveyid; ?>)</strong><br /><br /> | ||
<?php eT("This process will delete this survey, and all related groups, questions answers and conditions."); ?><br /><br /> | ||
<?php eT("It will also delete any resources/files that have been uploaded for this survey."); ?><br /><br /> | ||
<?php eT("We recommend that before you delete this survey you export the entire survey from the main administration screen."); ?> | ||
|
||
<?php if(tableExists("{{survey_{$surveyid}}}")):?> | ||
<span class="text-warning"><?php eT("This survey is active and a responses table exists. If you delete this survey, these responses (and files) will be deleted. We recommend that you export the responses before deleting this survey."); ?></span><br /><br /> | ||
<?php endif; ?> | ||
|
||
|
||
<?php if (tableExists("{{tokens_{$surveyid}}}")): ?> | ||
<span class="text-warning"><?php eT("This survey has an associated tokens table. If you delete this survey this tokens table will be deleted. We recommend that you export or backup these tokens before deleting this survey."); ?><br /><br /> | ||
<?php endif; ?> | ||
|
||
</p> | ||
<p> | ||
<?php echo CHtml::beginForm($this->createUrl("admin/survey/sa/delete/surveyid/{$surveyid}"), 'post');?> | ||
<input type='hidden' name='delete' value='yes'> | ||
<input type='submit' class="btn btn-lg btn-warning" value='<?php eT("Delete survey"); ?>'> | ||
<input type='button' class="btn btn-lg btn-default" value='<?php eT("Cancel"); ?>' onclick="window.open('<?php echo $this->createUrl("admin/survey/sa/view/surveyid/$surveyid"); ?>', '_top')" /> | ||
<?php echo CHtml::endForm(); ?> | ||
</p> | ||
</div> | ||
<div class="jumbotron message-box"> | ||
<h2><?php eT("Delete survey"); ?></h2> | ||
<p class="lead"><?php eT("Warning"); ?></p> | ||
<p> | ||
<strong><?php eT("You are about to delete this survey"); ?> (<?php echo $surveyid; ?>)</strong><br /><br /> | ||
<?php eT("This process will delete this survey, and all related groups, questions answers and conditions."); ?><br /><br /> | ||
<?php eT("It will also delete any resources/files that have been uploaded for this survey."); ?><br /><br /> | ||
<?php eT("We recommend that before you delete this survey you export the entire survey from the main administration screen."); ?> | ||
|
||
<?php if(tableExists("{{survey_{$surveyid}}}")):?> | ||
<span class="text-warning"><?php eT("This survey is active and a responses table exists. If you delete this survey, these responses (and files) will be deleted. We recommend that you export the responses before deleting this survey."); ?></span><br /><br /> | ||
<?php endif; ?> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
<?php if (tableExists("{{tokens_{$surveyid}}}")): ?> | ||
<span class="text-warning"><?php eT("This survey has an associated tokens table. If you delete this survey this tokens table will be deleted. We recommend that you export or backup these tokens before deleting this survey."); ?><br /><br /> | ||
<?php endif; ?> | ||
|
||
</p> | ||
<p> | ||
<?php echo CHtml::beginForm($this->createUrl("admin/survey/sa/delete/surveyid/{$surveyid}"), 'post');?> | ||
<input type='hidden' name='delete' value='yes'> | ||
<input type='submit' class="btn btn-lg btn-warning" value='<?php eT("Delete survey"); ?>'> | ||
<input type='button' class="btn btn-lg btn-default" value='<?php eT("Cancel"); ?>' onclick="window.open('<?php echo Yii::app()->request->getUrlReferrer( Yii::app()->createUrl("admin/survey/sa/view/surveyid/$surveyid") , array() ); ?>', '_top')" /> | ||
<?php echo CHtml::endForm(); ?> | ||
</p> | ||
</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