新增免登录物品借出登记
This commit is contained in:
Vendored
+16
-2
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>WorkLog · 活动记录</title>
|
||||
<meta name="theme-color" content="#f5f7f5" />
|
||||
<link rel="stylesheet" href="/assets/styles.css?v=25" />
|
||||
<link rel="stylesheet" href="/assets/styles.css?v=26" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
@@ -46,6 +46,7 @@
|
||||
<div class="tabs">
|
||||
<button class="tab active" data-auth="login">登录</button>
|
||||
<button class="tab" data-auth="register">注册新账号</button>
|
||||
<button class="tab" data-auth="loan">免登录借出</button>
|
||||
</div>
|
||||
<form id="login-form">
|
||||
<label>邮箱 *<input name="email" type="email" required maxlength="255" autocomplete="email" placeholder="注册时使用的邮箱" /></label>
|
||||
@@ -104,6 +105,19 @@
|
||||
<div class="form-hint muted" id="register-hint" role="status"></div>
|
||||
<button class="btn primary block" type="submit" id="register-submit">创建账号</button>
|
||||
</form>
|
||||
<form id="public-loan-form" class="hidden">
|
||||
<h3>免登录物品借出</h3>
|
||||
<p class="muted">无需注册账号即可登记。提交后只记录本次借出,不扣减库存,也不会生成活动或账号。</p>
|
||||
<label>姓名 *<input name="name" required maxlength="64" autocomplete="name" placeholder="真实姓名" /></label>
|
||||
<label>手机号 *<input name="phone" type="tel" required minlength="11" maxlength="11" pattern="1[3-9][0-9]{9}" inputmode="numeric" autocomplete="tel-national" title="请填写正确的 11 位手机号" placeholder="11 位手机号" /></label>
|
||||
<label>学院 *<input name="college" required maxlength="100" placeholder="例如:计算机学院" /></label>
|
||||
<label>活动名称 *<input name="activity_name" required maxlength="160" placeholder="例如:社团迎新活动" /></label>
|
||||
<label>借出物品与数量 *<textarea name="note" required maxlength="500" placeholder="例如:投影仪 1 台、HDMI 线 1 根、插线板 2 个"></textarea></label>
|
||||
<p class="form-hint muted">请如实填写接触的物品和数量,归还时请现场核对。</p>
|
||||
<div class="form-error" id="public-loan-error" role="alert"></div>
|
||||
<div class="form-hint muted" id="public-loan-status" role="status"></div>
|
||||
<button class="btn primary block" type="submit" id="public-loan-submit">提交借出登记</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -323,7 +337,7 @@
|
||||
|
||||
<div id="toast" class="toast hidden" role="status" aria-live="polite"></div>
|
||||
|
||||
<script src="/js/app.js?v=37"></script>
|
||||
<script src="/js/app.js?v=38"></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user