add.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <form id="add-form" class="form-horizontal form-ajax" 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 class="control-label col-xs-12 col-sm-2">{:__('Parent')}:</label>
  11. <div class="col-xs-12 col-sm-8">
  12. {:build_select('row[pid]', $ruledata, null, ['class'=>'form-control', 'required'=>''])}
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label for="name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  17. <div class="col-xs-12 col-sm-8">
  18. <input type="text" class="form-control" id="name" name="row[name]" data-placeholder-node="{:__('Node tips')}" data-placeholder-menu="{:__('Menu tips')}" value="" data-rule="required" />
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  23. <div class="col-xs-12 col-sm-8">
  24. <input type="text" class="form-control" id="title" name="row[title]" value="" data-rule="required" />
  25. </div>
  26. </div>
  27. <div class="form-group" data-type="menu">
  28. <label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
  29. <div class="col-xs-12 col-sm-8">
  30. <input type="text" class="form-control" id="url" name="row[url]" value="" data-rule="" placeholder="{:__('Url tips')}" />
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label for="icon" class="control-label col-xs-12 col-sm-2">{:__('Icon')}:</label>
  35. <div class="col-xs-12 col-sm-8">
  36. <div class="input-group input-groupp-md">
  37. <span class="input-group-addon"><i class="fa fa-circle-o" id="icon-style"></i></span>
  38. <input type="text" class="form-control" id="icon" name="row[icon]" value="fa fa-circle-o" />
  39. <a href="javascript:;" class="btn-search-icon input-group-addon">{:__('Search icon')}</a>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Condition')}:</label>
  45. <div class="col-xs-12 col-sm-8">
  46. <textarea class="form-control" id="condition" name="row[condition]"></textarea>
  47. </div>
  48. </div>
  49. <div class="form-group" data-type="menu">
  50. <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Menutype')}:</label>
  51. <div class="col-xs-12 col-sm-8">
  52. {:build_radios('row[menutype]', $menutypeList)}
  53. </div>
  54. </div>
  55. <div class="form-group" data-type="menu">
  56. <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Extend')}:</label>
  57. <div class="col-xs-12 col-sm-8">
  58. <textarea class="form-control" id="extend" name="row[extend]"></textarea>
  59. </div>
  60. </div>
  61. <div class="form-group">
  62. <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  63. <div class="col-xs-12 col-sm-8">
  64. <textarea class="form-control" id="remark" name="row[remark]"></textarea>
  65. </div>
  66. </div>
  67. <div class="form-group">
  68. <label for="weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  69. <div class="col-xs-12 col-sm-8">
  70. <input type="text" class="form-control" id="weigh" name="row[weigh]" value="0" data-rule="required" />
  71. </div>
  72. </div>
  73. <div class="form-group">
  74. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  75. <div class="col-xs-12 col-sm-8">
  76. {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
  77. </div>
  78. </div>
  79. <div class="form-group hidden layer-footer">
  80. <div class="col-xs-2"></div>
  81. <div class="col-xs-12 col-sm-8">
  82. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  83. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  84. </div>
  85. </div>
  86. </form>
  87. {include file="auth/rule/tpl" /}