<?php echo $form->field($model, 'embargo')->widget(DatePicker::className(), ['type' => 1, 'options' => ['placeholder' => Yii::t('app', 'Selecteer datum')], 'pluginOptions' => ['format' => 'dd-mm-yyyy', 'todayHighlight' => true, 'autoclose' => true, 'weekStart' => 1]]); ?> <?php echo $form->field($model, 'remarks')->widget(\yii\redactor\widgets\Redactor::className(), ['clientOptions' => ['buttons' => ['formatting', 'bold', 'italic', 'unorderedlist', 'orderedlist', 'outdent', 'indent', 'link', 'alignment', 'horizontalrule']]]); ?> <div class="form-group"> <?php echo Html::submitButton(Yii::t('app', 'Opslaan'), ['class' => 'btn btn-primary pull-right']); ?> </div> <?php ActiveForm::end(); ?> <?php View::beginJs(); ?> <script> /* If visits-checked-all equals FALSE then fetch boxes */ if($('input[name="Visits[checked_all]"]:checked').val() == 0) fetchBoxList(); $(document).on('change', 'input[name="Visits[checked_all]"]', function() { if($('input[name="Visits[checked_all]"]:checked').val() == 0) fetchBoxList(); else clearBoxList(); }); $(document).on('change', '#visits-project_id', function() { if($('input[name="Visits[checked_all]"]:checked').val() == 0)
echo $form->field($model, 'counters')->widget(Select2::className(), ['data' => ArrayHelper::map($users, 'id', 'username'), 'options' => ['prompt' => Yii::t('app', 'Selecteer tellers..'), 'multiple' => true]]); ?> <?php echo $form->field($model, 'blur')->dropDownList(Projects::getBlurOptions()); ?> <?php echo $form->field($model, 'embargo')->widget(DatePicker::className(), ['type' => 1, 'options' => ['placeholder' => Yii::t('app', 'Selecteer datum')], 'pluginOptions' => ['format' => 'dd-mm-yyyy', 'todayHighlight' => true, 'autoclose' => true, 'weekStart' => 1]]); ?> <?php echo $form->field($model, 'remarks')->widget(\yii\redactor\widgets\Redactor::className(), ['clientOptions' => ['buttons' => ['formatting', 'bold', 'italic', 'unorderedlist', 'orderedlist', 'outdent', 'indent', 'link', 'alignment', 'horizontalrule']]]); ?> </div> <div class="form-group"> <?php echo Html::submitButton(Yii::t('app', 'Opslaan'), ['class' => 'btn btn-primary pull-right']); ?> </div> <?php ActiveForm::end(); ?> </div> <?php echo View::beginJs(); ?> <script> /* CSS fix */ $('.select2-search__field').attr('style', 'width: 100%;'); </script> <?php echo View::endJs();