Source

cruge / views / ui / registration.php

Diff from to

views/ui/registration.php

 )); ?>
 <div class="row form-group-vert">
 	<h6><?php echo ucfirst(CrugeTranslator::t("datos de la cuenta"));?></h6>
-	<div class="col">
-		<?php echo $form->labelEx($model,'username'); ?>
-		<div class='item'>
-			<?php echo $form->textField($model,'username'); ?>
-			<p class='hint'><?php echo CrugeTranslator::t(
-				"nombre de usuario, solo letras o numeros empezando por letras");?></p>
-		</div>
-		<?php echo $form->error($model,'username'); ?>
-	</div>
-	<div class="col">
-		<?php echo $form->labelEx($model,'email'); ?>
-		<div class='item'>
-			<?php echo $form->textField($model,'email'); ?>
-			<p class='hint'><?php echo CrugeTranslator::t(
-				"su correo electronico");?></p>
-		</div>
-		<?php echo $form->error($model,'email'); ?>
-	</div>
+	<?php 
+		foreach (CrugeUtil::config()->availableAuthModes as $authmode){
+			echo "<div class='col'>";
+			echo $form->labelEx($model,$authmode);
+			echo $form->textField($model,$authmode);
+			echo $form->error($model,$authmode);
+			echo "</div>";
+		}
+	?>
 	<div class="col">
 		<?php echo $form->labelEx($model,'newPassword'); ?>
 		<div class='item'>