<div class="form-group" style="position:relative"> <label for="exampleInputName2" class="w80">Start</label> <?php echo TimePicker::widget(['model' => $model, 'name' => 'Sda[presentation_start_time]', 'value' => $model->presentationStartTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'defaultTime' => false, 'showSeconds' => false, 'class' => 'form-control input']]); ?> </div> </div> <div class="col-xs-6"> <div class="form-group" style="position:relative"> <label for="exampleInputName2" class="w80">End</label> <?php echo TimePicker::widget(['model' => $model, 'name' => 'Sda[presentation_end_time]', 'value' => $model->presentationEndTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'defaultTime' => false, 'showSeconds' => false, 'class' => 'form-control input']]); ?> </div> </div> </div> </div> <div class="row">
<div class="col-xs-6 col-sm-4 p5" style="height:100px;"> <div class="ml20" style="float: left;width:45%"> <div class="f18">Start Time</div> <div class="mt10" id="ab" style="position:relative;"> <?php echo TimePicker::widget(['model' => $model, 'name' => 'MeetingDetails[start_time]', 'value' => date('g:i a', strtotime($model->start_time)), 'pluginOptions' => ['showMeridian' => true, 'showSeconds' => false], 'disabled' => true]); ?> </div> </div> <div class="ml20" style="float: left;width:45%"> <div class="f18">End Time</div> <div class="mt10" id="ab" style="position:relative;"> <?php echo TimePicker::widget(['model' => $model, 'name' => 'MeetingDetails[stop_time]', 'value' => date('g:i a', strtotime($model->stop_time)), 'pluginOptions' => ['showMeridian' => true, 'showSeconds' => false], 'disabled' => true]); ?> </div> </div> </div> <div class="col-xs-6 col-sm-4 p5" style="height:100px"> <div class="ml20"> <?php echo $form->field($model, 'location', array('labelOptions' => array('class' => 'f18')))->textInput(['maxlength' => 300])->textInput(['class' => 'form-control intp', 'readonly' => true]); ?> </div> </div> <div class="col-xs-6 col-sm-4 p5" style="height:100px"> <div class="ml20"> <?php
?> ) </h1> </div> <div class="row"> <?php echo \yii\grid\GridView::widget(['dataProvider' => $dataProvider, 'tableOptions' => ['class' => 'table table-striped'], 'layout' => '{items}', 'columns' => [['attribute' => 'timeslot', 'format' => 'html', 'value' => function ($data) { return "<i class='fa fa-clock-o'></i><b> {$data->timeslot}</b>"; }], ['attribute' => 'vid', 'format' => 'html', 'header' => 'Info', 'value' => function ($data) { return $data->vid ? \yii\helpers\Html::a('Booked by ' . $data->vid, \yii\helpers\Url::to(['/booking/showslotinfo/', 'id' => $data->id]), ['class' => 'btn btn-danger']) : \yii\helpers\Html::a('Book', \yii\helpers\Url::to(['/booking/bookslot', 'id' => $data->id]), ['class' => 'btn btn-success']); }], ['visible' => !Yii::$app->user->isGuest && Yii::$app->user->identity->isadmin, 'header' => 'Admin', 'class' => \yii\grid\ActionColumn::className(), 'template' => '{delete}', 'buttons' => ['delete' => function ($url, $model, $key) { return \yii\bootstrap\Html::a("<i class='fa fa-trash'></i>", \yii\helpers\Url::to('/booking/deleteslot/' . $model->id)); }]]]]); ?> </div> <?php if (!Yii::$app->user->isGuest && Yii::$app->user->identity->isadmin) { ?> <div class="row"> <?php $form = \kartik\form\ActiveForm::begin(['type' => 'inline']); echo $form->field($model, 'timeslot')->widget(TimePicker::className(), ['pluginOptions' => ['showMeridian' => false]]); echo " "; echo \yii\bootstrap\Html::submitButton('<i class="fa fa-check"></i>Add', ['class' => 'btn btn-success btn-sm']); \kartik\form\ActiveForm::end(); ?> </div> <?php } ?> </div>
<div class="row"> <?php echo $form->field($model, 'dateInput', ['enableAjaxValidation' => true, 'options' => ['class' => 'col-lg-3 vks-date-time']])->widget(DatePicker::className(), ['type' => DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['autoclose' => true, 'todayHighlight' => true, 'startDate' => '0d']]); ?> <?php $timepickerOptions = ['pluginOptions' => ['showMeridian' => false]]; ?> <?php echo $form->field($model, 'beginTimeInput', ['enableAjaxValidation' => true, 'options' => ['class' => 'col-lg-2 vks-date-time']])->widget(TimePicker::className(), $timepickerOptions); ?> <?php echo $form->field($model, 'endTimeInput', ['enableAjaxValidation' => true, 'options' => ['class' => 'col-lg-2 vks-date-time']])->widget(TimePicker::className(), $timepickerOptions); ?> </div> <small class="help-block"><span class="glyphicon glyphicon-info-sign"></span> Укажите дату не ранее <?php echo Yii::$app->formatter->asDate(time(), 'long'); ?> и не позднее <?php echo Yii::$app->formatter->asDate(strtotime("+1 week"), 'long'); ?> Время должно быть в интервале c <?php echo MinuteFormatter::asString(Yii::$app->params['vks.minTime']); ?>
<div class="bitacora-tiempo-form"> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'fecha')->widget(\yii\jui\DatePicker::className(), ['dateFormat' => 'dd-MM-yyyy', 'value' => date('d/m/Y'), 'options' => ['style' => 'position: relative; z-index: 999', 'class' => 'form-control']]); ?> <?php echo $form->field($model, 'hora_inicio')->widget(\kartik\time\TimePicker::className(), ['pluginOptions' => ['minuteStep' => 1]]); ?> <?php echo $form->field($model, 'hora_final')->widget(\kartik\time\TimePicker::className(), ['pluginOptions' => ['minuteStep' => 1]]); ?> <?php echo $form->field($model, 'interrupcion')->textInput(); ?> <?php echo $form->field($model, 'actividad_noplaneada')->textInput(['maxlength' => true]); ?> <?php $proyectos = ArrayHelper::map(Proyecto::find()->where(['activo' => 1])->orderBy('nombre')->all(), 'id', 'nombre'); echo $form->field($model, 'id_proyecto')->widget(\kartik\select2\Select2::className(), ['data' => $proyectos, 'language' => 'es', 'options' => ['placeholder' => 'Seleccione un proyecto...'], 'pluginOptions' => ['allowClear' => true]]); ?>
?> <?php echo $form->field($model, 'longitud')->hiddenInput(['maxlength' => true])->label(false); ?> <?php echo $form->field($model, 'prioridad')->textInput(); ?> <?php echo $form->field($model, 'hora_apertura')->widget(TimePicker::classname(), []); ?> <?php echo $form->field($model, 'hora_cierre')->widget(TimePicker::classname(), []); ?> <?php echo $form->field($model, 'dia')->dropDownList(['0' => Yii::t('app', 'Monday'), '1' => Yii::t('app', 'Tuesday'), '2' => Yii::t('app', 'Wednesday'), '3' => Yii::t('app', 'Thursday'), '4' => Yii::t('app', 'Friday'), '5' => Yii::t('app', 'Saturday')]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end();
</div> <div class="form-group field-classes-date"> <label class="control-label" for="classes-start-time">Start Time</label> <?php // Manipulate display of seconds, meridian (12h/24h), and the time increment steps echo TimePicker::widget(['model' => $model, 'attribute' => 'start_time', 'pluginOptions' => ['showSeconds' => false, 'showMeridian' => false, 'minuteStep' => 30, 'secondStep' => 5]]); ?> </div> <div class="form-group field-classes-date"> <label class="control-label" for="classes-end-time">End Time</label> <?php // Manipulate display of seconds, meridian (12h/24h), and the time increment steps echo TimePicker::widget(['model' => $model, 'attribute' => 'end_time', 'pluginOptions' => ['showSeconds' => false, 'showMeridian' => false, 'minuteStep' => 30, 'secondStep' => 5]]); ?> </div> <?php echo $form->field($model, 'duration')->textInput(); ?> <?php echo $form->field($model, 'description')->textarea(['rows' => 6, 'placeholder' => 'The details about the class go here...']); ?> <?php echo $form->field($model, 'price')->textInput(['placeholder' => '0']); ?>
?> <?php echo $form->field($model, 'tipo_hora_id')->dropDownList(ArrayHelper::map(TipoHora::find()->all(), 'id', 'nombre'), ['prompt' => 'Seleccionar Tipo de Hora', 'style' => 'width:300px']); ?> <?php echo $form->field($model, 'profesional_id')->dropDownList(ArrayHelper::map(Profesional::find()->all(), 'id', 'Nombres'), ['prompt' => 'Seleccionar Profesional', 'style' => 'width:300px']); ?> <?php echo $form->field($model, 'administrador_id')->dropDownList(ArrayHelper::map(Administrador::find()->all(), 'id', 'Nombres'), ['prompt' => 'Seleccionar Administrador', 'style' => 'width:300px']); ?> <?php echo $form->field($model, 'hora_inicio')->widget(TimePicker::className(), ['pluginOptions' => ['format' => 'HH:MM', 'showMeridian' => false, 'minuteStep' => 1], 'options' => ['style' => 'width:260px'], 'addonOptions' => ['asButton' => true, 'inline-addon' => true]]); ?> <?php echo $form->field($model, 'tiempo_periodo')->textInput(['style' => 'width:300px']); ?> <?php echo $form->field($model, 'fecha')->widget(DatePicker::className(), ['removeButton' => false, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd'], 'options' => ['style' => 'width:260px']]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Crear' : 'Actualizar', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?>
/** * Created by PhpStorm. * User: dev * Date: 11/18/15 * Time: 13:53 */ use yii\widgets\ActiveForm; use yii\helpers\Html; use unclead\widgets\MultipleInput; use unclead\widgets\MultipleInputColumn; use kartik\date\DatePicker; use kartik\select2\Select2; use kartik\growl\Growl; echo DatePicker::widget(['name' => 'check_issue_date', 'value' => date('d-M-Y', strtotime('+2 days')), 'options' => ['placeholder' => 'Select issue date ...'], 'pluginOptions' => ['format' => 'dd-M-yyyy', 'todayHighlight' => true]]); echo \kartik\time\TimePicker::widget(['name' => 'start_time', 'value' => '11:24', 'pluginOptions' => ['showSeconds' => false, 'showMeridian' => false]]); echo \kartik\rating\StarRating::widget(['name' => 'rating_1', 'pluginOptions' => ['disabled' => false, 'showClear' => true]]); ?> <?php $form = ActiveForm::begin([]); ?> <h3>Single column</h3> <?php echo $form->field($model, 'emails')->widget(\unclead\widgets\MultipleInput::className(), ['limit' => 6, 'allowEmptyList' => false, 'enableGuessTitle' => true, 'min' => 2, 'addButtonPosition' => \unclead\widgets\MultipleInput::POS_HEADER])->label(false); //echo $form->field($model, 'list')->widget(Select2::classname(), [ // 'data' => \app\models\TestModel::getTestDataList(), // 'language' => 'de',
?> </div> <div class="col-lg-6"> <?php echo $form->field($model, 'hora_ini')->widget(TimePicker::className(['readonly' => true]), []); ?> </div> </div> <div class="row"> <div class="col-lg-6"> </div> <div class="col-lg-6"> <?php echo $form->field($model, 'hora_fin')->widget(TimePicker::className(), []); ?> </div> </div> <?php // $form->field($model, 'HH')->textInput(['id'=>'HH']) ?> <?php echo $form->field($model, 'id_status')->dropDownList($model->getStatus()); ?> <?php echo $form->field($model, 'detalle')->textarea(['rows' => 6]); ?>
</div> </div> <div class="row" style="margin:0; padding:10px; background-color:#f4f4f4; margin-top:10px"> <div class="col-md-3 col-md-pull-9" style="right:0%; color:#007cc3; font-size:20px; margin-top:5px">Presentation</div> <div class="col-md-9 col-md-push-3" style="left:0%"> <div class="col-xs-6"> <div class="form-group" style="position:relative"> <?php echo $form->field($model, 'presentation_start_time', array('labelOptions' => array('class' => 'w80')))->label('Start')->widget(TimePicker::classname(), ['value' => $model->presentationStartTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'defaultTime' => false, 'showSeconds' => false, 'class' => 'form-control input']]); ?> </div> </div> <div class="col-xs-6"> <div class="form-group" style="position:relative"> <?php echo $form->field($model, 'presentation_end_time', array('labelOptions' => array('class' => 'w80')))->label('End')->widget(TimePicker::classname(), ['value' => $model->presentationEndTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'defaultTime' => false, 'showSeconds' => false, 'class' => 'form-control input']]); ?> </div> </div> </div> </div> <div class="row"> <div class="col-xs-6 col-sm-4 p5"> <div class="ml20"> <?php echo $form->field($model, 'location', array('labelOptions' => array('class' => 'f18')))->textInput(['class' => 'form-control intp']); ?> </div> </div> <div class="col-xs-6 col-sm-4 p5"> <div class="ml20">
</div> </div> <div class="col-md-6"> <div class="row"> <div class="col-md-6 offset-2"> <?php echo '<label class="control-label">Tanggal Berakhir</label>'; echo DatePicker::widget(['model' => $model, 'attribute' => 'end_date', 'size' => 'md', 'pluginOptions' => ['startDate' => date('d-m-Y h:i:s'), 'autoclose' => true, 'format' => 'dd/mm/yyyy']]); ?> </div> <div class="col-md-4"> <?php echo '<label>Waktu Berakhir</label>'; echo TimePicker::widget(['model' => $model, 'attribute' => 'end_time', 'value' => '', 'pluginOptions' => ['showSeconds' => true, 'defaultTime' => false]]); ?> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <?php echo $form->field($model, 'location')->textInput(['maxlength' => true]); ?> </div> </div> <div class="row">
?> <?php echo $form->field($model, 'lesson_type_id')->dropDownList(ArrayHelper::map(LessonType::find()->all(), 'id', 'name')); ?> <?php echo $form->field($model, 'week')->dropDownList(['1' => 1, '2' => 2]); ?> <?php echo $form->field($model, 'day')->dropDownList(Lesson::getDaysList()); ?> <?php echo $form->field($model, 'time')->widget(TimePicker::classname(), ['pluginOptions' => ['defaultTime' => '8:30:00', 'showSeconds' => true, 'showMeridian' => false, 'minuteStep' => 5]]); ?> <?php echo $form->field($model, 'auditory')->textInput(['maxlength' => true]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Создать' : 'Сохранить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?>
?> <?php echo $form->field($model, 'date_from')->widget(DateControl::className(), ['type' => DateControl::FORMAT_DATE, 'language' => Yii::$app->language]); ?> <?php echo $form->field($model, 'date_to')->widget(DateControl::className(), ['type' => DateControl::FORMAT_DATE, 'language' => Yii::$app->language]); ?> <?php echo $form->field($model, 'time_from')->widget(TimePicker::className(), ['pluginOptions' => ['defaultTime' => false, 'showSeconds' => false, 'showMeridian' => false], 'options' => ['class' => 'form-control']]); ?> <?php echo $form->field($model, 'time_to')->widget(TimePicker::className(), ['pluginOptions' => ['defaultTime' => false, 'showSeconds' => false, 'showMeridian' => false], 'options' => ['class' => 'form-control']]); ?> <?php echo $form->field($model, 'hour_length')->widget(Spinner::className()); ?> <div class="form-group"> <?php echo Html::submitButton($actionId != 'update' ? Module::t('res', 'Create') : Module::t('res', 'Update'), ['class' => $actionId == 'create' ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?>
</div> <div class="col-xs-6 col-sm-4 p5" style="height:auto;"> <div class="ml20" style="float: left;width:45%"> <div class="f18">Start Time</div> <div class="mt10" id="ab" style="position:relative;"> <?php echo TimePicker::widget(['model' => $model, 'name' => 'MeetingDetails[start_time]', 'value' => $model->startTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'showSeconds' => false]]); ?> </div> </div> <div class="ml20" style="float: left;width:45%"> <div class="f18">End Time</div> <div class="mt10" id="ab" style="position:relative;"> <?php echo TimePicker::widget(['model' => $model, 'name' => 'MeetingDetails[stop_time]', 'value' => $model->stopTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'showSeconds' => false]]); ?> </div> </div> </div> <div class="col-xs-6 col-sm-4 p5" style="height:100px"> <div class="ml20"> <?php echo $form->field($model, 'location', array('labelOptions' => array('class' => 'f18')))->textInput(['maxlength' => 300])->textInput(['class' => 'form-control intp']); ?> </div> </div> <div class="col-xs-6 col-sm-4 p5" style="height:100px"> <div class="ml20"> <?php echo $form->field($model, 'event_type', array('labelOptions' => array('class' => 'f18')))->dropDownList(ArrayHelper::map(backend\models\MeetingTypes::find()->asArray()->all(), 'id', 'type'), ['class' => 'form-control intp']);
?> <?php echo $form->field($model, 'name_event')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'time_n')->widget(TimePicker::classname(), ['pluginOptions' => ['showSeconds' => false, 'showMeridian' => false, 'minuteStep' => 5]]); ?> <?php echo $form->field($model, 'time_c')->widget(TimePicker::classname(), ['pluginOptions' => ['showSeconds' => false, 'showMeridian' => false, 'minuteStep' => 5]]); ?> <?php echo $form->field($model, 'kofebrayk')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'furshet')->textInput(['maxlength' => true]); ?> <?php
<div class="col-xs-6 col-sm-4 p5"> <div class="ml20" style="float: left;width:45%"> <div class="f18">Start Time</div> <div class="mt10" id="ab" style="position:relative;"> <?php echo TimePicker::widget(['model' => $model, 'name' => 'Booths[from_time]', 'value' => $model->fromTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'showSeconds' => false]]); ?> </div> </div> <div class="ml20" style="float: left;width:45%"> <div class="f18">End Time</div> <div class="mt10" id="ab" style="position:relative;"> <?php echo TimePicker::widget(['model' => $model, 'name' => 'Booths[to_time]', 'value' => $model->toTimeFormatted, 'pluginOptions' => ['showMeridian' => true, 'showSeconds' => false]]); ?> </div> </div> </div> <div class="col-xs-6 col-sm-4 p5"> <div class="ml20"> <?php echo $form->field($model, 'Area', array('labelOptions' => array('class' => 'f18')))->textInput(['class' => 'form-control input']); ?> </div> </div>
echo $form->field($model, 'course_code')->dropDownList(ArrayHelper::map(TblCourses::find()->all(), 'id', 'course_name', 'course_code'), ['prompt' => 'Select Course']); ?> <?php echo $form->field($model, 'setup_time')->widget(TimePicker::classname(), []); ?> <?php echo $form->field($model, 'pickup_time')->widget(TimePicker::classname(), []); ?> <?php echo $form->field($model, 'scheduled_start_time')->widget(TimePicker::classname(), []); ?> <?php echo $form->field($model, 'scheduled_end_time')->widget(TimePicker::classname(), []); ?> <?php echo $form->field($model, 'status')->textInput(); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?>
?> <p> <?php echo $form->field($model, 'password')->passwordInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'confirm_password')->passwordInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'startTime')->widget(\kartik\time\TimePicker::className()); ?> <?php echo $form->field($model, 'endTime')->widget(\kartik\time\TimePicker::className()); ?> <?php echo $form->field($model, 'roles')->checkboxList($model::AllRoles()); ?> </p> <div class="hide"> <?php echo $form->field($model, 'contact_id')->hiddenInput(); ?> </div> <?php $this->endBlock(); ?>