yii2-netdisk/views/admin/_announcements_form.php
Chenx221 475cd97946
实现公告功能
*前端 公告管理部分
2024-04-21 16:42:37 +08:00

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>