Exemple #1
0
?>
    </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, 'airline')->textInput(['style' => 'width: 100px;']);
    echo $form->field($model, 'flightnumber')->textInput(['style' => 'width: 100px;']);
    echo $form->field($model, 'gate')->textInput(['style' => 'width: 100px;']);
    echo $form->field($model, 'aircraft')->textInput(['style' => 'width: 100px;']);
    echo $form->field($model, 'icaofrom')->textInput(['style' => 'width: 100px;', 'readonly' => !$model->isarrival]);
    echo $form->field($model, 'icaoto')->textInput(['style' => 'width: 100px;', 'readonly' => $model->isarrival == 1]);
    echo $form->field($model, 'timefrom')->widget(\kartik\widgets\TimePicker::className(), ['pluginOptions' => ['showMeridian' => false], 'options' => ['style' => 'width: 100px;']]);
    echo $form->field($model, 'timeto')->widget(\kartik\widgets\TimePicker::className(), ['pluginOptions' => ['showMeridian' => false], 'options' => ['style' => 'width: 100px;']]);
    echo \yii\bootstrap\Html::submitButton('<i class="fa fa-check"></i>Add', ['class' => 'btn btn-success btn-sm']);
    \kartik\form\ActiveForm::end();
    ?>
        <hr />
        <form method="post" class="form-horizontal" enctype="multipart/form-data">
            <div class="form-group field-batch-loading">
                <input id="form-token" type="hidden" name="<?php 
    echo Yii::$app->request->csrfParam;
    ?>
"
                       value="<?php 
    echo Yii::$app->request->csrfToken;
    ?>
"/>
                <label class="control-label" for="batch-loading">Batch loading(<?php 
Exemple #2
0
?>

		<?php 
echo $form->field($model, 'tagValues')->textInput(['maxlength' => 255])->hint(Yii::t('back', 'Please separate tags by commas!'));
?>

	</div>

	<div class="col-sm-12 col-md-3">

		<?php 
echo $form->field($model, 'content_date')->widget(DatePicker::className(), ['pluginOptions' => ['autoclose' => true], 'options' => ['class' => 'form-control', 'placeholder' => Yii::t('back', 'Date')]]);
?>

		<?php 
echo $form->field($model, 'content_time')->widget(TimePicker::className(), ['pluginOptions' => ['defaultTime' => false, 'showSeconds' => false, 'showMeridian' => false], 'options' => ['class' => 'form-control']]);
?>

		<?php 
echo $form->field($model, 'content_end_date')->widget(DatePicker::className(), ['pluginOptions' => ['autoclose' => true], 'options' => ['class' => 'form-control', 'placeholder' => Yii::t('back', 'End date')]]);
?>

		<?php 
echo $form->field($model, 'categoryBoxes')->checkboxList($model->getCategoryOptions());
?>

		<?php 
echo $form->field($model, 'boxes')->inline()->checkboxList([ArticleForm::PROPERTY_PUBLIC => Yii::t('back', 'Public'), ArticleForm::PROPERTY_ACTIVE => Yii::t('back', 'Active')], ['id' => 'modal-boxes', 'data-main' => 0]);
?>

		<?php 
echo $form->field($model, 'fixed_begin[date]')->widget(DatePicker::className(), ['pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
	    </div>
	    <div class="col-md-6 col-md-2">
	    <?php 
echo $form->field($model, 'fixed_begin[time]')->label(\Yii::t('ticket', 'Time'))->widget(TimePicker::className(), ['pluginOptions' => ['showMeridian' => false, 'showSeconds' => true]]);
?>
	    </div>
	    <div class="col-md-6 col-md-4">
	    <?php 
echo $form->field($model, 'fixed_end[date]')->widget(DatePicker::className(), ['pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
	    </div>
	    <div class="col-md-6 col-md-2">
	    <?php 
echo $form->field($model, 'fixed_end[time]')->label(\Yii::t('ticket', 'Time'))->widget(TimePicker::className(), ['pluginOptions' => ['showMeridian' => false, 'showSeconds' => true]]);
?>
	    </div>
    </div>

    </div>
</div>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('ticket', 'Create') : Yii::t('ticket', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
Exemple #4
0
    $display = 'none';
}
?>
    <?php 
echo $form->field($model, 'sendingDateTime', ['options' => ['style' => "display:{$display};"]])->widget(DateTimePicker::classname(), ['removeButton' => false, 'options' => ['placeholder' => 'Masukkan Tanggal dan Jam Pengiriman'], 'pluginOptions' => ['autoClose' => true, 'format' => 'yyyy-mm-dd hh:ii:ss']]);
?>
    
    <?php 
if ($model->timeOptions == SendSmsForm::TIME_OPT_DELAY) {
    $display = 'block';
} else {
    $display = 'none';
}
?>
    <?php 
echo $form->field($model, 'sendingTime', ['options' => ['style' => "display:{$display};"]])->widget(TimePicker::className(), ['pluginOptions' => ['showMeridian' => false, 'defaultTime' => '00:00']]);
?>
    
    <?php 
echo $form->field($model, 'text')->widget(TextCounterWidget::className(), ['options' => ['rows' => 5, 'class' => 'form-control'], 'pluginOptions' => ['maxCharacterSize' => 153, 'originalStyle' => 'originalTextareaInfo', 'warningStyle' => 'warningTextareaInfo', 'warningNumber' => 40, 'displayFormat' => '#left Karakter Tersisa']]);
?>
    
    <div class="form-group">
        <?php 
echo Html::submitButton('Kirim', ['class' => 'btn btn-primary']);
?>
    </div>
    
    <?php 
ActiveForm::end();
?>
Exemple #5
0
            var yyyy = today.getFullYear();
            dd--;
            if(dd<10) {
              dd="0"+dd
            }
            if(mm<10) {
              mm="0"+mm
            }
            $("#partida-fecha_suceso").val(dd+"/"+mm+"/"+yyyy);
          }
        }']])->label('Fecha de Matrimonio');
?>
      </span>
      <span style="order: 3; flex-grow: 1; margin-right:10px;">
        <?php 
echo $form->field($partida, 'hora_suceso')->widget(TimePicker::className(), ['language' => 'es', 'pluginOptions' => ['showMeridian' => true, 'autoclose' => true], 'options' => ['readonly' => true]])->label('Hora de Matrimonio');
?>
        </span>
      </div>
      <div class="cflex">
        <span style="order: 1; flex-grow: 1; margin-right:10px;">
          <?php 
echo Html::label('Adopta Apellido', 'matrimonio-ape');
?>
          <?php 
echo Html::radioList('adop_casada', 'No', ['Si' => 'Si', 'No' => 'No'], ['id' => 'matrimonio-ape']);
?>
        </span>
        <span style="order: 2; flex-grow: 1; margin-right:10px;">
          <?php 
echo $form->field($model, 'apellido_casada')->textInput(['readOnly' => true, 'placeholder' => 'Especifique el apellido de casada']);
echo $form->field($model, 'replied_at[time]')->widget(TimePicker::className(), ['pluginOptions' => ['showMeridian' => false]]);
?>


    <?php 
echo $form->field($model, 'fixed_begin[date]')->widget(DatePicker::className(), ['options' => ['placeholder' => 'Select issue date ...'], 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
    <?php 
echo $form->field($model, 'fixed_begin[time]')->widget(TimePicker::className(), ['pluginOptions' => ['showMeridian' => false]]);
?>

    <?php 
echo $form->field($model, 'fixed_end[date]')->widget(DatePicker::className(), ['options' => ['placeholder' => 'Select issue date ...'], 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
    <?php 
echo $form->field($model, 'fixed_end[time]')->widget(TimePicker::className(), ['pluginOptions' => ['showMeridian' => false]]);
?>

    <?php 
echo $form->field($model, 'site')->textInput(['maxlength' => 255]);
?>

    <?php 
echo $form->field($model, 'hardware_type')->textInput(['maxlength' => 255]);
?>

    <?php 
echo $form->field($model, 'hardware_part')->textInput(['maxlength' => 255]);
?>

    <?php