diff --git a/application/views/admin/token/managetokenattributes.php b/application/views/admin/token/managetokenattributes.php index 56c56cd6f7e..a1aedffd27c 100644 --- a/application/views/admin/token/managetokenattributes.php +++ b/application/views/admin/token/managetokenattributes.php @@ -35,9 +35,9 @@ - - "> + + "> @@ -79,11 +79,11 @@ - 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( @@ -95,27 +95,27 @@ 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, ) )); ?> - 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, ) )); ?>