edit.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <form id="edit-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')], $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="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" placeholder="{:__('Controller/Action')}" value="{$row.name|htmlentities}">
  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="{$row.title|htmlentities}">
  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]">{$row.remark|htmlentities}</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="{$row.weigh}">
  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')], $row['status'])}
  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-success btn-embossed disabled">{:__('OK')}</button>
  49. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  50. </div>
  51. </div>
  52. </form>