add.html 5.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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">{:__('Type')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  6. {foreach name="typeList" item="vo"}
  7. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  8. {/foreach}
  9. </select>
  10. </div>
  11. </div>
  12. <div class="form-group">
  13. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <div class="input-group">
  22. <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="">
  23. <div class="input-group-addon no-border no-padding">
  24. <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  25. <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  26. </div>
  27. <span class="msg-box n-right" for="c-image"></span>
  28. </div>
  29. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <textarea id="c-info" data-rule="required" class="form-control " rows="5" name="row[info]" cols="50"></textarea>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-num" data-rule="required" class="form-control" name="row[num]" type="number" value="0">
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="control-label col-xs-12 col-sm-2">{:__('End_days')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <input id="c-end_days" data-rule="required" class="form-control" name="row[end_days]" type="number" value="0">
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="control-label col-xs-12 col-sm-2">{:__('Use_frequency_day')}:</label>
  52. <div class="col-xs-12 col-sm-8">
  53. <input id="c-use_frequency_day" data-rule="required" class="form-control" name="row[use_frequency_day]" type="number" value="0">
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="control-label col-xs-12 col-sm-2">{:__('Use_frequency_times')}:</label>
  58. <div class="col-xs-12 col-sm-8">
  59. <input id="c-use_frequency_times" data-rule="required" class="form-control" name="row[use_frequency_times]" type="number" value="0">
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <div class="radio">
  66. {foreach name="statusList" item="vo"}
  67. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
  68. {/foreach}
  69. </div>
  70. </div>
  71. </div>
  72. <div class="form-group">
  73. <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
  74. <div class="col-xs-12 col-sm-8">
  75. <input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  76. </div>
  77. </div>
  78. <div class="form-group">
  79. <label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>
  80. <div class="col-xs-12 col-sm-8">
  81. <input id="c-update_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  82. </div>
  83. </div>
  84. <div class="form-group layer-footer">
  85. <label class="control-label col-xs-12 col-sm-2"></label>
  86. <div class="col-xs-12 col-sm-8">
  87. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  88. </div>
  89. </div>
  90. </form>