yii2-netdisk/views/collection/create.php
Chenx221 84886de324
文件收集功能(4/10)
实现基本创建文件收集功能
具体收集功能后续增加
2024-02-25 10:31:07 +08:00

28 lines
674 B
PHP

<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/** @var yii\web\View $this */
/** @var app\models\CollectionTasks $model */
/** @var yii\widgets\ActiveForm $form */
?>
<div class="collection-tasks-form">
<?php $form = ActiveForm::begin([
'action' => ['collection/create'], // 指定表单提交的URL
]); ?>
<?= $form->field($model, 'folder_path')->textInput(['maxlength' => true, 'readonly' => true]) ?>
<?= $form->field($model, 'secret')->textInput(['maxlength' => true]) ?>
<div class="form-group">
<?= Html::submitButton('创建', ['class' => 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>