30 lines
721 B
PHP
Executable File
30 lines
721 B
PHP
Executable File
<?php
|
|
|
|
use kartik\color\ColorInput;
|
|
use yii\helpers\Html;
|
|
use yii\widgets\ActiveForm;
|
|
|
|
/** @var yii\web\View $this */
|
|
/** @var common\models\GisBase $model */
|
|
/** @var yii\widgets\ActiveForm $form */
|
|
?>
|
|
|
|
<div class="gis-base-form">
|
|
|
|
<?php $form = ActiveForm::begin(); ?>
|
|
|
|
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
|
|
<?= $form->field($model, 'color')->widget(ColorInput::classname(), [
|
|
'options' => ['placeholder' => 'Select color ...'],
|
|
])?>
|
|
<?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>
|
|
|
|
|
|
<div class="form-group">
|
|
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
|
|
</div>
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
|
|
</div>
|