Условия
= $form->field($model, 'time')->widget(TimePicker::className(), [
'pluginOptions' => [
'showMeridian' => false,
'defaultTime' => false,
],
]) ?>
= $form->field($model, 'weekdays')->widget(Select2::className(), [
'data' => Trigger::getWeekDays(),
'options' => [
'multiple' => true,
'placeholder' => 'Выберите дни ...',
],
]) ?>
или
= $form->field($model, 'date')->widget(DateControl::className(), [
'type' => DateControl::FORMAT_DATETIME,
'displayTimezone' => Yii::$app->formatter->timeZone,
'saveFormat' => 'php:U',
'options' => [
'pluginOptions' => [
'todayHighlight' => true,
'todayBtn' => true,
],
],
]) ?>
или
= $form->field($model, 'item_id')->widget(Select2::className(), [
'data' => Item::getList(true),
'options' => [
'placeholder' => 'Выберите элемент ...',
],
]) ?>
= $form->field($model, 'item_value')->textInput(['maxlength' => true]) ?>
или
= $form->field($model, 'board_id')->widget(Select2::className(), [
'data' => Board::getList(),
'options' => [
'placeholder' => 'Выберите устройство ...',
],
]) ?>
= $form->field($model, 'connection_value')->widget(Select2::className(), [
'data' => Trigger::getConnectionValues(),
'options' => [
'placeholder' => 'Выберите значение ...',
],
]) ?>