Skip to content

Commit

Permalink
Fixed issue #9979: Mandatory fields on the registration page don't ha…
Browse files Browse the repository at this point in the history
…ve an asterisk (*) beside them
  • Loading branch information
c-schmitz committed Aug 25, 2016
1 parent 435d551 commit e7bfb14
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions application/views/register/registerForm.php
Expand Up @@ -13,14 +13,14 @@
</div>
</div>
<div class='form-group col-sm-12'>
<label for='register_email' class='control-label col-md-4'><?php eT("Email address:"); ?></label>
<label for='register_email' class='control-label col-md-4'><span class="text-danger asterisk"></span> <?php eT("Email address:"); ?></label>
<div class="col-sm-12 col-md-6">
<?php echo CHtml::textField('register_email', $sEmail,array('id'=>'register_email','class'=>'form-control input-sm','required'=>'required')); ?>
</div>
</div>
<?php foreach($aExtraAttributes as $key=>$aExtraAttribute){ ?>
<div class='form-group col-sm-12'>
<label for="register_<?php echo $key; ?>" class='control-label col-md-4'><?php echo $aExtraAttribute['caption']; ?><?php echo $aExtraAttribute['mandatory'] == 'Y' ? '*' : ""; ?></label>
<label for="register_<?php echo $key; ?>" class='control-label col-md-4'><?php echo $aExtraAttribute['mandatory'] == 'Y' ? '<span class="text-danger asterisk"></span>' : ""; ?> <?php echo $aExtraAttribute['caption']; ?></label>
<div class="col-sm-12 col-md-6">
<?php echo CHtml::textField("register_{$key}", $aAttribute[$key],array('id'=>"register_{$key}",'class'=>'form-control input-sm')); ?>
</div>
Expand All @@ -45,6 +45,13 @@
</div>
</div>
<?php } ?>
<div class='form-group col-sm-12'>
<div class='col-md-4'></div>
<div class="col-sm-12 col-md-6">
<?php printf(gT('Fields marked with an asterisk (%s) are mandatory.'),'<span class="text-danger asterisk"></span>'); ?>
</div>
</div>

<div class='form-group col-sm-12'>
<div class="col-sm-12 col-md-3 col-md-offset-9">
<?php echo CHtml::submitButton(gT("Continue",'unescaped'),array('class'=>'btn-default btn-block btn','id'=>'register','name'=>'register')); ?>
Expand Down

0 comments on commit e7bfb14

Please sign in to comment.