Skip to content

Commit

Permalink
Fixed issue #09149: Enable token-based response persistence? lack of …
Browse files Browse the repository at this point in the history
…explanation

Dev: Surely some grammatical error , but more explanation.
  • Loading branch information
Shnoulle committed Sep 12, 2014
1 parent bfa0b48 commit 79964cf
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions application/views/admin/survey/subview/tabTokens_view.php
@@ -1,5 +1,5 @@
<div id='tokens'><ul>
<li><label for='anonymized'><?php $clang->eT("Anonymized responses?"); ?>
<li><label for='anonymized' title='<?php eT("If you set this to yes : no link between token table and survey table can be done. You can not use token information in your survey."); ?>'><?php $clang->eT("Anonymized responses?"); ?>

<script type="text/javascript"><!--
function alertPrivacy()
Expand Down Expand Up @@ -38,33 +38,37 @@ function alertPrivacy()
</select>
<?php } ?>
</li>

<li>
<label for='alloweditaftercompletion' title='<?php $clang->eT("With not anonymous survey: user can update his answer after completion, else user can add new answers without restriction."); ?>'><?php $clang->eT("Allow multiple responses or update responses with one token?"); ?></label>
<select id='alloweditaftercompletion' name='alloweditaftercompletion'>
<label for='tokenanswerspersistence' title='<?php $clang->eT("With not anonymous survey (and use left at 1): user can do the survey in several steps. If he close the survey and open it, its previous replies will be reloaded."); ?>'><?php $clang->eT("Enable token-based response persistence?"); ?></label>
<select id='tokenanswerspersistence' name='tokenanswerspersistence' onchange="javascript: if (document.getElementById('anonymized').value == 'Y') { alert('<?php $clang->eT("This option can't be set if the `Anonymized responses` option is active.","js"); ?>'); this.value='N';}">
<option value='Y'
<?php if ($esrow['alloweditaftercompletion'] == "Y") { ?>
<?php if ($esrow['tokenanswerspersistence'] == "Y") { ?>
selected='selected'
<?php } ?>
><?php $clang->eT("Yes"); ?></option>
<option value='N'
<?php if ($esrow['alloweditaftercompletion'] == "N") { ?> selected='selected' <?php } ?>
<?php if ($esrow['tokenanswerspersistence'] == "N") { ?>
selected='selected'
<?php } ?>
><?php $clang->eT("No"); ?></option>
</select>
</li>

<li>
<label for='tokenanswerspersistence'><?php $clang->eT("Enable token-based response persistence?"); ?></label>
<select id='tokenanswerspersistence' name='tokenanswerspersistence' onchange="javascript: if (document.getElementById('anonymized').value == 'Y') { alert('<?php $clang->eT("This option can't be set if the `Anonymized responses` option is active.","js"); ?>'); this.value='N';}">
<label for='alloweditaftercompletion' title='<?php $clang->eT("If token-based response persistence is enabled: user can update his answer after completion, else user can add new answers without restriction."); ?>'><?php $clang->eT("Allow multiple responses or update responses with one token?"); ?></label>
<select id='alloweditaftercompletion' name='alloweditaftercompletion'>
<option value='Y'
<?php if ($esrow['tokenanswerspersistence'] == "Y") { ?>
<?php if ($esrow['alloweditaftercompletion'] == "Y") { ?>
selected='selected'
<?php } ?>
><?php $clang->eT("Yes"); ?></option>
<option value='N'
<?php if ($esrow['tokenanswerspersistence'] == "N") { ?>
selected='selected'
<?php } ?>
<?php if ($esrow['alloweditaftercompletion'] == "N") { ?> selected='selected' <?php } ?>
><?php $clang->eT("No"); ?></option>
</select></li>
</select>
</li>

<li><label for='allowregister'><?php $clang->eT("Allow public registration?"); ?></label>
<select id='allowregister' name='allowregister'>
<option value='Y'
Expand Down Expand Up @@ -116,4 +120,4 @@ function alertPrivacy()
<input type='text' value="<?php echo $esrow['tokenlength']; ?>" name='tokenlength' id='tokenlength' size='4' maxlength='2' onkeypress="return goodchars(event,'0123456789')" />
</li>
</ul></div>


0 comments on commit 79964cf

Please sign in to comment.