Ejemplo n.º 1
0
</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>

                    <div class="publish-ad-button">
                        <button class="btn form-submit" id="edit-submit" name="op" value="<?php 
echo \Yii::t('site', 'Publish Ad');
Ejemplo n.º 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();