add.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. {:token()}
  3. <div class="form-group">
  4. <label class="control-label col-xs-12 col-sm-2">{:__('Ismenu')}:</label>
  5. <div class="col-xs-12 col-sm-8">
  6. {:build_radios('row[ismenu]', ['1'=>__('Yes'), '0'=>__('No')])}
  7. </div>
  8. </div>
  9. <div class="form-group">
  10. <label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  11. <div class="col-xs-12 col-sm-8">
  12. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[belong]">
  13. {foreach name="typeList" item="vo"}
  14. <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
  15. {/foreach}
  16. </select>
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <label for="c-pid" class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
  21. <div class="col-xs-12 col-sm-8">
  22. <select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[pid]">
  23. {foreach name="parentList" item="vo"}
  24. <option data-type="{$vo.belong}" value="{$key}" {in name="key" value=""}selected{/in}>{$vo.title}</option>
  25. {/foreach}
  26. </select>
  27. </div>
  28. </div>
  29. <!-- <div class="form-group">-->
  30. <!-- <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>-->
  31. <!-- <div class="col-xs-12 col-sm-8">-->
  32. <!-- <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" data-placeholder-node="{:__('Node tips')}" data-placeholder-menu="{:__('Menu tips')}">-->
  33. <!-- </div>-->
  34. <!-- </div>-->
  35. <div class="form-group">
  36. <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  37. <div class="col-xs-12 col-sm-8">
  38. <input id="c-title" class="form-control" name="row[title]" type="text" value="">
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label for="c-content" class="control-label col-xs-12 col-sm-2">内容</label>
  43. <div class="col-xs-12 col-sm-8">
  44. <textarea id="c-content" class="form-control editor" rows="5" cols="50" name="row[content]"></textarea>
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  49. <div class="col-xs-12 col-sm-8">
  50. <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  55. <div class="col-xs-12 col-sm-8">
  56. {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
  57. </div>
  58. </div>
  59. <div class="form-group layer-footer">
  60. <label class="control-label col-xs-12 col-sm-2"></label>
  61. <div class="col-xs-12 col-sm-8">
  62. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  63. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  64. </div>
  65. </div>
  66. </form>