Ejemplo n.º 1
0
<div class="col-md-6">

    <?php 
echo $form->field($searchModel, 'rukovoditel')->widget(Select2::className(), ['data' => $rukovoditeliKursov, 'options' => ['placeholder' => ''], 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
echo $form->field($searchModel, 'raschitano_chasov')->widget(TouchSpin::className());
?>

    <?php 
echo $form->field($searchModel, 'nachnutsya_posle')->widget(DatePicker::className());
?>

    <?php 
echo $form->field($searchModel, 'zakonchatsya_do')->widget(DatePicker::className());
?>

</div>

<?php 
echo Html::submitButton('Применить фильтры', ['class' => 'btn btn-primary']);
?>

<?php 
echo Html::a('Сбросить фильтры', $formActionUrl, ['class' => 'btn btn-default']);
?>

<?php 
ActiveForm::end();
?>
Ejemplo n.º 2
0
use app\widgets\DatePicker;
use app\widgets\TouchSpin;
use kartik\select2\Select2;
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
/**
 * @var $model ObrazovanieForm
 */
?>

<?php 
$form = ActiveForm::begin(['layout' => 'horizontal']);
echo $form->field($model, 'dokument_ob_obrazovanii_tip')->dropDownList(TipDokumentaObObrazovanii::namesMap());
echo $form->field($model, 'dokument_ob_obrazovanii_seriya');
echo $form->field($model, 'dokument_ob_obrazovanii_nomer');
echo $form->field($model, 'dokument_ob_obrazovanii_data')->widget(DatePicker::className());
?>

<?php 
echo $form->field($model, 'kvalifikaciyaDir')->widget(ComboWidget::className(), ['data' => Kvalifikaciya::find()->commonOnly()->formattedAll(EntityQuery::DROP_DOWN, 'nazvanie')]);
?>

<?php 
echo $form->field($model, 'organizaciyaDir')->widget(ComboWidget::className(), ['data' => Organizaciya::find()->commonOnly()->formattedAll(EntityQuery::DROP_DOWN, 'nazvanie')]);
?>

<?php 
echo $form->field($model, 'kurs_tip')->widget(Select2::className(), ['data' => TipKursa::namesMap(), 'hideSearch' => true, 'options' => ['placeholder' => ''], 'pluginOptions' => ['allowClear' => true]]);
?>

<?php 
Ejemplo n.º 3
0
<div class="row">
    <div class="col-md-6">
        <fieldset>
            <legend>Паспорт</legend>
            <?php 
echo $form->field($model, 'pasport_no')->widget(PasportNomerInput::className());
?>
            <?php 
echo $form->field($model, 'pasport_kem_vydan_kod')->widget(PasportKodPodrazdeleniyaInput::className());
?>
            <?php 
echo $form->field($model, 'pasport_kem_vydan');
?>
            <?php 
echo $form->field($model, 'pasport_kogda_vydan')->widget(DatePicker::className());
?>
        </fieldset>
    </div>

    <div class="col-md-6">
        <fieldset>
            <legend>Дополнительные данные</legend>
            <?php 
echo $form->field($model, 'inn')->widget(InnInput::className());
?>
            <?php 
echo $form->field($model, 'snils')->widget(SnilsInput::className());
?>
            <?php 
echo $form->field($model, 'propiska');
Ejemplo n.º 4
0
        <div class="row">

            <?php 
    echo $form->field($model, 'ochnoe_nachalo', ['options' => ['class' => 'form-group col-md-3']])->widget(DatePicker::className(), ['pluginOptions' => ['orientation' => 'bottom']]);
    ?>

            <?php 
    echo $form->field($model, 'ochnoe_konec', ['options' => ['class' => 'form-group col-md-3']])->widget(DatePicker::className(), ['pluginOptions' => ['orientation' => 'bottom']]);
    ?>

            <?php 
    echo $form->field($model, 'zaochnoe_nachalo', ['options' => ['class' => 'form-group col-md-3']])->widget(DatePicker::className(), ['pluginOptions' => ['orientation' => 'bottom']]);
    ?>

            <?php 
    echo $form->field($model, 'zaochnoe_konec', ['options' => ['class' => 'form-group col-md-3']])->widget(DatePicker::className(), ['pluginOptions' => ['orientation' => 'bottom']]);
    ?>

        </div>

    </fieldset>

    <div class="form-group form-group-buttons">
        <?php 
    echo Html::submitButton('Применить', ['class' => 'btn btn-primary']);
    ?>
        <?php 
    echo Html::button('Отменить', ['class' => 'btn btn-default', 'data-dismiss' => 'modal']);
    ?>
    </div>