Example #1
0
                        <div class="col-lg-4">
                                                       
                            <?php 
if ($model->isNewRecord) {
    ?>
                        
								<?php 
    echo $form->field($model, 'modified')->widget(DateTimePicker::classname(), ['options' => ['disabled' => 'disabled', 'value' => date("Y-m-d H:i:s")], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd hh:ii:ss', 'todayHighlight' => true]]);
    ?>
                                
                            <?php 
} else {
    ?>
                            
                            	<?php 
    echo $form->field($model, 'modified')->widget(DateTimePicker::classname(), ['options' => ['disabled' => 'disabled', 'value' => $model->modified], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd hh:ii:ss']]);
    ?>
                            
                            <?php 
}
?>

                            <?php 
echo $form->field($model, 'created_by')->widget(Select2::classname(), ['data' => [$created_by => $created_by_username], 'addon' => ['prepend' => ['content' => '<i class="glyphicon glyphicon-user"></i>']]]);
?>
                            
                            <?php 
echo $form->field($model, 'modified_by')->widget(Select2::classname(), ['data' => [$modified_by => $modified_by_username], 'addon' => ['prepend' => ['content' => '<i class="glyphicon glyphicon-user"></i>']]]);
?>
                            
                            <?php 
Example #2
0
?>

    <?php 
echo $form->field($model, 'message_type')->dropDownList(Message::getLocalizedConstants('TYPE_'));
?>

    <?php 
echo $form->field($model, 'facility_id')->dropDownList(['' => ''] + ArrayHelper::map(Facility::find()->asArray()->all(), 'id', 'name'));
?>

    <?php 
echo $form->field($model, 'message_start')->widget(DateTimePicker::classname(), ['pluginOptions' => ['format' => 'yyyy-mm-dd hh:ii:ss', 'todayHighlight' => true]]);
?>

    <?php 
echo $form->field($model, 'message_end')->widget(DateTimePicker::classname(), ['pluginOptions' => ['format' => 'yyyy-mm-dd hh:ii:ss', 'todayHighlight' => true]]);
?>

    <?php 
echo $form->field($model, 'status')->dropDownList(Message::getLocalizedConstants('STATUS_'));
?>

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

    <?php 
ActiveForm::end();
?>
Example #3
0
    <div class="row">
        <div class="col-md-7">
            <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>
            <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>
            <?php 
echo $form->field($model, 'category')->dropDownList(['' => ''] + ContentCategory::getLabels());
?>
        </div>
        <div class="col-md-5">
            <?php 
echo $form->field($model, 'publishTime')->widget(DateTimePicker::classname());
?>
            <?php 
echo $form->field($model, 'image')->widget(FileInput::className());
?>
            <?php 
echo $form->field($model, 'isPublished')->checkbox();
?>
        </div>
    </div>
    <?php 
echo $form->field($model, 'previewText')->widget(CKEditor::className());
?>
    <?php 
echo $form->field($model, 'text')->widget(CKEditor::className());
?>
Example #4
0
?>

            <?php 
echo $form->field($model, 'announce')->widget(Yii::$app->getModule('core')->wysiwyg_class_name(), Yii::$app->getModule('core')->wysiwyg_params());
?>

            <?php 
echo $form->field($model, 'content')->widget(Yii::$app->getModule('core')->wysiwyg_class_name(), Yii::$app->getModule('core')->wysiwyg_params());
?>

            <?php 
echo $form->field($model, 'sort_order');
?>

            <?php 
echo $form->field($model, 'date_added')->widget(DateTimePicker::classname(), ['pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd hh:ii', 'todayHighlight' => true, 'todayBtn' => true]]);
?>

            <?php 
if ($model->isNewRecord === false) {
    echo $form->field($model, 'parent_id')->dropDownList(ArrayHelper::merge([0 => Yii::t('app', 'Root')], ArrayHelper::map(\app\modules\shop\models\Category::find()->where('id != :id', ['id' => $model->id])->all(), 'id', 'name')));
}
?>
            <?php 
BackendWidget::end();
?>

            <?php 
BackendWidget::begin(['title' => Yii::t('app', 'Images'), 'icon' => 'image', 'footer' => $this->blocks['submit']]);
?>
Example #5
0
?>
			
	</div>

	<?php 
echo $form->field($model, 'PILOT_NM')->textInput();
?>

	<?php 
echo $form->field($model, 'PLAN_DATE1')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => 'Enter date ...'], 'pluginOptions' => ['autoclose' => true], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>

  

 <?php 
echo $form->field($model, 'PLAN_DATE2')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => 'Enter date ...'], 'pluginOptions' => ['autoclose' => true], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>

    

<?php 
echo $form->field($model, 'DESTINATION_TO')->widget(Select2::classname(), ['data' => $dropemploy, 'options' => ['placeholder' => 'Pilih Karyawan ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
	
		
	<div style="text-align: right;"">
		<?php 
echo Html::submitButton('Submit', ['class' => 'btn btn-primary']);
?>
	</div>
	<?php 
Example #6
0
echo $form->field($model, 'precio')->textInput(['maxlength' => true]);
?>

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

    <?php 
echo $form->field($model, 'dia')->textInput();
?>

    <?php 
echo $form->field($model, 'fecha_ini')->widget(DateTimePicker::classname(), ['name' => 'datetime_20', 'type' => DateTimePicker::TYPE_COMPONENT_APPEND, 'options' => ['placeholder' => 'Seleccione fecha...'], 'pluginOptions' => ['format' => 'yyyy-MM-dd HH:ii', 'autoclose' => true]]);
?>

    <?php 
echo $form->field($model, 'fecha_fin')->widget(DateTimePicker::classname(), ['name' => 'datetime_20', 'type' => DateTimePicker::TYPE_COMPONENT_APPEND, 'options' => ['placeholder' => 'Seleccione fecha...'], 'pluginOptions' => ['format' => 'yyyy-MM-dd HH:ii', 'autoclose' => true]]);
?>

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

    <?php 
ActiveForm::end();
?>

</div>
Example #7
0
    <?php 
$form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true, 'enableAjaxValidation' => true, 'validationUrl' => Url::toRoute('/purchasing/salesman-order/valid-alias-header')]);
?>

    

    <?php 
echo $form->field($model, 'parent_cusid')->widget(Select2::classname(), ['data' => $data_cus, 'options' => ['placeholder' => 'Pilih parent Customers..'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
echo $form->field($model, 'CUST_ID')->widget(DepDrop::classname(), ['options' => ['placeholder' => 'Select Customers'], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['soheader-parent_cusid'], 'url' => Url::to(['/purchasing/salesman-order/lis-child-cus']), 'loadingText' => 'Loading data ...']]);
?>

    <?php 
echo $form->field($model, 'TGL')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => ' pilih ...'], 'pluginOptions' => ['autoclose' => true], 'pluginEvents' => ['show' => "function(e) {errror}"]]);
?>


     <?php 
echo $form->field($model, 'USER_SIGN1')->widget(Select2::classname(), ['data' => $data_user, 'options' => ['placeholder' => 'Pilih User..'], 'pluginOptions' => ['allowClear' => true]]);
?>


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

    <?php 
Example #8
0
echo $form->field($model, 'number', ['options' => ['id' => 'number-group-single', 'style' => "display:{$display};"]])->textInput(['id' => 'sendsmsForm-number-single']);
?>
    
    <?php 
echo $form->field($model, 'timeOptions')->radioList($model->getTimeOptions(), ['separator' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', 'validateOnChange' => false]);
?>
    
    <?php 
if ($model->timeOptions == SendSmsForm::TIME_OPT_DATETIME) {
    $display = 'block';
} else {
    $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']]);
Example #9
0
	<?php 
echo $form->field($model, 'client_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(Client::find()->all(), 'id', 'searchableName'), 'options' => ['placeholder' => 'Selecciona un Cliente...'], 'pluginOptions' => ['allowClear' => true]]);
?>
	
    <?php 
echo $form->field($model, 'user_id')->dropDownList(ArrayHelper::map(User::find()->all(), 'id', 'user_name'));
?>
	
	<?php 
echo $form->field($model, 'solved')->checkbox([], false);
?>

    <!--?= $form->field($model, 'date_solved')->textInput() ?-->
	
	<?php 
echo $form->field($model, 'date_solved')->widget(DateTimePicker::classname(), ['type' => DateTimePicker::TYPE_INPUT, 'pluginOptions' => ['minuteStep' => 1, 'autoclose' => true, 'format' => 'yyyy-mm-dd H:ii:s', 'todayBtn' => true]]);
?>

    

    <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', 'style' => 'float:left; margin-left:299px;']);
?>
		<?php 
echo Html::a('Cancelar', ['assignation/index'], ['class' => 'btn btn-danger btn-md', 'style' => 'margin-left:396px;']);
?>
    </div>

    <?php 
ActiveForm::end();
Example #10
0
<div class="news-form">

    <?php 
$form = ActiveForm::begin();
?>

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

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

    <?php 
echo $form->field($model, 'date')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => 'Enter event time ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy hh:ii']]);
?>

    <?php 
echo $form->field($model, 'text')->widget(\dosamigos\tinymce\TinyMce::className(), ['options' => ['rows' => 6], 'language' => 'ru', 'clientOptions' => ['plugins' => ["advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste"], 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"]]);
?>

    <?php 
echo $form->field($model, 'approve')->dropDownList([0 => 'Нет', 1 => 'Да']);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Добавить' : 'Сохранить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
Example #11
0
    <?php 
$form = ActiveForm::begin();
?>


        <?php 
echo $form->field($model, 'user_id')->dropDownList(ArrayHelper::map(User::find()->all(), 'id', 'firstname'), ['prompt' => 'Pilih Nama']);
?>
           <?php 
echo $form->field($model, 'armada_id')->dropDownList(ArrayHelper::map(Armada::find()->all(), 'armada_id', 'armada_nama'), ['prompt' => 'Pilih Armada']);
?>
        <?php 
echo $form->field($model, 'alamat_penjemputan');
echo $form->field($model, 'start_datetime')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => 'Tanggal Mulai'], 'value' => date('d M Y h:m:s'), 'pluginOptions' => ['format' => 'yyyy-mm-dd h:m:s', 'autoclose' => true]]);
?>
  
    <?php 
echo $form->field($model, 'end_datetime')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => 'Tanggal Mulai'], 'value' => date('d M Y h:m:s'), 'pluginOptions' => ['format' => 'yyyy-mm-dd h:m:s', 'autoclose' => true]]);
?>
    
        <div class="form-group">
            <?php 
echo Html::submitButton('Submit', ['class' => 'btn btn-primary']);
?>
        </div>
    <?php 
ActiveForm::end();
?>

</div><!-- order -->
Example #12
0
	<?php 
if ($model->competition_type == $model::TYPE_MATCH) {
    ?>

    <?php 
    echo $form->field($model, 'course_id')->dropDownList(Course::getCourseList(true));
    ?>

	<?php 
    echo $form->field($model, 'holes')->dropDownList(array(18 => '18', 9 => '9'));
    ?>

	<div class='row'>
		<div class='col-lg-4'>
	    <?php 
    echo $form->field($model, 'start_date')->widget(DateTimePicker::classname(), ['pluginOptions' => ['format' => 'yyyy-mm-dd hh:ii:ss', 'todayHighlight' => true]])->label(Yii::t('igolf', 'Start Date &amp; Time'));
    ?>
		</div>

		<div class='col-lg-8'>
		<?php 
    echo $form->field($model, 'recurrence_text', ['addon' => ['prepend' => ['content' => Html::button('<span class="glyphicon glyphicon-repeat"></span>', ['class' => 'btn btn-default', 'data' => ['toggle' => 'modal', 'target' => '#recurrence-modal'], 'style' => 'background-color: #eee;']) . PHP_EOL . Html::button('<span class="glyphicon glyphicon-remove"></span>', ['class' => 'btn btn-default remove-recurrence', 'style' => 'background-color: #eee;']), 'asButton' => true]]])->label(Yii::t('igolf', 'Repeat Event'));
    // echo Html::activeHiddenInput($model, 'recurrence');
    echo $form->field($model, 'recurrence')->textInput(['readonly' => true])->label(false);
    echo $this->render('scheduler', ['form' => $form]);
    ?>
		</div>
	</div>

	<div class="clearfix"></div>
	<?php 
Example #13
0
?>

    <?php 
echo $form->field($model, 'description')->textInput(['maxlength' => true, 'placeholder' => 'Description']);
?>

    <?php 
echo $form->field($model, 'allDay')->textInput(['placeholder' => 'AllDay']);
?>

    <?php 
echo $form->field($model, 'start')->widget(\kartik\widgets\DateTimePicker::classname(), ['options' => ['placeholder' => 'Choose Start'], 'pluginOptions' => ['autoclose' => true, 'format' => 'mm/dd/yyyy hh:ii:ss']]);
?>

    <?php 
echo $form->field($model, 'end')->widget(\kartik\widgets\DateTimePicker::classname(), ['options' => ['placeholder' => 'Choose End'], 'pluginOptions' => ['autoclose' => true, 'format' => 'mm/dd/yyyy hh:ii:ss']]);
?>

    <?php 
echo $form->field($model, 'dow')->textInput(['maxlength' => true, 'placeholder' => 'Dow']);
?>

    <?php 
echo $form->field($model, 'url')->textInput(['maxlength' => true, 'placeholder' => 'Url']);
?>

    <?php 
echo $form->field($model, 'className')->textInput(['maxlength' => true, 'placeholder' => 'ClassName']);
?>

    <?php