add.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="form-group">
  3. <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-desc" data-rule="required" class="form-control" name="row[desc]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  18. {foreach name="typeList" item="vo"}
  19. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  20. {/foreach}
  21. </select>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-money" data-rule="required" class="form-control" name="row[money]" type="number" value="0">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Minmoney')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-minmoney" data-rule="required" class="form-control" name="row[minmoney]" type="number" value="0">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Purpose')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <select id="c-purpose" data-rule="required" class="form-control selectpicker" name="row[purpose]">
  40. {foreach name="purposeList" item="vo"}
  41. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  42. {/foreach}
  43. </select>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Effectiveday')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <input id="c-effectiveday" data-rule="required" class="form-control" name="row[effectiveday]" type="number" value="0">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
  56. </div>
  57. </div>
  58. <!--<div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <div class="radio">
  62. {foreach name="statusList" item="vo"}
  63. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  64. {/foreach}
  65. </div>
  66. </div>
  67. </div>-->
  68. <div class="form-group layer-footer">
  69. <label class="control-label col-xs-12 col-sm-2"></label>
  70. <div class="col-xs-12 col-sm-8">
  71. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  72. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  73. </div>
  74. </div>
  75. </form>