26 lines
586 B
PHP
26 lines
586 B
PHP
|
<?php
|
||
|
|
||
|
use yii\helpers\Html;
|
||
|
use yii\widgets\ActiveForm;
|
||
|
|
||
|
/* @var $this yii\web\View */
|
||
|
/* @var $model backend\modules\document\models\DocumentTemplate */
|
||
|
/* @var $form yii\widgets\ActiveForm */
|
||
|
?>
|
||
|
|
||
|
<div class="document-template-form">
|
||
|
|
||
|
<?php $form = ActiveForm::begin(); ?>
|
||
|
|
||
|
<?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
|
||
|
|
||
|
<?= $form->field($model, 'template_body')->textarea(['rows' => 6]) ?>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
|
||
|
</div>
|
||
|
|
||
|
<?php ActiveForm::end(); ?>
|
||
|
|
||
|
</div>
|