Ejemplo n.º 1
0
echo Yii::t('app', 'Please fill out the following fields to signup:');
?>
</p>

        <?php 
$form = ActiveForm::begin(['id' => 'form-signup']);
?>

            <?php 
echo $form->field($model, 'username');
?>
            <?php 
echo $form->field($model, 'email');
?>
            <?php 
echo $form->field($model, 'password')->widget(PasswordInput::classname(), []);
?>

            <div class="form-group">
                <?php 
echo Html::submitButton(Yii::t('app', 'Signup'), ['class' => 'btn btn-primary', 'name' => 'signup-button']);
?>
            </div>

        <?php 
ActiveForm::end();
?>

        <?php 
if ($model->scenario === 'rna') {
    ?>
Ejemplo n.º 2
0
echo $form->field($user, 'username');
?>
        <?php 
echo $form->field($user, 'email');
?>
        <?php 
if ($user->scenario === 'create') {
    ?>
            <?php 
    echo $form->field($user, 'password')->widget(PasswordInput::classname(), []);
    ?>
        <?php 
} else {
    ?>
            <?php 
    echo $form->field($user, 'password')->widget(PasswordInput::classname(), [])->passwordInput(['placeholder' => Yii::t('backend', 'New pwd ( if you want to change it )')]);
    ?>
        <?php 
}
?>
    <div class="row">
        <div class="col-lg-6">
            <?php 
echo $form->field($user, 'status')->dropDownList($user->statusList);
?>
            <?php 
foreach (AuthItem::getRoles() as $item_name) {
    ?>
                <?php 
    $roles[$item_name->name] = $item_name->name;
    ?>
Ejemplo n.º 3
0
?>

    <?php 
echo $form->field($model, 'userMName')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'userLName')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'username')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'password_hash')->textInput(['maxlength' => true])->widget(PasswordInput::classname(), []);
?>

	<!--<?php 
echo $form->field($model, 'status')->dropDownList(['10' => 'Active', '0' => 'Inactive']);
?>
-->
	<?php 
echo $form->field($model, 'status')->widget(Select2::classname(), ['data' => ['10' => 'Active', '0' => 'Inactive'], 'options' => ['placeholder' => 'Select a status'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
echo $form->field($model, 'email')->textInput(['maxlength' => true]);
?>

    <div class="form-group">