Esempio n. 1
0
if (!isset(Yii::app()->session['social_email'])) {
    ?>
				<h4><?php 
    echo Yii::t('RegistrationModule.captcha', 'page.registration.captcha.title');
    ?>
</h4>
				<?php 
    $this->renderPartial('../_captcha', array('form' => $form, 'model' => $modelCaptcha));
    ?>
            <?php 
}
?>

			<div class='form-group'>
				<?php 
echo BSHtml::submitButton(Yii::t('RegistrationModule.registration', 'page.registration.classic.button'), array('color' => BSHtml::BUTTON_COLOR_SUCCESS));
?>
			</div>

		<?php 
$this->endWidget();
?>
	</div>
	<div class='col-lg-6'>
		<?php 
if (!isset(Yii::app()->session['social_email'])) {
    ?>
			<h2><?php 
    echo Yii::t('RegistrationModule.registration', 'page.registration.social.title');
    ?>
</h2>
Esempio n. 2
0
    echo Yii::t('UsersModule.resetPassword', 'page.resetPassword.success.message', array('{email}' => $email));
    ?>
	</div>
<?php 
} else {
    ?>
	<p><?php 
    echo Yii::t('UsersModule.resetPassword', 'page.resetPassword.description');
    ?>
</p>
	<div>
		<?php 
    $form = $this->beginWidget('BsActiveForm', array('id' => 'password-form', 'layout' => BSHtml::FORM_LAYOUT_VERTICAL, 'action' => Yii::app()->createUrl('users/account/resetpassword'), 'enableAjaxValidation' => true, 'enableClientValidation' => false, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnType' => false, 'validateOnChange' => false, 'afterValidate' => 'js:function(form, data, hasError) { if(hasError) $().qirisError("error", { entity: "ResetPasswordForm", formId: "password-form",  errors: data }); else return true; }')));
    ?>
			
			<?php 
    echo $form->textFieldControlGroup($model, 'email', array('errorOptions' => array('hideErrorMessage' => true)));
    ?>
			
			<div class="form-group">
				<?php 
    echo BSHtml::submitButton(Yii::t('UsersModule.resetPassword', 'page.resetPassword.button'), array('color' => BSHtml::BUTTON_COLOR_SUCCESS));
    ?>
			</div>
			
		<?php 
    $this->endWidget();
    ?>
	</div>
<?php 
}
Esempio n. 3
0
<div class="row">
	<div class="col-lg-6">
		<h1><?php 
echo Yii::t('ProfileModule.password', 'page.title');
?>
</h1>
		<?php 
$form = $this->beginWidget('BsActiveForm', array('id' => 'changePwd-form', 'action' => Yii::app()->createUrl('profile/password/' . $slug), 'layout' => BSHtml::FORM_LAYOUT_VERTICAL, 'enableAjaxValidation' => true, 'enableClientValidation' => false, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnType' => false, 'validateOnChange' => false, 'afterValidate' => 'js:function(form, data, hasError) { if(hasError) $().qirisError("error", { entity: "ChangePasswordForm", formId: "changePwd-form",  errors: data }); else return true; }')));
?>
		
			<?php 
/* old password field */
echo $form->passwordFieldControlGroup($model, 'oldPassword', array('errorOptions' => array('hideErrorMessage' => true)));
/* new password field */
echo $form->passwordFieldControlGroup($model, 'newPassword', array('errorOptions' => array('hideErrorMessage' => true)));
/* confirm new password */
echo $form->passwordFieldControlGroup($model, 'confirmNewPassword', array('errorOptions' => array('hideErrorMessage' => true)));
?>
			
			<div class="form-group">
				<?php 
echo BSHtml::submitButton(Yii::t('ProfileModule.password', 'page.form.button'), array('color' => BSHtml::BUTTON_COLOR_SUCCESS));
?>
			</div>
	
		<?php 
$this->endWidget();
?>
	</div>
</div>
		
Esempio n. 4
0
echo $form->error($university, 'did');
?>
<br>
<label> Corso di laurea di riferimento</label>
<?php 
$this->widget('ext.tokenInput.TokenInput', array('model' => $degree_group, 'attribute' => 'degree_id', 'url' => array('../degree/default/search'), 'options' => array('tokenLimit' => '1', 'hintText' => false, 'searchingText' => 'Ricerca in corso...', 'deleteText' => 'X', 'allowCreation' => true, 'resultsLimit' => 10, 'preventDuplicates' => true, 'theme' => 'facebook', 'onAdd' => 'js:function(item){ $.ajax({ url: \'setSessionVar\', data:\'did=\'+item.id, type:\'POST\' });}', 'resultsFormatter' => 'js:function(item){ return \'<li><p>\' + item.name + \'</p></li>\' }')));
echo $form->error($degree_group, 'courses_id');
?>
 

<br>
<label> Esame di riferimento</label>
<?php 
$this->widget('ext.tokenInput.TokenInput', array('model' => $exam_group, 'attribute' => 'courses_id', 'url' => array('../courses/default/search'), 'options' => array('tokenLimit' => '1', 'hintText' => false, 'searchingText' => 'Ricerca in corso...', 'deleteText' => 'X', 'resultsLimit' => 10, 'allowCreation' => true, 'preventDuplicates' => true, 'theme' => 'facebook', 'resultsFormatter' => 'js:function(item){ return \'<li><p>\' + item.name + \'</p></li>\' }')));
echo $form->error($exam_group, 'courses_id');
?>
<br>
<?php 
echo BSHtml::submitButton('Send', array('color' => BSHtml::BUTTON_COLOR_SUCCESS));
$this->endWidget();
?>
	
	
	
	

		
		</div>
<div class="col-lg-3"></div>

</div>
Esempio n. 5
0
</p>
		
		<?php 
$form = $this->beginWidget('BsActiveForm', array('id' => 'login-form', 'layout' => BSHtml::FORM_LAYOUT_VERTICAL, 'action' => Yii::app()->createUrl('users/auth/basic'), 'enableAjaxValidation' => true, 'enableClientValidation' => false, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnType' => false, 'validateOnChange' => false, 'afterValidate' => 'js:function(form, data, hasError) { if(hasError) $().qirisError("error", { entity: "LoginForm", formId: "login-form",  errors: data }); else return true; }')));
?>
		
			<?php 
/* email field */
echo $form->textFieldControlGroup($model, 'email', array('errorOptions' => array('hideErrorMessage' => true)));
/* password field */
echo $form->passwordFieldControlGroup($model, 'password', array('errorOptions' => array('hideErrorMessage' => true)));
?>
	
			<div class="form-group">
				<?php 
echo BSHtml::submitButton(Yii::t('UsersModule.login', 'page.login.classic.button'), array('color' => BSHtml::BUTTON_COLOR_SUCCESS));
?>
				<?php 
echo Yii::t('UsersModule.login', 'page.login.classic.resetPassword');
?>
			</div>
	
		<?php 
$this->endWidget();
?>
	</div>
	<?php 
if (Yii::app()->hasModule('social')) {
    ?>
		<div class="col-lg-6">
			<h2><?php