form.html 1.4 KB

12345678910111213141516171819202122232425
  1. <form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
  2. <div class="layui-card-body padding-left-40">
  3. <label class="layui-form-item relative block">
  4. <span class="color-green font-w7">访问权限名称</span><span class="color-desc margin-left-5">Permission Name</span>
  5. <input type="text" name="title" value='{$vo.title|default=""}' required placeholder="请输入访问权限名称" class="layui-input">
  6. <span class="help-block">权限名称需要保持不重复,在给用户授权时需要根据名称选择!</span>
  7. </label>
  8. <label class="layui-form-item relative block">
  9. <span class="color-green font-w7">访问权限描述</span><span class="color-desc margin-left-5">Permission Remark</span>
  10. <textarea placeholder="请输入访问权限描述" class="layui-textarea" name="desc">{$vo.desc|default=""}</textarea>
  11. </label>
  12. </div>
  13. <div class="hr-line-dashed"></div>
  14. {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
  15. <div class="layui-form-item text-center">
  16. <button class="layui-btn" type='submit'>保存数据</button>
  17. <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
  18. </div>
  19. </form>