add.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</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="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  17. <div class="col-xs-12 col-sm-8">
  18. <input id="c-name" class="form-control" name="row[name]" type="text" data-placeholder-node="{:__('Node tips')}" data-placeholder-menu="{:__('Menu tips')}">
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  23. <div class="col-xs-12 col-sm-8">
  24. <input id="c-title" class="form-control" name="row[title]" type="text" value="">
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  29. <div class="col-xs-12 col-sm-8">
  30. <textarea class="form-control" id="remark" name="row[remark]"></textarea>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  35. <div class="col-xs-12 col-sm-8">
  36. <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  41. <div class="col-xs-12 col-sm-8">
  42. {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
  43. </div>
  44. </div>
  45. <div class="form-group layer-footer">
  46. <label class="control-label col-xs-12 col-sm-2"></label>
  47. <div class="col-xs-12 col-sm-8">
  48. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  49. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  50. </div>
  51. </div>
  52. </form>