1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <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="layui-col-xs2 think-form-label">姓名</label>
- <label class="layui-col-xs10">
- <input name="name" required value='{$vo.name|default=""}' placeholder="请输入姓名" class="layui-input">
- </label>
- </div>
- <div class="layui-form-item">
- <label class="layui-col-xs2 think-form-label">手机号</label>
- <label class="layui-col-xs10">
- <input type="tel" required maxlength="11" autocomplete="off" name="phone" value='{$vo.phone|default=""}' pattern="^1[3-9][0-9]{9}$" placeholder="请输入用户联系手机" class="layui-input">
- </label>
- </div>
- <div class="layui-form-item">
- <label class="layui-col-xs2 think-form-label">登录账号</label>
- <label class="layui-col-xs10">
- <input name="username" required value='{$vo.username|default=""}' pattern="^.{4,}$" placeholder="请输入4位及以上字符登录用户账号" class="layui-input">
- </label>
- </div>
- {if !isset($vo.id)}
- <div class="layui-form-item">
- <label class="layui-col-xs2 think-form-label">登录密码</label>
- <label class="layui-col-xs10">
- <input type="password" name="password" maxlength="32" pattern="^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,32}$" required placeholder="必需包含大小写字母、数字、符号的任意两者组合。" class="layui-input">
- </label>
- </div>
- {/if}
- {if isset($vo.username) and $vo.username eq 'admin'}
- {else}
- <div class="layui-form-item">
- <label class="layui-col-xs2 think-form-label" >选择权限</label>
- <label class="layui-col-xs10">
- <select name="authorize" required id="authorize" lay-verify="required" lay-search>
- <option value="">请选择</option>
- {foreach $authorizes as $authorize}
- {if isset($vo.id) && ($vo.authorize eq $authorize.id)}
- <option selected value="{$authorize.id}">{$authorize.title}</option>
- {else}
- <option value="{$authorize.id}">{$authorize.title}</option>
- {/if}
- {/foreach}
- </select>
- </label>
- </div>
- {/if}
- </div>
- <div class="hr-line-dashed"></div>
- {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
- <div class="layui-form-item text-center">
- <button class="layui-btn" type='submit' lay-submit style="background: #DC0619">确认</button>
- <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消吗?" data-close style="background: #BDBDBD">取消</button>
- </div>
- <script>
- layui.form.render();
- </script>
- </form>
|