add.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <h1>
  5. 新增节点
  6. <small>
  7. <i class="icon-double-angle-right"></i>
  8. {$crumbs}
  9. </small>
  10. </h1>
  11. </div>
  12. <div class="row">
  13. <div class="col-xs-12">
  14. <form class="form-horizontal" id="validation-form" method="post" action='{:U("Nodes/create")}'>
  15. <div class="form-group required">
  16. <label class="col-sm-2 control-label">节点标题:</label>
  17. <div class="col-sm-6">
  18. <input class="form-control" type="text" placeholder="节点标题" name="node[title]" value="" />
  19. </div>
  20. </div>
  21. <div class="form-group required">
  22. <label class="col-sm-2 control-label">节点名称:</label>
  23. <div class="col-sm-6">
  24. <input class="form-control" type="text" placeholder="节点名称" name="node[name]" value="" />
  25. </div>
  26. </div>
  27. <div class="form-group required">
  28. <label class="col-sm-2 control-label">父节点:</label>
  29. <div class="col-sm-10">
  30. <select name="node[pid]">
  31. <option value="0">无</option>
  32. <volist name="nodes" id="node">
  33. <option value="{$node['id']}">{$node['fullname']}</option>
  34. </volist>
  35. </select>
  36. </div>
  37. </div>
  38. <div class="form-group required">
  39. <label class="col-sm-2 control-label">节点等级:</label>
  40. <div class="col-sm-10">
  41. <select name="node[level]">
  42. <option value="1" selected>应用(GROUP)</option>
  43. <option value="2">模块(MODULE)</option>
  44. <option value="3">操作(ACTION)</option>
  45. </select>
  46. </div>
  47. </div>
  48. <div class="form-group required">
  49. <label class="col-sm-2 control-label">状态:</label>
  50. <div class="col-sm-10">
  51. <select name="node[status]">
  52. <option value="1" selected>启用</option>
  53. <option value="0">禁用</option>
  54. </select>
  55. </div>
  56. </div>
  57. <div class="form-group">
  58. <label class="col-sm-1 control-label no-padding-left"> </label>
  59. <div class="col-sm-11">
  60. <input name="send" type="submit" value="提交" class="btn btn-primary" />
  61. </div>
  62. </div>
  63. </form>
  64. </div>
  65. </div>
  66. </block>