add.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <include file="public@header" />
  2. </head>
  3. <body>
  4. <div class="wrap">
  5. <ul class="nav nav-tabs">
  6. <li><a href="{:url('Menu/index')}">后台菜单</a></li>
  7. <li class="active"><a href="{:url('Menu/add')}">添加菜单</a></li>
  8. <li><a href="{:url('Menu/lists')}">所有菜单</a></li>
  9. </ul>
  10. <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('menu/addPost')}">
  11. <div class="form-group">
  12. <label for="input-parent_id" class="col-sm-2 control-label"><span class="form-required">*</span>上级</label>
  13. <div class="col-md-6 col-sm-10">
  14. <select class="form-control" name="parent_id" id="input-parent_id">
  15. <option value="0">作为一级菜单</option>{$select_category}
  16. </select>
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>名称</label>
  21. <div class="col-md-6 col-sm-10">
  22. <input type="text" class="form-control" id="input-name" name="name">
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <label for="input-app" class="col-sm-2 control-label"><span class="form-required">*</span>应用</label>
  27. <div class="col-md-6 col-sm-10">
  28. <input type="text" class="form-control" id="input-app" name="app">
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label for="input-controller" class="col-sm-2 control-label"><span class="form-required">*</span>控制器</label>
  33. <div class="col-md-6 col-sm-10">
  34. <input type="text" class="form-control" id="input-controller" name="controller">
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <label for="input-action" class="col-sm-2 control-label"><span class="form-required">*</span>方法</label>
  39. <div class="col-md-6 col-sm-10">
  40. <input type="text" class="form-control" id="input-action" name="action">
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label for="input-param" class="col-sm-2 control-label">参数</label>
  45. <div class="col-md-6 col-sm-10">
  46. <input type="text" class="form-control" id="input-param" name="param">
  47. <p class="help-block">例:id=3&amp;p=3</p>
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label for="input-icon" class="col-sm-2 control-label">图标</label>
  52. <div class="col-md-6 col-sm-10">
  53. <input type="text" class="form-control" id="input-icon" name="icon">
  54. <p class="help-block">
  55. <a href="http://www.thinkcmf.com/font/font_awesome/icons.html" target="_blank">选择图标</a> 不带前缀fa-,如fa-user => user
  56. </p>
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <label for="input-remark" class="col-sm-2 control-label">备注</label>
  61. <div class="col-md-6 col-sm-10">
  62. <textarea class="form-control" id="input-remark" name="remark"></textarea>
  63. </div>
  64. </div>
  65. <div class="form-group">
  66. <label for="input-status" class="col-sm-2 control-label">状态</label>
  67. <div class="col-md-6 col-sm-10" id="input-status">
  68. <select class="form-control" name="status">
  69. <option value="1">在左侧菜单显示</option>
  70. <option value="0">在左侧菜单隐藏</option>
  71. </select>
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label for="input-type" class="col-sm-2 control-label">类型</label>
  76. <div class="col-md-6 col-sm-10">
  77. <select class="form-control" name="type" id="input-type">
  78. <option value="1">有界面可访问菜单</option>
  79. <option value="2">无界面可访问菜单</option>
  80. <option value="0">只作为菜单</option>
  81. </select>
  82. </div>
  83. </div>
  84. <div class="form-group">
  85. <div class="col-sm-offset-2 col-sm-10">
  86. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
  87. </div>
  88. </div>
  89. </form>
  90. </div>
  91. <script src="__STATIC__/js/admin.js"></script>
  92. </body>
  93. </html>