Skip to content

Commit

Permalink
Fixed issue #17212: Confusing mandatory property for participant attr…
Browse files Browse the repository at this point in the history
…ibute fields
  • Loading branch information
c-schmitz committed Mar 29, 2021
1 parent 43df3f2 commit 93fa87d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions application/views/admin/token/managetokenattributes.php
Expand Up @@ -35,9 +35,9 @@
<thead> <tr>
<th><?php eT("Attribute field"); ?></th>
<th><?php eT("Field description"); ?></th>
<th><?php eT("Mandatory?"); ?></th>
<th title="<?php !$bEncrypted ? eT("Encryption is disabled because Sodium library isn't installed") : ''; ?>"><?php eT("Encrypted?"); ?></th>
<th><?php eT("Show during registration?") ?></th>
<th><?php eT("Mandatory during registration?"); ?></th>
<th title="<?php !$bEncrypted ? eT("Encryption is disabled because Sodium library isn't installed") : ''; ?>"><?php eT("Encrypted?"); ?></th>
<th><?php eT("Field caption"); ?></th>
<th><?php eT("CPDB mapping"); ?></th>
<th><?php eT("Example data"); ?></th>
Expand Down Expand Up @@ -79,11 +79,11 @@
<?php } ?>
</td>
<td>
<?php
<?php
$this->widget('yiiwheels.widgets.switch.WhSwitch', array(
'name' => "mandatory_{$sTokenField}",
'id'=>"mandatory_{$sTokenField}",
'value' => $tokenvalues['mandatory']=='Y'?'1':'0',
'name' => "show_register_{$sTokenField}",
'id'=>"show_register_{$sTokenField}",
'value' => $tokenvalues['show_register']=='Y'?'1':'0',
'onLabel'=>gT('On'),
'offLabel' => gT('Off'),
'htmlOptions'=>array(
Expand All @@ -95,27 +95,27 @@
<td>
<?php
$this->widget('yiiwheels.widgets.switch.WhSwitch', array(
'name' => "encrypted_{$sTokenField}",
'id'=>"encrypted_{$sTokenField}",
'value' => $tokenvalues['encrypted']=='Y'?'1':'0',
'name' => "mandatory_{$sTokenField}",
'id'=>"mandatory_{$sTokenField}",
'value' => $tokenvalues['mandatory']=='Y'?'1':'0',
'onLabel'=>gT('On'),
'offLabel' => gT('Off'),
'htmlOptions'=>array(
'disabled' => !$bEncrypted,
'disabled'=>empty($tokenvalues['coreattribute']) ? false : true,
)
));
?>
</td>
<td>
<?php
<?php
$this->widget('yiiwheels.widgets.switch.WhSwitch', array(
'name' => "show_register_{$sTokenField}",
'id'=>"show_register_{$sTokenField}",
'value' => $tokenvalues['show_register']=='Y'?'1':'0',
'name' => "encrypted_{$sTokenField}",
'id'=>"encrypted_{$sTokenField}",
'value' => $tokenvalues['encrypted']=='Y'?'1':'0',
'onLabel'=>gT('On'),
'offLabel' => gT('Off'),
'htmlOptions'=>array(
'disabled'=>empty($tokenvalues['coreattribute']) ? false : true,
'disabled' => !$bEncrypted,
)
));
?>
Expand Down

0 comments on commit 93fa87d

Please sign in to comment.