edit.html 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <form id="edit-form" class="form-horizontal form-ajax" role="form" 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')], $row['ismenu'])}
  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, $row['pid'], ['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="{$row.name|htmlentities}" 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="{$row.title|htmlentities}" 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="{$row.url|htmlentities}" 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. <input type="text" class="form-control" id="icon" name="row[icon]" value="{$row.icon}" />
  38. <a href="javascript:;" class="btn-search-icon input-group-addon">{:__('Search icon')}</a>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label for="weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input type="text" class="form-control" id="weigh" name="row[weigh]" value="{$row.weigh}" data-rule="required" />
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Condition')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <textarea class="form-control" id="condition" name="row[condition]">{$row.condition|htmlentities}</textarea>
  52. </div>
  53. </div>
  54. <div class="form-group" data-type="menu">
  55. <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Menutype')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. {:build_radios('row[menutype]', $menutypeList, $row['menutype'])}
  58. </div>
  59. </div>
  60. <div class="form-group" data-type="menu">
  61. <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Extend')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <textarea class="form-control" id="extend" name="row[extend]">{$row.extend|htmlentities}</textarea>
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  68. <div class="col-xs-12 col-sm-8">
  69. <textarea class="form-control" id="remark" name="row[remark]">{$row.remark|htmlentities}</textarea>
  70. </div>
  71. </div>
  72. <div class="form-group">
  73. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  74. <div class="col-xs-12 col-sm-8">
  75. {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
  76. </div>
  77. </div>
  78. <div class="form-group hidden layer-footer">
  79. <div class="col-xs-2"></div>
  80. <div class="col-xs-12 col-sm-8">
  81. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  82. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  83. </div>
  84. </div>
  85. </form>
  86. {include file="auth/rule/tpl" /}