26 lines
557 B
PHP
26 lines
557 B
PHP
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\ActiveForm;
|
|
|
|
/** @var yii\web\View $this */
|
|
/** @var app\models\Announcements $model */
|
|
/** @var yii\widgets\ActiveForm $form */
|
|
?>
|
|
|
|
<div class="announcements-form">
|
|
|
|
<?php $form = ActiveForm::begin(); ?>
|
|
|
|
<?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
|
|
|
|
<?= $form->field($model, 'content')->textarea(['rows' => 6]) ?>
|
|
|
|
<div class="form-group">
|
|
<?= Html::submitButton('发布', ['class' => 'btn btn-success']) ?>
|
|
</div>
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
|
|
</div>
|