2024-03-10 17:11:56 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use yii\bootstrap5\Html;
|
|
|
|
use yii\bootstrap5\ActiveForm;
|
2024-03-11 20:24:51 +08:00
|
|
|
use yii\web\View;
|
2024-03-10 17:11:56 +08:00
|
|
|
|
|
|
|
/** @var yii\web\View $this */
|
|
|
|
/** @var app\models\User $model */
|
|
|
|
/** @var ActiveForm $form */
|
|
|
|
|
|
|
|
$this->title = '解锁文件保险箱';
|
|
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
|
|
?>
|
2024-03-11 20:24:51 +08:00
|
|
|
<div class="vault-gateway">
|
|
|
|
<h1><?= Html::encode($this->title) ?></h1>
|
2024-03-10 17:11:56 +08:00
|
|
|
|
2024-03-11 20:24:51 +08:00
|
|
|
<p>要访问文件保险箱,你必须要提供正确的保险箱密码</p>
|
2024-03-10 17:11:56 +08:00
|
|
|
|
2024-03-11 20:24:51 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-5">
|
|
|
|
<?php $form = ActiveForm::begin(['id' => 'gateway-vault-form', 'action' => ['vault/auth'], 'method' => 'post']); ?>
|
2024-03-12 17:04:19 +08:00
|
|
|
<?= $form->field($model, 'vault_secret')->passwordInput(['id'=>'password'])->label('保险箱密码(不是登陆密码)') ?>
|
2024-03-11 20:24:51 +08:00
|
|
|
<div class="form-group">
|
|
|
|
<?= Html::submitButton('确认', ['class' => 'btn btn-primary']) ?>
|
|
|
|
</div>
|
|
|
|
<?php ActiveForm::end(); ?>
|
2024-03-10 17:11:56 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-03-11 20:24:51 +08:00
|
|
|
<?php
|
|
|
|
$this->registerJsFile('@web/js/vault_gateway_hook.js', ['position' => View::POS_END]);
|
|
|
|
?>
|