<?php echo Html::activeHiddenInput($model, 'id'); ?> <?php echo Html::activeHiddenInput($model, 'family_id'); echo Html::activeHiddenInput($model, 'member_id'); ?> <?php echo $form->field($model, 'title')->textInput(['maxlength' => true]); ?> <div class="salenta"> <?php echo $form->field($model, 'task_type')->dropDownList(app\enum\TaskType::getList(), ['onchange' => 'typeChanged();']); ?> </div> <?php echo $form->field($model, 'date_set')->checkbox(); ?> <div id="date-set-control" class="<?php echo $model->date_set == '1' ? '' : 'hidden'; ?> "> <?php echo $form->field($model, 'start')->widget(DatePicker::className(), ['language' => 'pt', 'inline' => false, 'clientOptions' => ['autoclose' => true, 'todayBtn' => true, 'format' => 'yyyy-mm-dd']]); ?>
?> <?php $form = ActiveForm::begin(['id' => 'task-form', 'layout' => 'horizontal']); ?> <?php echo Html::activeHiddenInput($model, 'id'); ?> <?php echo $form->field($model, 'title')->textInput(['disabled' => true]); ?> <div class="salenta"> <?php echo $form->field($model, 'task_type')->dropDownList(app\enum\TaskType::getList(), ['disabled' => true]); ?> </div> <div id="date-set-control" class="<?php echo $model->date_set == '1' ? '' : 'hidden'; ?> "> <?php echo $form->field($model, 'start')->textInput(['disabled' => true]); ?> <?php echo $form->field($model, 'end')->textInput(['disabled' => true]); ?> </div> <?php