50 lines
2.4 KiB
PHP
50 lines
2.4 KiB
PHP
<div class="auth-wrap">
|
|||
|
|
<div class="auth-card">
|
||
|
|
<img class="logo" src="/assets/icons/icon-192.png" alt="">
|
||
|
|
<h1>安装「家书」</h1>
|
||
|
|
<p class="lead">先建好你的家庭空间,再给家里人开通知。填完这一步就能用了。</p>
|
||
|
|
|
||
|
|
<?php if (!empty($errors['_'])): ?>
|
||
|
|
<div class="flash"><div class="flash-item err"><?= e($errors['_']) ?></div></div>
|
||
|
|
<?php endif; ?>
|
||
|
|
|
||
|
|
<form method="post" action="install.php">
|
||
|
|
<?= csrf_field() ?>
|
||
|
|
<div class="form-grid">
|
||
|
|
<div class="field full">
|
||
|
|
<label for="family_name">家庭名称</label>
|
||
|
|
<input class="input" id="family_name" name="family_name"
|
||
|
|
value="<?= e(old('family_name', '我们家')) ?>" placeholder="比如:我们家" required>
|
||
|
|
</div>
|
||
|
|
<div class="field full">
|
||
|
|
<label for="motto">一句话</label>
|
||
|
|
<input class="input" id="motto" name="motto" value="<?= e(old('motto')) ?>"
|
||
|
|
placeholder="写在首页的一行小字,可留空">
|
||
|
|
</div>
|
||
|
|
<div class="field">
|
||
|
|
<label for="name">你的姓名</label>
|
||
|
|
<input class="input" id="name" name="name" value="<?= e(old('name')) ?>" required>
|
||
|
|
<?php if (!empty($errors['name'])): ?><span class="err"><?= e($errors['name']) ?></span><?php endif; ?>
|
||
|
|
</div>
|
||
|
|
<div class="field">
|
||
|
|
<label for="phone">手机号</label>
|
||
|
|
<input class="input" id="phone" name="phone" value="<?= e(old('phone')) ?>"
|
||
|
|
inputmode="numeric" placeholder="登录用" required>
|
||
|
|
<span class="tip">家里每个人都可以有自己的手机号和密码。</span>
|
||
|
|
<?php if (!empty($errors['phone'])): ?><span class="err"><?= e($errors['phone']) ?></span><?php endif; ?>
|
||
|
|
</div>
|
||
|
|
<div class="field full">
|
||
|
|
<label for="password">登录密码</label>
|
||
|
|
<input class="input" id="password" name="password" type="password" required>
|
||
|
|
<span class="tip">至少 8 位,且同时含字母和数字。</span>
|
||
|
|
<?php if (!empty($errors['password'])): ?><span class="err"><?= e($errors['password']) ?></span><?php endif; ?>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<button class="btn" type="submit">建好,进去看看</button>
|
||
|
|
<p class="auth-foot">
|
||
|
|
数据库:<?= e($dbName) ?> · 手机号与身份证号都会加密后入库
|
||
|
|
</p>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
</div>
|