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

39 lines
853 B
PHP

<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/** @var yii\web\View $this */
/** @var app\models\AnnouncementsSearch $model */
/** @var yii\widgets\ActiveForm $form */
?>
<div class="announcements-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
'options' => [
'data-pjax' => 1
],
]); ?>
<?= $form->field($model, 'id') ?>
<?= $form->field($model, 'title') ?>
<?= $form->field($model, 'content') ?>
<?= $form->field($model, 'published_at') ?>
<?= $form->field($model, 'updated_at') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-outline-secondary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>