예제 #1
0
        <div class="span9 first">
            <h2><?php 
echo $this->title;
?>
</h2>
        </div>
    </div>
</section>

<section class="ads-main-page">
    <div class="container">
        <div class="span9 first">
            <div id="edit-profile" class="ad-detail-content">
                <div class="one_half first">
                    <?php 
$form = new \yii\bootstrap\ActiveForm(['options' => ['class' => 'form-item', 'id' => 'primaryPostForm'], 'fieldConfig' => ['inputOptions' => ['class' => 'text', 'style' => 'height: auto'], 'options' => ['tag' => 'fieldset', 'class' => 'input-title'], 'template' => "{label}\n{input}<div style=\"width: 90%\">{hint}\n{error}</div>", 'horizontalCssClasses' => ['label' => '', 'offset' => '', 'wrapper' => '', 'error' => '', 'hint' => '']]]);
$form->begin();
?>
                    <?php 
echo $form->field($model, 'username');
?>
                    <?php 
echo $form->field($model, 'email');
?>
                    <?php 
echo $form->field($model, 'password')->passwordInput();
?>
                    <?php 
echo $form->field($model, 'password2')->passwordInput();
?>
                    <div class="hr-line"></div>
예제 #2
0
<h1>Посты</h1>
<?php 
$form = new \yii\bootstrap\ActiveForm();
$form->begin();
echo $form->field($post, 'category')->dropDownList(\common\models\Category::getList()), $form->field($post, 'premium'), $form->field($post, 'title'), $form->field($post, 'content')->textarea(), $form->field($post, 'price'), $form->field($post, 'phone'), $form->field($post, 'email');
?>

<button class="btn btn-default" type="submit">Сохранить</button>
<?php 
$form->end();
예제 #3
0
파일: forgot.php 프로젝트: vfokov/tims2
        <h1><?php 
    echo yii\helpers\Html::encode($this->title);
    ?>
</h1>

        <?php 
    $form = yii\bootstrap\ActiveForm::begin(['id' => 'forgot-form', 'options' => ['class' => 'form-horizontal'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-4\">{input}\n{hint}</div>\n<div class=\"col-lg-4\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-1 control-label']]]);
    ?>

        <?php 
    echo $form->field($model, 'email')->hint(Yii::t('app', 'Enter your email. We\'ll send further instructions to recover your password'));
    ?>

        <div class="form-group">
            <div class="col-lg-offset-1 col-lg-11">
                <?php 
    echo yii\helpers\Html::submitButton(Yii::t('app', 'Send'), ['class' => 'btn btn-primary', 'name' => 'login-button']);
    ?>
            </div>
        </div>

        <?php 
    yii\bootstrap\ActiveForm::end();
    ?>
    <?php 
}
?>

</div>
<fieldset class="mar_bottom22">
    <div class="edit_pro_h">Profile Details</div>
    <?php 
$form = yii\bootstrap\ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
?>
    <div class="forgrup_wrp_edit">
        <?php 
echo $form->field($model, 'username')->textInput(['placeholder' => SHARED_EDITPROFILEBASICDETAIL_USERNAME, 'class' => 'form-control', 'readOnly' => !ALLOW_CHANGE_USERNAME])->label($model->getAttributeLabel('username'));
?>
    </div>
    <div class="row">
        <div class="col-md-6 col-sm-6 col-xs-12"><?php 
echo $form->field($model, 'first_name')->textInput(['placeholder' => SHARED_EDITPROFILEBASICDETAIL_FIRSTNAME])->label($model->getAttributeLabel('first_name'));
?>
</div>
        <div class="col-md-6 col-sm-6 col-xs-12"><?php 
echo $form->field($model, 'last_name')->textInput(['placeholder' => SHARED_EDITPROFILEBASICDETAIL_LASTNAME])->label($model->getAttributeLabel('last_name'));
?>
</div>
    </div>        
    <div class="row">
        <?php 
$label = 'Date of Birth';
?>
        <div class="col-md-6 col-sm-6 col-xs-12"><?php 
echo $form->field($model, 'dob')->textInput(['placeholder' => SHARED_EDITPROFILEBASICDETAIL_DOB, 'class' => 'form-control user-dob-datepicker', 'value' => !empty($model->dob) ? date("d-m-Y", strtotime($model->dob)) : ""])->label($label);
?>
</div>
        <div class="col-md-6 col-sm-6 col-xs-12"><?php 
echo $form->field($model, 'phone_number')->input('text', ['placeholder' => SHARED_EDITPROFILEBASICDETAIL_MOBILENUMBER])->label("Mobile Number");
?>