form.html 1.4 KB

123456789101112131415161718192021222324252627282930
  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. <div class="layui-form-item">
  4. <label class="relative block">
  5. <span class="color-green font-w7">权限名称</span>
  6. <span class="color-desc margin-left-5">Title</span>
  7. <input type="text" name="title" value='{$vo.title|default=""}' required placeholder="请输入权限名称" class="layui-input">
  8. </label>
  9. </div>
  10. <div class="layui-form-item">
  11. <label class="relative block">
  12. <span class="color-green font-w7">权限描述</span>
  13. <span class="color-desc margin-left-5">Authorization</span>
  14. <textarea placeholder="请输入权限描述" required class="layui-textarea" name="desc">{$vo.desc|default=""}</textarea>
  15. </label>
  16. </div>
  17. </div>
  18. <div class="hr-line-dashed"></div>
  19. {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
  20. <div class="layui-form-item text-center">
  21. <button class="layui-btn" type='submit'>保存数据</button>
  22. <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
  23. </div>
  24. </form>