Exemplo n.º 1
0
?>

    <?php 
echo $form->field($model, 'poster')->fileInput();
?>

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

    <?php 
echo $form->field($model, 'published_at', ['options' => ['class' => 'drp-container form-group']])->widget(DateRangePicker::classname(), ['model' => $model, 'attribute' => 'published_at', 'convertFormat' => true, 'pluginOptions' => ['timePicker' => true, 'timePickerIncrement' => 15, 'locale' => ['format' => 'Y-m-d H:i:s'], 'singleDatePicker' => true, 'showDropdowns' => true]]);
?>

    <?php 
echo $form->field($model, 'body')->widget(MarkdownEditor::className(), []);
?>

    <?php 
echo $form->field($model, 'is_lts')->widget(SwitchBox::className(), ['clientOptions' => ['size' => 'medium', 'onColor' => 'success', 'offColor' => 'danger']]);
?>

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

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

    <?php 
Exemplo n.º 2
0
echo $form->field($comment, 'post_id')->hiddenInput(['value' => $post->id])->label(false);
?>
            <div class="col-md-6">
                <?php 
echo $form->field($comment, 'name', ['inputOptions' => ['placeholder' => 'Name']])->label(false);
?>
            </div>
            <div class="col-md-6">
                <?php 
echo $form->field($comment, 'email', ['inputOptions' => ['placeholder' => 'Email']])->label(false);
?>
            </div>

            <div class="col-md-12">
                <?php 
echo $form->field($comment, 'body', ['inputOptions' => ['placeholder' => 'Comment Body']])->label(false)->widget(MarkdownEditor::className(), []);
?>
                <?php 
echo $form->field($comment, 'captcha')->label(false)->widget('Zelenin\\yii\\widgets\\Recaptcha\\widgets\\Recaptcha', ['clientOptions' => ['data-sitekey' => '6LfU0xMTAAAAAPa-B0U6o-WWwgGhMnyrVr7bPiFm']]);
?>
                <div class="form-group">
                    <?php 
echo Html::submitButton('Submit', ['class' => 'buton b_asset buton-2 buton-mini pull-right', 'name' => 'contact-button']);
?>
                </div>
            </div>
            <?php 
ActiveForm::end();
?>
        </div>
        <div class="clearfix"></div>