zzwy2/view/manager/member/edit.html

36 lines
1.7 KiB
HTML
Raw Normal View History

2022-10-08 09:31:39 +00:00
<div class="layui-card layui-col-md12">
<div class="layui-card-body">
<form data-action="{:url('manager.member/edit')}" class="layui-form">
<input type="hidden" name="__token__" value="{$_token}" />
<div class="layui-form-item">
<label class="layui-form-label">分组</label>
<div class="layui-input-block">
<select class="layui-input" name="group_id">
{foreach name="groups" item="group"}
<option <?php if($item['group_id'] == $group['id']){echo 'selected';}?> value="{$group.id}">{$group.title}</option>
{/foreach}
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">用户名</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="username" value="{$item.username}" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">密码</label>
<div class="layui-input-block">
<input class="layui-input" type="password" name="password" />
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<input type="hidden" class="layui-input" name="id" value="{$item.id}" />
<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submitAll">保存</button>
</div>
</div>
</form>
</div>
</div>