Ejemplo n.º 1
0
            <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>
<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");
?>
Ejemplo n.º 3
0
    echo Yii::$app->session->getFlash('success');
    ?>
        <?php 
    echo yii\helpers\Html::a(Yii::t('app', 'Home Page'), ['/'], ['class' => 'btn btn-primary']);
    ?>
    <?php 
} else {
    ?>

        <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 
Ejemplo n.º 4
0
                <div class="box-header with-border">
                    <h4 class="box-title">ราคาจบ(-Vat)</h4>
                    <div class="box-tools pull-right">
                        <button class="btn btn-box-tool" data-widget="collapse"><i class="glyphicon glyphicon-minus"></i></button>
                        <button class="btn btn-box-tool" data-widget="remove"><i class="glyphicon glyphicon-remove"></i></button>
                    </div>
                </div>
                <div class="box-body chart-responsive">

                    <div id="search">

                        <?php 
//echo $this->render('_search', ['model' => $searchModel]);
?>
                        <?php 
yii\bootstrap\ActiveForm::begin(['id' => 'myform', 'action' => 'index.php?r=dashboard/searchclose']);
?>
                        <div class="row">
                            <div class="col-lg-6">
                                <!--             <label class="control-label col-sm-3" for="inputSuccess3">สนาม</label>
                                    <div class="col-sm-9">
                                <?php 
//echo $form->field($model, 'serialbox')->label(false)
?>
                                       
                                    </div>-->

                                <label class="control-label col-sm-3" for="inputSuccess3">ยี่ห้อ</label>
                                <div class="col-sm-9" style="margin-bottom: 10px;" >
                                    <input type="text" name="brand" value="" class="form-control">