systemupdate.php 3.34 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
<?php
	/* formulario de edicion de CrugeSystem

		argumento:

		$model: instancia de ICrugeSession
	*/
?>

<?php
	if(Yii::app()->user->hasFlash('systemFormFlash'))  {
		echo "<div class='flash-success'>";
		echo Yii::app()->user->getFlash('systemFormFlash');
		echo "</div>";
	}
?>

<div class="form">
<?php $form = $this->beginWidget('CActiveForm', array(
    'id'=>'CrugeSystem-Form',
    'enableAjaxValidation'=>false,
    'enableClientValidation'=>false,
)); ?>
<div class="row form-group">
	<h6><?php echo ucwords(CrugeTranslator::t("opciones de sesion"));?></h6>
	<div class='col'>
		<?php echo $form->labelEx($model,'systemdown'); ?>
		<?php echo $form->checkBox($model,'systemdown'); ?>
		<?php echo $form->error($model,'systemdown'); ?>
	</div>
	<div class='col'>
		<?php echo $form->labelEx($model,'systemnonewsessions'); ?>
		<?php echo $form->checkBox($model,'systemnonewsessions'); ?>
		<?php echo $form->error($model,'systemnonewsessions'); ?>
	</div>
	<div class='col'>
		<?php echo $form->labelEx($model,'sessionmaxdurationmins'); ?>
		<?php echo $form->textField($model,'sessionmaxdurationmins'
			,array('size'=>5,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'sessionmaxdurationmins'); ?>
	</div>
</div>
<div class="row form-group">
	<h6><?php echo ucwords(CrugeTranslator::t("opciones de registro de usuarios"));?></h6>
	<div class='col'>
		<?php echo $form->labelEx($model,'registerusingcaptcha'); ?>
		<?php echo $form->checkBox($model,'registerusingcaptcha'); ?>
		<?php echo $form->error($model,'registerusingcaptcha'); ?>
	</div>
	<div class='col'>
		<?php echo $form->labelEx($model,'registerusingactivation'); ?>
		<?php echo $form->dropDownList($model,'registerusingactivation'
			,Yii::app()->user->um->getUserActivationOptions()); ?>
		<?php echo $form->error($model,'registerusingactivation'); ?>
	</div>
	<div class='col'>
		<?php echo $form->labelEx($model,'defaultroleforregistration'); ?>
		<?php echo $form->dropDownList($model,'defaultroleforregistration'
			,Yii::app()->user->rbac->getRolesAsOptions(CrugeTranslator::t(
				"--no asignar ningun rol--"))); ?>
		<?php echo $form->error($model,'defaultroleforregistration'); ?>
	</div>
	<div class='col'>
		<?php echo $form->labelEx($model,'registrationonlogin'); ?>
		<?php echo $form->checkBox($model,'registrationonlogin'); ?>
		<?php echo $form->error($model,'registrationonloginn'); ?>
	</div>
</div>

<div class="row form-group">
	<h6><?php echo ucwords(CrugeTranslator::t("terminos y condiciones de registro"));?></h6>
	<div class='row'>
		<div class='col'>
			<?php echo $form->labelEx($model,'registerusingterms'); ?>
			<?php echo $form->checkBox($model,'registerusingterms'); ?>
			<?php echo $form->error($model,'registerusingterms'); ?>
		</div>
		<div class='col'>
			<?php echo $form->labelEx($model,'registerusingtermslabel'); ?>
			<?php echo $form->textField($model,'registerusingtermslabel'
				,array('size'=>45,'maxlength'=>100)); ?>
			<?php echo $form->error($model,'registerusingtermslabel'); ?>
		</div>
	</div>
	<hr/>
	<div class='row'>
		<?php echo $form->labelEx($model,'terms'); ?>
		<?php echo $form->textArea($model,'terms'
			,array('rows'=>10,'cols'=>50)); ?>
		<?php echo $form->error($model,'terms'); ?>
	</div>
</div>


<div class="row buttons">
	<?php Yii::app()->user->ui->tbutton("Actualizar"); ?>
</div>
<?php echo $form->errorSummary($model); ?>
<?php $this->endWidget(); ?>
</div>