<?php echo $form->field($model, 'dui')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'nit')->textInput(['maxlength' => true]); ?> <?php if (!$model->isNewRecord) { require_once '../auxiliar/Auxiliar.php'; if (!empty($model->fecha_nacimiento)) { $model->fecha_nacimiento = fechaComun($model->fecha_nacimiento); } } echo $form->field($model, 'fecha_nacimiento')->widget(DatePicker::className(), ['language' => 'es', 'readonly' => true, 'options' => ['placeholder' => 'Especifique la fecha'], 'pluginOptions' => ['format' => 'dd/mm/yyyy', 'autoclose' => true]]); ?> <div class="cflex"> <span style="order: 1; flex-grow: 1; margin-right:10px;"> <?php if ($model->isNewRecord) { $model->genero = 'Masculino'; } ?> <?php echo $form->field($model, 'genero')->radioList(array('Masculino' => 'Masculino', 'Femenino' => 'Femenino')); ?> </span> <span style="order: 2; flex-grow: 1; margin-right:10px;"> <?php if ($model->isNewRecord) {
?> <?php echo $form->field($model, 'country', ['template' => '{label} <div class="row"><div class="col-xs-10">{input}{error}{hint}</div></div>'])->dropDownList(ArrayHelper::map(Countries::find()->orderBy('country', 'asc')->all(), 'id', 'country'), ['prompt' => '---Выберите страну---']); ?> <?php echo $form->field($model, 'num_tours', ['template' => '{label} <div class="row"><div class="col-xs-5 col-sm-3">{input}{error}{hint}</div></div>'])->textInput(); ?> <?php echo $form->field($model, 'startsOn', ['template' => '{label} <div class="row"><div class="col-xs-12 col-sm-8">{input}{error}{hint}</div></div>'])->widget(DatePicker::className(), ['removeButton' => false, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy', 'todayHighlight' => true], 'options' => ['value' => isset($model->startsOn) ? date('d.m.Y', $model->startsOn) : '']]); ?> <?php echo $form->field($model, 'wfDueTo', ['template' => '{label} <div class="row"><div class="col-xs-12 col-sm-8">{input}{error}{hint}</div></div>'])->widget(DatePicker::className(), ['removeButton' => false, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy', 'todayHighlight' => true], 'options' => ['value' => isset($model->wfDueTo) ? date('d.m.Y', $model->wfDueTo) : '']]); ?> <?php echo $form->field($model, 'is_active', ['template' => '{label} <div class="row"><div class="col-xs-8">{input}{error}{hint}</div></div>'])->dropDownList($model::statuses(), ['prompt' => '---Статус---']); ?> <?php echo $form->field($model, 'enableAutoprocess')->checkbox(); ?> <?php echo $form->field($model, 'autoProcessURL')->input('text'); ?> <div class="form-group">
</div> <div class="row"> <div class="col-md-6 col-md-4"> <?php echo $form->field($model, 'fixed_begin[date]')->widget(DatePicker::className(), ['pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]); ?> </div> <div class="col-md-6 col-md-2"> <?php echo $form->field($model, 'fixed_begin[time]')->label(\Yii::t('ticket', 'Time'))->widget(TimePicker::className(), ['pluginOptions' => ['showMeridian' => false, 'showSeconds' => true]]); ?> </div> <div class="col-md-6 col-md-4"> <?php echo $form->field($model, 'fixed_end[date]')->widget(DatePicker::className(), ['pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]); ?> </div> <div class="col-md-6 col-md-2"> <?php echo $form->field($model, 'fixed_end[time]')->label(\Yii::t('ticket', 'Time'))->widget(TimePicker::className(), ['pluginOptions' => ['showMeridian' => false, 'showSeconds' => true]]); ?> </div> </div> </div> </div> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('ticket', 'Create') : Yii::t('ticket', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
<?php echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 12, 'attributes' => ['frequency' => ['label' => Yii::t('igolf', 'Recurrence'), 'type' => Form::INPUT_DROPDOWN_LIST, 'items' => Recurrence::getLocalizedConstants('FREQUENCY_'), 'columnOptions' => ['colspan' => 4]], 'interval' => ['type' => Form::INPUT_WIDGET, 'widgetClass' => TouchSpin::className(), 'options' => ['pluginOptions' => ['initval' => 1, 'min' => 1, 'max' => 30]], 'columnOptions' => ['colspan' => 4]], 'repeat' => ['label' => Yii::t('igolf', 'every'), 'type' => Form::INPUT_STATIC, 'columnOptions' => ['colspan' => 4]]]]); echo '<div class="recurrence_byweekday">'; echo $form->field($model, 'byweekday')->checkboxButtonGroup(Enum::dayList())->label(false); echo '</div>'; echo '<div class="recurrence_bymonth">'; echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 12, 'attributes' => ['option' => ['type' => Form::INPUT_RADIO_LIST, 'items' => ['bymonthday' => Yii::t('igolf', 'on day')], 'columnOptions' => ['colspan' => 2], 'label' => false], 'bymonthday' => ['type' => Form::INPUT_DROPDOWN_LIST, 'items' => Enum::dateList(1, 31), 'columnOptions' => ['colspan' => 2], 'label' => false]]]); echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 12, 'attributes' => ['option' => ['type' => Form::INPUT_RADIO_LIST, 'items' => ['byposday' => Yii::t('igolf', 'on the')], 'columnOptions' => ['colspan' => 2], 'label' => false], 'bypos4month' => ['type' => Form::INPUT_DROPDOWN_LIST, 'items' => Recurrence::getLocalizedConstants('POSITION_'), 'columnOptions' => ['colspan' => 4], 'label' => false], 'weekday4month' => ['type' => Form::INPUT_DROPDOWN_LIST, 'items' => Enum::dayList() + Recurrence::getLocalizedConstants('DAY_'), 'columnOptions' => ['colspan' => 4], 'label' => false]]]); echo '</div>'; echo '<div class="recurrence_byyear">'; echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 12, 'attributes' => ['option' => ['type' => Form::INPUT_RADIO_LIST, 'items' => ['bymonth' => Yii::t('igolf', 'on')], 'columnOptions' => ['colspan' => 2], 'label' => false], 'bymonth' => ['type' => Form::INPUT_DROPDOWN_LIST, 'items' => Enum::monthList(), 'columnOptions' => ['colspan' => 4], 'label' => false], 'monthday4year' => ['type' => Form::INPUT_DROPDOWN_LIST, 'items' => Enum::dateList(1, 31), 'columnOptions' => ['colspan' => 2], 'label' => false]]]); echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 12, 'attributes' => ['option' => ['type' => Form::INPUT_RADIO_LIST, 'items' => ['byposmonth' => Yii::t('igolf', 'on the')], 'columnOptions' => ['colspan' => 2], 'label' => false], 'bypos4year' => ['type' => Form::INPUT_DROPDOWN_LIST, 'items' => Recurrence::getLocalizedConstants('POSITION_'), 'columnOptions' => ['colspan' => 3], 'label' => false], 'weekday4year' => ['type' => Form::INPUT_DROPDOWN_LIST, 'items' => Enum::dayList() + Recurrence::getLocalizedConstants('DAY_'), 'columnOptions' => ['colspan' => 3], 'label' => false], 'month4year' => ['type' => Form::INPUT_DROPDOWN_LIST, 'items' => Enum::monthList(), 'columnOptions' => ['colspan' => 4], 'label' => false]]]); echo '</div>'; echo '<div class="recurrence_until">'; echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 12, 'attributes' => ['until' => ['type' => Form::INPUT_DROPDOWN_LIST, 'items' => Recurrence::getLocalizedConstants('UNTIL_'), 'columnOptions' => ['colspan' => 4]], 'count' => ['type' => Form::INPUT_WIDGET, 'widgetClass' => TouchSpin::className(), 'options' => ['pluginOptions' => ['initval' => 1, 'min' => 1, 'max' => 20]], 'columnOptions' => ['colspan' => 4]], 'date_end' => ['type' => Form::INPUT_WIDGET, 'widgetClass' => DatePicker::className(), 'options' => ['pluginOptions' => ['format' => 'yyyy/mm/dd', 'todayHighlight' => true]], 'columnOptions' => ['colspan' => 4], 'label' => Yii::t('igolf', 'End Date')]]]); echo '</div>'; ?> <div class="form-group"> <?php echo Html::button(Yii::t('igolf', 'Cancel'), ['class' => 'btn btn-danger', 'data' => ['dismiss' => 'modal']]); ?> <?php echo Html::button(Yii::t('igolf', 'OK'), ['class' => 'btn btn-success action-ok', 'data' => ['dismiss' => 'modal']]); ?> </div> </div> <script type="text/javascript"> <?php
</span> <span style="order: 2; flex-grow: 1; margin-right:10px;"> <?php echo $form->field($model, 'madre_contrayente_m')->textInput(array('placeholder' => 'Especifique a la madre')); ?> </span> </div> <div class="cflex"> <span style="order: 1; flex-grow: 1; margin-right:10px;"> <?php echo $form->field($partida, 'fecha_emision')->textInput(array('readOnly' => true, 'value' => date('d/m/Y'))); ?> </span> <span style="order: 2; flex-grow: 1; margin-right:10px;"> <?php echo $form->field($partida, 'fecha_suceso')->widget(DatePicker::className(), ['language' => 'es', 'readonly' => true, 'options' => ['placeholder' => 'Especifique la fecha'], 'pluginOptions' => ['format' => 'dd/mm/yyyy', 'autoclose' => true], 'pluginEvents' => ['hide' => 'function(e) { from = $("#partida-fecha_emision").val().split("/"); fe = new Date(from[2], from[1] - 1, from[0]); if(e.date > fe){ alert("La fecha de matrimonio no puede ser posterior a la fecha de emisión de la partida"); var today = new Date(); var dd = today.getDate(); var mm = today.getMonth()+1; //January is 0! var yyyy = today.getFullYear(); dd--; if(dd<10) { dd="0"+dd } if(mm<10) { mm="0"+mm }
<?= $form->field($model, 'username')->textInput($model->isNewRecord ? ['maxlength' => 32]: ['maxlength' => 32, 'disabled' => 'disabled']) ?> <?= $model->isNewRecord ? $form->field($model, 'password')->passwordInput(['maxlength' => 32]) : '' ?> <?= $form->field($model, 'assignment')->dropDownList($assignment_list, ['prompt' => '-- Select assignment --']) ?> <?= $form->field($model,'start_date')->widget(DatePicker::className(),['options' => ['dateFormat' => 'mm/dd/yy', 'showOn' => 'button', 'buttonImage' => '../images/calendar.gif', 'buttonImageOnly' => 'true', 'value' => date('m/d/Y', strtotime($model->start_date)), 'class' => 'uborder disabled dateclass', 'readonly' => 'readonly', 'dateFormat' => 'mm/dd/yy']])->label('Start Date') ?> <?= $form->field($model,'end_date')->widget(DatePicker::className(),['options' => ['dateFormat' => 'm/dd/yy', 'showOn' => 'button', 'buttonImage' => '../images/calendar.gif', 'buttonImageOnly' => 'true', 'value' => date('m/d/Y', strtotime($model->end_date)), 'class' => 'uborder disabled dateclass', 'readonly' => 'readonly', 'dateFormat' => 'mm/dd/yy']])->label('End Date') ?> <div class="form-group"> <?= Html::submitButton('Register', ['class' => 'btn btn-primary']) ?> </div> <?php ActiveForm::end(); ?> </div>
<?php use kartik\widgets\DatePicker; ?> <?php echo $form->field($project, "name"); echo $form->field($project, "information")->textarea(); echo $form->field($project, "dueDate")->widget(DatePicker::className(), ["name" => "Project[dueDate]", "value" => $project->dueDate, "pluginOptions" => ["todayHighlight" => true]]); echo $form->field($project, "completed")->checkbox();
?> <?php echo $form->field($model, 'detail')->widget(\mihaildev\ckeditor\CKEditor::className(), ['editorOptions' => ['preset' => 'full', 'inline' => false]]); ?> <?php echo $form->field($model, 'enabled')->dropDownList(['0' => '不启用', '1' => '启用']); ?> <?php echo $form->field($model, 'start_date')->widget(\kartik\widgets\DatePicker::className(), ['options' => ['placeholder' => 'Select operating time ...', 'value' => date('Y-m-d', time())], 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd', 'todayHighlight' => true]]); ?> <?php echo $form->field($model, 'end_date')->widget(\kartik\widgets\DatePicker::className(), ['options' => ['placeholder' => 'Select operating time ...', 'value' => date('Y-m-d', time() + 365 * 24 * 60 * 60)], 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd', 'todayHighlight' => true]]); ?> <div class="form-group pull-right"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div> </div> </div>
<div class="products-form"> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'id_brand')->widget(Select2::className(), ['data' => ArrayHelper::map($brands, 'id', 'name'), 'language' => 'ru']); ?> <?php echo $form->field($model, 'model')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'made_year')->widget(DatePicker::className(), ['name' => 'made_year', 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($model, 'power')->textInput(); ?> <?php echo $form->field($model, 'price')->textInput(); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Создать' : 'Изменить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div>
<?php echo $form->field($model, 'detail_request')->textarea(['rows' => 6]); ?> <?php echo $form->field($model, 'assg_to')->dropDownList($arrayStaff, ['prompt' => '--Select--']); ?> <?php echo $form->field($model, 'req_by')->dropDownList($arrayStaff, ['prompt' => '--Select--']); ?> <?php echo $form->field($model, 'date_due')->widget(DatePicker::className(), ['convertFormat' => true, 'pluginOptions' => ['format' => 'd-M-y']]); ?> <?php echo $form->field($model, 'quantity')->textInput(); ?> <?php echo $form->field($model, 'special_request')->textarea(['rows' => 6]); ?> <?php echo $form->field($model, 'other')->textInput(['maxlength' => true]); ?> <div class="form-group">
echo Html::hiddenInput('visheeObrazovanieCounter', $k + 1, ['id' => 'visheeObrazovanieCounter']); echo '<h4>Сведения о курсах повышения квалификации</h4>'; echo Html::tag('p', Html::button('Добавить курсы', ['class' => 'btn btn-primary', 'type' => 'button', 'onclick' => 'addKurs()'])); echo '<div id="KursyCntr">'; foreach ($registraciya->kursy as $k => $kModel) { echo $this->render('kurs', ['model' => $kModel, 'registraciya' => $registraciya, 'num' => $k]); } echo '</div>'; //if (!$registraciya->kursy) $k = -1; echo Html::hiddenInput('kursyCounter', $k + 1, ['id' => 'kursyCounter']); echo '<div>'; echo '<div class="inline-block vtop" style="width:300px">'; echo $form->field($registraciya, 'domashnijTelefon')->widget(\yii\widgets\MaskedInput::className(), ['mask' => '89999999999', 'options' => ['style' => 'width:10em', 'class' => 'form-control']]); echo '</div>'; echo '<div class="inline-block vtop" style="width: 300px;">'; echo $form->field($registraciya, 'dataRozhdeniya')->widget(\kartik\widgets\DatePicker::className(), ['pluginOptions' => ['format' => 'dd.mm.yyyy']]); echo '</div>'; echo '</div>'; echo $form->field($registraciya, 'provestiZasedanieBezPrisutstviya')->checkbox(); echo '<div id="prilozheni1">'; echo $form->field($registraciya, 'prilozhenie1')->textarea(['rows' => '5']); echo '</div>'; echo '<div id="ld">'; echo $form->field($registraciya, 'ldOlimpiady')->textarea(); echo $form->field($registraciya, 'ldPosobiya')->textarea(); echo $form->field($registraciya, 'ldPublikacii')->textarea(); echo $form->field($registraciya, 'ldProfKonkursy')->textarea(); echo $form->field($registraciya, 'ldObshestvennayaAktivnost')->textarea(); echo $form->field($registraciya, 'ldElektronnyeResursy')->textarea(); echo $form->field($registraciya, 'ldOtkrytoeMeropriyatie')->textarea(); echo $form->field($registraciya, 'ldNastavnik')->textarea();
return Html::tag('div', $label, ['class' => 'radio col-xs-4']); }]); ?> </div> <div class="form-ul pt25 clearfix"> <?php echo $form->field($coAppModel, 'identification_number', ['options' => ['class' => 'col-xs-4 padding-left0']]); ?> <?php echo $form->field($coAppModel, 'identification_state', ['options' => ['class' => 'col-xs-4 padding-right0']])->widget(Select2::classname(), ['data' => ArrayHelper::map(State::find()->all(), 'abbreviation', 'abbreviation'), 'disabled' => $isRead, 'options' => ['placeholder' => 'Select a state ...'], 'pluginOptions' => ['allowClear' => true]]); ?> <?php echo $form->field($coAppModel, 'identification_expiration_date', ['options' => ['class' => 'col-xs-4 padding-right0']])->widget(DatePicker::className(), ['type' => DatePicker::TYPE_INPUT, 'options' => ['value' => $coAppModel->identification_expiration_date ? date('m/d/Y', $coAppModel->identification_expiration_date) : '', 'autocomplete' => 'off', 'placeholder' => 'mm/dd/yyyy']]); ?> </div> <div class="form-ul pt20 pb20 clearfix"> <?php echo $form->field($coAppModel, 'marital_status')->label('Please select your marital status:')->radioList(DictApplicant::$maritalStatus, ['item' => function ($index, $label, $name, $checked, $value) { $radio = Html::radio($name, $checked, ['value' => $value]); $label = Html::label($radio . $label); return Html::tag('div', $label, ['class' => 'radio col-xs-4']); }]); ?> </div> </div> </div> </div>
<?php use kartik\widgets\DatePicker; use yii\helpers\ArrayHelper; use app\models\Milestone; use app\models\User; ?> <?php echo $form->field($task, "name"); ?> <?php if (Yii::$app->user->identity->isViewingProject) { echo $form->field($task, "fkIDWithMilestoneID")->dropDownList(ArrayHelper::map(Milestone::find()->joinWith(["project"])->where(["project.id" => $task->milestone->fkIDWithProjectID])->all(), "id", "name"), ["prompt" => "None"]); } else { echo $form->field($task, "fkIDWithMilestoneID")->dropDownList(ArrayHelper::map(Milestone::find()->all(), "id", "name"), ["prompt" => "None"]); } ?> <?php echo $form->field($task, "fkIDWithUserID")->dropDownList(ArrayHelper::map(User::find()->all(), "id", "fullName"), ["prompt" => "None"]); echo $form->field($task, "information")->textarea(); echo $form->field($task, "dueDate")->widget(DatePicker::className(), ["pluginOptions" => ["todayHighlight" => true]]); echo $form->field($task, "completed")->checkbox();
<?php /** * Created by PhpStorm. * User: vadim * Date: 05.03.16 * Time: 15:59 */ echo $form->field($model, 'category_id')->widget(\kartik\widgets\Select2::className(), ['data' => \yii\helpers\ArrayHelper::map(\app\modules\news\models\NewsCategory::find()->all(), 'id', 'name'), 'addon' => ['prepend' => ['content' => \yii\bootstrap\Html::icon('list')]]]); ?> <?php echo $form->field($model, 'layout')->widget(\kartik\select2\Select2::className(), ['data' => Yii::$app->controller->getLayouts(), 'options' => ['placeholder' => 'Значение по умолчанию'], 'addon' => ['prepend' => ['content' => \yii\bootstrap\Html::icon('open-file')]]]); ?> <?php echo $form->field($model, 'date_public')->widget(\kartik\widgets\DatePicker::className(), ['type' => \kartik\widgets\DatePicker::TYPE_COMPONENT_APPEND, 'value' => \Yii::$app->formatter->asDate(new \DateTime(), 'short'), 'pluginOptions' => ['autoclose' => true]]); ?> <?php echo $form->field($model, 'locked', ['template' => '{input}{label}{error}{hint}'])->widget(\kartik\checkbox\CheckboxX::className(), ['pluginOptions' => ['threeState' => false]]);
echo $form->field($model, 'replied_at[date]')->widget(DatePicker::className(), ['options' => ['placeholder' => 'Select issue date ...'], 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]); ?> <?php echo $form->field($model, 'replied_at[time]')->widget(TimePicker::className(), ['pluginOptions' => ['showMeridian' => false]]); ?> <?php echo $form->field($model, 'fixed_begin[date]')->widget(DatePicker::className(), ['options' => ['placeholder' => 'Select issue date ...'], 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]); ?> <?php echo $form->field($model, 'fixed_begin[time]')->widget(TimePicker::className(), ['pluginOptions' => ['showMeridian' => false]]); ?> <?php echo $form->field($model, 'fixed_end[date]')->widget(DatePicker::className(), ['options' => ['placeholder' => 'Select issue date ...'], 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]); ?> <?php echo $form->field($model, 'fixed_end[time]')->widget(TimePicker::className(), ['pluginOptions' => ['showMeridian' => false]]); ?> <?php echo $form->field($model, 'site')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'hardware_type')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'hardware_part')->textInput(['maxlength' => 255]);