'checked' => $model->isNewRecord ? true : boolval($model->active),
]) ?>
- <?php if (in_array($user->group_id, [81])): ?>
- <?= $form->field($model, 'date_start')->input('date', [
+ <!-- <?php /*if (in_array($user->group_id, [81])): */?>
+ <?php /*= $form->field($model, 'date_start')->input('date', [
'value' => $model->date_start ?? date('Y-m-d'),
- ]) ?>
- <?php else: ?>
- <?= $form->field($model, 'date_start')->hiddenInput(['value' => date('Y-m-d')])->label(false) ?>
- <?php endif; ?>
+ ]) */?>
+ <?php /*else: */?>
+ <?php /*= $form->field($model, 'date_start')->hiddenInput(['value' => date('Y-m-d')])->label(false) */?>
+ --><?php /*endif; */?>
+
+ <?= $form->field($model, 'date_start')->input('date', [
+ 'value' => $model->date_start ?? date('Y-m-d'),
+ ]) ?>
+
+ <?= $form->field($model, 'date_end')->input('date', [
+ 'value' => $model->date_end ?? date('Y-m-d'),
+ ]) ?>
<div class="form-group">
<?= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?>