mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改后台模板
This commit is contained in:
parent
c8d7371520
commit
6e5df29053
@ -1,33 +1,30 @@
|
||||
<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
|
||||
<div class="layui-card-body padding-left-40">
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">用户账号</span>
|
||||
<span class="color-green font-w7">登录用户账号</span>
|
||||
<span class="color-desc margin-left-5">Username</span>
|
||||
<!--{if isset($vo) and isset($vo.username)}-->
|
||||
{if isset($vo) and isset($vo.username)}
|
||||
<input disabled value='{$vo.username|default=""}' class="layui-input layui-bg-gray">
|
||||
<!--{else}-->
|
||||
<input name="username" value='{$vo.username|default=""}' required pattern="^.{4,}$" placeholder="请输入4位及以上字符用户名称" class="layui-input">
|
||||
<!--{/if}-->
|
||||
{else}
|
||||
<input name="username" value='{$vo.username|default=""}' required pattern="^.{4,}$" placeholder="请输入4位及以上字符登录用户账号" class="layui-input">
|
||||
{/if}
|
||||
</label>
|
||||
<p class="help-block">用户账号创建后,不允许再次修改。</p>
|
||||
<p class="help-block">登录用户账号创建后,不允许再次修改。</p>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">联系手机</span>
|
||||
<span class="color-green font-w7">用户联系手机</span>
|
||||
<span class="color-desc margin-left-5">Phone</span>
|
||||
<input type="tel" maxlength="11" autocomplete="off" autofocus name="phone" value='{$vo.phone|default=""}' pattern="^1[3-9][0-9]{9}$" placeholder="请输入联系手机" class="layui-input">
|
||||
<input type="tel" maxlength="11" autocomplete="off" autofocus name="phone" value='{$vo.phone|default=""}' pattern="^1[3-9][0-9]{9}$" placeholder="请输入用户联系手机" class="layui-input">
|
||||
</label>
|
||||
<p class="color-desc">可选,用户联系手机号码,需要填写正确的格式</p>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">联系邮箱</span>
|
||||
<span class="color-green font-w7">联系电子邮箱</span>
|
||||
<span class="color-desc margin-left-5">Email</span>
|
||||
<input name="mail" autocomplete="off" pattern="^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$" value='{$vo.mail|default=""}' placeholder="请输入联系邮箱" class="layui-input">
|
||||
<input name="mail" autocomplete="off" pattern="^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$" value='{$vo.mail|default=""}' placeholder="请输入联系电子邮箱" class="layui-input">
|
||||
</label>
|
||||
<p class="color-desc">可选,用户联系电子邮箱,需要填写正确的格式</p>
|
||||
</div>
|
||||
@ -35,7 +32,7 @@
|
||||
{notempty name='authorizes'}
|
||||
|
||||
<div class="layui-form-item relative">
|
||||
<span class="color-green font-w7">访问授权</span>
|
||||
<span class="color-green font-w7">角色访问授权</span>
|
||||
<span class="color-desc margin-left-5">Authorization</span>
|
||||
<div class="layui-textarea">
|
||||
{if isset($vo.username) and $vo.username eq 'admin'}
|
||||
@ -59,9 +56,9 @@
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">用户描述</span>
|
||||
<span class="color-green font-w7">用户身份描述</span>
|
||||
<span class="color-desc margin-left-5">Description</span>
|
||||
<textarea placeholder="请输入用户描述" class="layui-textarea" name="desc">{$vo.desc|default=""}</textarea>
|
||||
<textarea placeholder="请输入用户身份描述" class="layui-textarea" name="desc">{$vo.desc|default=""}</textarea>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -4,23 +4,23 @@
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">用户账号</span>
|
||||
<span class="color-green font-w7">登录用户账号</span>
|
||||
<span class="color-desc margin-left-5">Username</span>
|
||||
<!--{if isset($vo) and isset($vo.username)}-->
|
||||
<input disabled value='{$vo.username|default=""}' class="layui-input layui-bg-gray">
|
||||
<!--{else}-->
|
||||
<input name="username" value='{$vo.username|default=""}' required pattern="^.{4,}$" placeholder="请输入4位及以上字符用户名称" class="layui-input">
|
||||
<input name="username" value='{$vo.username|default=""}' required pattern="^.{4,}$" placeholder="请输入4位及以上字符登录用户账号" class="layui-input">
|
||||
<!--{/if}-->
|
||||
</label>
|
||||
<p class="help-block">用户账号创建后,不允许再次修改。</p>
|
||||
<p class="help-block">登录用户账号创建后,不允许再次修改。</p>
|
||||
</div>
|
||||
|
||||
<!--{if $verify}-->
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">旧的密码</span>
|
||||
<span class="color-green font-w7">旧的登录密码</span>
|
||||
<span class="color-desc margin-left-5">Old Password</span>
|
||||
<input type="password" autofocus name="oldpassword" value='' pattern="^\S{1,}$" required placeholder="请输入旧的密码" class="layui-input">
|
||||
<input type="password" autofocus name="oldpassword" value='' pattern="^\S{1,}$" required placeholder="请输入旧的登录密码" class="layui-input">
|
||||
</label>
|
||||
<p class="color-desc">请输入旧密码来验证修改权限,旧密码不限制格式。</p>
|
||||
</div>
|
||||
@ -28,18 +28,18 @@
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">新的密码</span>
|
||||
<span class="color-green font-w7">新的登录密码</span>
|
||||
<span class="color-desc margin-left-5">New Password</span>
|
||||
<input type="password" name="password" maxlength="32" pattern="^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,32}$" required placeholder="请输入新的密码" class="layui-input">
|
||||
<input type="password" name="password" maxlength="32" pattern="^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,32}$" required placeholder="请输入新的登录密码" class="layui-input">
|
||||
</label>
|
||||
<p class="color-desc">密码必需包含大小写字母、数字、符号的任意两者组合。</p>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">重复密码</span>
|
||||
<span class="color-green font-w7">重复登录密码</span>
|
||||
<span class="color-desc margin-left-5">Retype Password</span>
|
||||
<input type="password" name="repassword" maxlength="32" pattern="^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,32}$" required placeholder="请输入重复密码" class="layui-input">
|
||||
<input type="password" name="repassword" maxlength="32" pattern="^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,32}$" required placeholder="请输入重复登录密码" class="layui-input">
|
||||
</label>
|
||||
<p class="color-desc">密码必需包含大小写字母、数字、符号的任意两者组合。</p>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user