Skip to content

Commit

Permalink
Dev Some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Apr 22, 2016
1 parent 9d0e878 commit 14002a6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 36 deletions.
1 change: 0 additions & 1 deletion application/models/QuestionGroup.php
Expand Up @@ -211,7 +211,6 @@ public function getbuttons()
// Find out if the survey is active to disable add-button
$oSurvey=Survey::model()->findByPk($this->sid);
$surveyIsActive = $oSurvey->active !== 'N';
$baselang = $oSurvey->language;
$button = '';

// Add question to this group
Expand Down
70 changes: 35 additions & 35 deletions application/views/admin/survey/subview/tabNotification_view.php
Expand Up @@ -9,61 +9,61 @@
</li>

<li><label for='datestamp'><?php eT("Date Stamp?"); ?></label>
<?php if ($esrow['active'] == "Y") { ?>
<?php if ($esrow['datestamp'] != "Y") {
eT("Responses will not be date stamped.");
} else {
eT("Responses will be date stamped.");
<?php if ($esrow['active'] == "Y") {
if ($esrow['datestamp'] != "Y") {
eT("Responses will not be date stamped.");
} else {
eT("Responses will be date stamped.");
} ?>
<span class='annotation'> <?php eT("Cannot be changed"); ?></span>
<?php echo CHtml::hiddenField('datestamp',$esrow['datestamp']); // Maybe use a readonly dropdown ? ?>
<?php } else { ?>
<?php echo CHtml::dropDownList('datestamp', $esrow['datestamp'],array("Y"=>gT("Yes",'unescaped'),"N"=>gT("No",'unescaped')),array('onchange'=>'alertDateStampAnonymization();')); ?>
<?php } ?>
<?php echo CHtml::hiddenField('datestamp',$esrow['datestamp']); // Maybe use a readonly dropdown ?
} else {
echo CHtml::dropDownList('datestamp', $esrow['datestamp'],array("Y"=>gT("Yes",'unescaped'),"N"=>gT("No",'unescaped')),array('onchange'=>'alertDateStampAnonymization();'));
} ?>
</li>

<li><label for='ipaddr'><?php eT("Save IP Address?"); ?></label>
<?php if ($esrow['active'] == "Y") { ?>
<?php if ($esrow['ipaddr'] != "Y") {
eT("Responses will not have the IP address logged.");
} else {
eT("Responses will have the IP address logged");
<?php if ($esrow['active'] == "Y") {
if ($esrow['ipaddr'] != "Y") {
eT("Responses will not have the IP address logged.");
} else {
eT("Responses will have the IP address logged");
} ?>
<span class='annotation'> <?php eT("Cannot be changed"); ?></span>
<?php echo CHtml::hiddenField('ipaddr',$esrow['ipaddr']); // Maybe use a readonly dropdown? ?>
<?php } else { ?>
<?php echo CHtml::dropDownList('ipaddr', $esrow['ipaddr'],array("Y"=>gT("Yes",'unescaped'),"N"=>gT("No",'unescaped'))); ?>
<?php } ?>
<?php echo CHtml::hiddenField('ipaddr',$esrow['ipaddr']); // Maybe use a readonly dropdown?
} else {
echo CHtml::dropDownList('ipaddr', $esrow['ipaddr'],array("Y"=>gT("Yes",'unescaped'),"N"=>gT("No",'unescaped')));
} ?>
</li>

<li><label for='refurl'><?php eT("Save referrer URL?"); ?></label>

<?php if ($esrow['active'] == "Y") { ?>
<?php if ($esrow['refurl'] != "Y") {
eT("Responses will not have their referring URL logged.");
} else {
eT("Responses will have their referring URL logged.");
<?php if ($esrow['active'] == "Y") {
if ($esrow['refurl'] != "Y") {
eT("Responses will not have their referring URL logged.");
} else {
eT("Responses will have their referring URL logged.");
} ?>
<span class='annotation'> <?php eT("Cannot be changed"); ?></span>
<?php echo CHtml::hiddenField('refurl',$esrow['refurl']); // Maybe use a readonly dropdown ??>
<?php } else { ?>
<?php echo CHtml::dropDownList('refurl', $esrow['refurl'],array("Y"=>gT("Yes",'unescaped'),"N"=>gT("No",'unescaped'))); ?>
<?php } ?>
<?php echo CHtml::hiddenField('refurl',$esrow['refurl']); // Maybe use a readonly dropdown ?
} else {
echo CHtml::dropDownList('refurl', $esrow['refurl'],array("Y"=>gT("Yes",'unescaped'),"N"=>gT("No",'unescaped')));
} ?>
</li>

<li><label for='savetimings'><?php eT("Save timings?"); ?></label>
<?php
if ($esrow['active']=="Y")
{ ?>
{ ?>
<?php if ($esrow['savetimings'] != "Y") { eT("Timings will not be saved.");}
else { eT("Timings will be saved.");} ?>
else { eT("Timings will be saved.");} ?>
<span class='annotation'> <?php eT("Cannot be changed"); ?></span>
<?php echo CHtml::hiddenField('savetimings',$esrow['savetimings']); // Maybe use a readonly dropdown ??>
<?php }
else
{ ?>
<?php echo CHtml::dropDownList('savetimings', $esrow['savetimings'],array("Y"=>gT("Yes",'unescaped'),"N"=>gT("No",'unescaped'))); ?>
<?php } ?>
<?php echo CHtml::hiddenField('savetimings',$esrow['savetimings']); // Maybe use a readonly dropdown ?
}
else
{
echo CHtml::dropDownList('savetimings', $esrow['savetimings'],array("Y"=>gT("Yes",'unescaped'),"N"=>gT("No",'unescaped')));
} ?>
</li>

<li><label for='assessments'><?php eT("Enable assessment mode?"); ?></label>
Expand Down

0 comments on commit 14002a6

Please sign in to comment.