edit.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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">
  28. <label for="icon" class="control-label col-xs-12 col-sm-2">{:__('Icon')}:</label>
  29. <div class="col-xs-12 col-sm-8">
  30. <div class="input-group input-groupp-md">
  31. <input type="text" class="form-control" id="icon" name="row[icon]" value="{$row.icon}" />
  32. <a href="javascript:;" class="btn-search-icon input-group-addon">{:__('Search icon')}</a>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label for="weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input type="text" class="form-control" id="weigh" name="row[weigh]" value="{$row.weigh}" data-rule="required" />
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Condition')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <textarea class="form-control" id="condition" name="row[condition]">{$row.condition|htmlentities}</textarea>
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <textarea class="form-control" id="remark" name="row[remark]">{$row.remark|htmlentities}</textarea>
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
  58. </div>
  59. </div>
  60. <div class="form-group hidden layer-footer">
  61. <div class="col-xs-2"></div>
  62. <div class="col-xs-12 col-sm-8">
  63. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  64. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  65. </div>
  66. </div>
  67. </form>
  68. {include file="auth/rule/tpl" /}