cruge / views / ui / registration.php

<h1><?php echo ucwords(CrugeTranslator::t("registrarse"));?></h1>
<div class="form">
		$model:  es una instancia que implementa a ICrugeStoredUser
<?php $form = $this->beginWidget('CActiveForm', array(
)); ?>
<div class="row form-group-vert">
	<h6><?php echo ucfirst(CrugeTranslator::t("datos de la cuenta"));?></h6>
		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'>
			<?php echo $form->textField($model,'newPassword'); ?>
			<p class='hint'><?php echo CrugeTranslator::t(
				"su contraseńa, letras o digitos o los caracteres @#$%. minimo 6 simbolos.");?></p>
		<?php echo $form->error($model,'newPassword'); ?>
			function fnSuccess(data){
			function fnError(e){
				alert("error: "+e.responseText);
		<?php echo CHtml::ajaxbutton(
			CrugeTranslator::t("Generar una nueva clave")
			,array('success'=>new CJavaScriptExpression('fnSuccess'),
				'error'=>new CJavaScriptExpression('fnError'))
		); ?>

<!-- inicio de campos extra definidos por el administrador del sistema -->
	if(count($model->getFields()) > 0){
		echo "<div class='row form-group-vert'>";
		echo "<h6>".ucfirst(CrugeTranslator::t("perfil"))."</h6>";
		foreach($model->getFields() as $f){
			// aqui $f es una instancia que implementa a: ICrugeField
			echo "<div class='col'>";
			echo Yii::app()->user->um->getLabelField($f);
			echo Yii::app()->user->um->getInputField($model,$f);
			echo $form->error($model,$f->fieldname);
			echo "</div>";
		echo "</div>";
<!-- fin de campos extra definidos por el administrador del sistema -->

<!-- inicio - terminos y condiciones -->
	if(Yii::app()->user->um->getDefaultSystem()->getn('registerusingterms') == 1)
<div class='form-group-vert'>
	<h6><?php echo ucfirst(CrugeTranslator::t("terminos y condiciones"));?></h6>
	<?php echo CHtml::textArea('terms'
		); ?>
	<div><span class='required'>*</span><?php echo CrugeTranslator::t(Yii::app()->user->um->getDefaultSystem()->get('registerusingtermslabel')); ?></div>
	<?php echo $form->checkBox($model,'terminosYCondiciones'); ?>
	<?php echo $form->error($model,'terminosYCondiciones'); ?>
<!-- fin - terminos y condiciones -->
<?php } ?>

<!-- inicio pide captcha -->
<?php if(Yii::app()->user->um->getDefaultSystem()->getn('registerusingcaptcha') == 1) { ?>
<div class='form-group-vert'>
	<h6><?php echo ucfirst(CrugeTranslator::t("codigo de seguridad"));?></h6>
	<div class="row">
			<?php $this->widget('CCaptcha'); ?>
			<?php echo $form->textField($model,'verifyCode'); ?>
		<div class="hint"><?php echo CrugeTranslator::t("por favor ingrese los caracteres o digitos que vea en la imagen");?></div>
		<?php echo $form->error($model,'verifyCode'); ?>
<?php } ?>
<!-- fin pide captcha-->

<div class="row buttons">
	<?php Yii::app()->user->ui->tbutton("Registrarse"); ?>
<?php echo $form->errorSummary($model); ?>
<?php $this->endWidget(); ?>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.