edit.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. {eq name="admin.cid" value="0"}
  3. <div class="form-group">
  4. <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
  5. <div class="col-xs-12 col-sm-8">
  6. <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" value="{$row.cid}">
  7. </div>
  8. </div>
  9. {else/}
  10. <input id="c-cid" name="row[cid]" type="hidden" value="{$admin.cid}">
  11. {/eq}
  12. <div class="form-group">
  13. <label class="control-label col-xs-12 col-sm-2">{:__('Uid')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-uid" class="form-control" name="row[uid]" data-source="user/user" type="text" data-field="nickname" value="{$row.uid|htmlentities}">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Project_id')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-project_id" data-rule="required" data-source="project/project_donation" data-field="title" class="form-control selectpage" name="row[project_id]" type="text" value="{$row.project_id|htmlentities}">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Project_user_id')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-project_user_id" data-rule="required" data-source="project/project_donation_user/index" class="form-control selectpage" name="row[project_user_id]" type="text" value="{$row.project_user_id|htmlentities}">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Total_num')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-total_num" class="form-control" name="row[total_num]" type="number" value="{$row.total_num|htmlentities}">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-order_sn" class="form-control" name="row[order_sn]" type="text" value="{$row.order_sn|htmlentities}">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Order_status')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <div class="radio">
  52. {foreach name="orderStatusList" item="vo"}
  53. <label for="row[order_status]-{$key}"><input id="row[order_status]-{$key}" name="row[order_status]" type="radio" value="{$key}" {in name="key" value="$row.order_status"}checked{/in} /> {$vo}</label>
  54. {/foreach}
  55. </div>
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Add_time')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-add_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[add_time]" type="text" value="{:$row.add_time?datetime($row.add_time):''}">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_name')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-delivery_name" class="form-control" name="row[delivery_name]" type="text" value="{$row.delivery_name|htmlentities}">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_id')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-delivery_id" data-source="delivery/index" class="form-control" name="row[delivery_id]" type="text" value="{$row.delivery_id|htmlentities}">
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_time')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-delivery_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[delivery_time]" type="text" value="{:$row.delivery_time?datetime($row.delivery_time):''}">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Verify_time')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <input id="c-verify_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[verify_time]" type="text" value="{:$row.verify_time?datetime($row.verify_time):''}">
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label class="control-label col-xs-12 col-sm-2">{:__('Verify_admin')}:</label>
  90. <div class="col-xs-12 col-sm-8">
  91. <input id="c-verify_admin" class="form-control" name="row[verify_admin]" type="number" value="{$row.verify_admin|htmlentities}">
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <label class="control-label col-xs-12 col-sm-2">{:__('Verify_remark')}:</label>
  96. <div class="col-xs-12 col-sm-8">
  97. <input id="c-verify_remark" class="form-control" name="row[verify_remark]" type="text" value="{$row.verify_remark|htmlentities}">
  98. </div>
  99. </div>
  100. <div class="form-group">
  101. <label class="control-label col-xs-12 col-sm-2">{:__('Receiving_admin')}:</label>
  102. <div class="col-xs-12 col-sm-8">
  103. <input id="c-receiving_admin" class="form-control" name="row[receiving_admin]" type="number" value="{$row.receiving_admin|htmlentities}">
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label class="control-label col-xs-12 col-sm-2">{:__('Receiving_time')}:</label>
  108. <div class="col-xs-12 col-sm-8">
  109. <input id="c-receiving_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[receiving_time]" type="text" value="{:$row.receiving_time?datetime($row.receiving_time):''}">
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label class="control-label col-xs-12 col-sm-2">{:__('Receiving_remark')}:</label>
  114. <div class="col-xs-12 col-sm-8">
  115. <input id="c-receiving_remark" class="form-control" name="row[receiving_remark]" type="text" value="{$row.receiving_remark|htmlentities}">
  116. </div>
  117. </div>
  118. <!--<div class="form-group">-->
  119. <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Matter')}:</label>-->
  120. <!-- <div class="col-xs-12 col-sm-8">-->
  121. <!-- <input id="c-matter" class="form-control" name="row[matter]" type="text" value="{$row.matter|htmlentities}">-->
  122. <!-- </div>-->
  123. <!--</div>-->
  124. <div class="form-group">
  125. <label class="control-label col-xs-12 col-sm-2">{:__('Matter')}:</label>
  126. <div class="col-xs-12 col-sm-8">
  127. <div class="input-group">
  128. <input id="c-matter" data-rule="required" class="form-control" size="200" name="row[matter]" type="text" value="{$row.matter|htmlentities}">
  129. <div class="input-group-addon no-border no-padding">
  130. <span><button type="button" id="faupload-matter" class="btn btn-danger faupload" data-input-id="c-matter" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-matter"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  131. <span><button type="button" id="fachoose-matter" class="btn btn-primary fachoose" data-input-id="c-matter" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  132. </div>
  133. <span class="msg-box n-right" for="c-matter"></span>
  134. </div>
  135. <ul class="row list-inline faupload-preview" id="p-matter"></ul>
  136. </div>
  137. </div>
  138. <!--<div class="form-group">-->
  139. <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Qc')}:</label>-->
  140. <!-- <div class="col-xs-12 col-sm-8">-->
  141. <!-- <input id="c-qc" class="form-control" name="row[qc]" type="text" value="{$row.qc|htmlentities}">-->
  142. <!-- </div>-->
  143. <!--</div>-->
  144. <!--<div class="form-group">-->
  145. <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Worth')}:</label>-->
  146. <!-- <div class="col-xs-12 col-sm-8">-->
  147. <!-- <input id="c-worth" class="form-control" name="row[worth]" type="text" value="{$row.worth|htmlentities}">-->
  148. <!-- </div>-->
  149. <!--</div>-->
  150. <div class="form-group">
  151. <label class="control-label col-xs-12 col-sm-2">{:__('Qc')}:</label>
  152. <div class="col-xs-12 col-sm-8">
  153. <div class="input-group">
  154. <input id="c-qc" data-rule="required" class="form-control" size="200" name="row[qc]" type="text" value="{$row.qc|htmlentities}">
  155. <div class="input-group-addon no-border no-padding">
  156. <span><button type="button" id="faupload-qc" class="btn btn-danger faupload" data-input-id="c-qc" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-qc"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  157. <span><button type="button" id="fachoose-qc" class="btn btn-primary fachoose" data-input-id="c-qc" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  158. </div>
  159. <span class="msg-box n-right" for="c-qc"></span>
  160. </div>
  161. <ul class="row list-inline faupload-preview" id="p-qc"></ul>
  162. </div>
  163. </div>
  164. <div class="form-group">
  165. <label class="control-label col-xs-12 col-sm-2">{:__('Worth')}:</label>
  166. <div class="col-xs-12 col-sm-8">
  167. <div class="input-group">
  168. <input id="c-worth" class="form-control" size="200" name="row[worth]" type="text" value="{$row.worth|htmlentities}">
  169. <div class="input-group-addon no-border no-padding">
  170. <span><button type="button" id="faupload-worth" class="btn btn-danger faupload" data-input-id="c-worth" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-worth"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  171. <span><button type="button" id="fachoose-worth" class="btn btn-primary fachoose" data-input-id="c-worth" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  172. </div>
  173. <span class="msg-box n-right" for="c-worth"></span>
  174. </div>
  175. <ul class="row list-inline faupload-preview" id="p-worth"></ul>
  176. </div>
  177. </div>
  178. <div class="form-group">
  179. <label class="control-label col-xs-12 col-sm-2">{:__('Total_amount')}:</label>
  180. <div class="col-xs-12 col-sm-8">
  181. <input id="c-total_amount" class="form-control" step="0.01" name="row[total_amount]" type="number" value="{$row.total_amount|htmlentities}">
  182. </div>
  183. </div>
  184. <div class="form-group">
  185. <label class="control-label col-xs-12 col-sm-2">{:__('Logistics')}:</label>
  186. <div class="col-xs-12 col-sm-8">
  187. <input id="c-logistics" class="form-control" name="row[logistics]" type="text" value="{$row.logistics|htmlentities}">
  188. </div>
  189. </div>
  190. <div class="form-group">
  191. <label class="control-label col-xs-12 col-sm-2">{:__('Feedback')}:</label>
  192. <div class="col-xs-12 col-sm-8">
  193. <input id="c-feedback" class="form-control" name="row[feedback]" type="text" value="{$row.feedback|htmlentities}">
  194. </div>
  195. </div>
  196. <div class="form-group">
  197. <label class="control-label col-xs-12 col-sm-2">{:__('Feedback_admin')}:</label>
  198. <div class="col-xs-12 col-sm-8">
  199. <input id="c-feedback_admin" class="form-control" name="row[feedback_admin]" type="number" value="{$row.feedback_admin|htmlentities}">
  200. </div>
  201. </div>
  202. <div class="form-group">
  203. <label class="control-label col-xs-12 col-sm-2">{:__('Feedback_time')}:</label>
  204. <div class="col-xs-12 col-sm-8">
  205. <input id="c-feedback_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[feedback_time]" type="text" value="{:$row.feedback_time?datetime($row.feedback_time):''}">
  206. </div>
  207. </div>
  208. <div class="form-group">
  209. <label class="control-label col-xs-12 col-sm-2">{:__('Out_delivery_admin')}:</label>
  210. <div class="col-xs-12 col-sm-8">
  211. <input id="c-out_delivery_admin" class="form-control" name="row[out_delivery_admin]" type="number" value="{$row.out_delivery_admin|htmlentities}">
  212. </div>
  213. </div>
  214. <div class="form-group">
  215. <label class="control-label col-xs-12 col-sm-2">{:__('Out_delivery_time')}:</label>
  216. <div class="col-xs-12 col-sm-8">
  217. <input id="c-out_delivery_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[out_delivery_time]" type="text" value="{:$row.out_delivery_time?datetime($row.out_delivery_time):''}">
  218. </div>
  219. </div>
  220. <div class="form-group">
  221. <label class="control-label col-xs-12 col-sm-2">{:__('Out_delivery_remark')}:</label>
  222. <div class="col-xs-12 col-sm-8">
  223. <input id="c-out_delivery_remark" class="form-control" name="row[out_delivery_remark]" type="text" value="{$row.out_delivery_remark|htmlentities}">
  224. </div>
  225. </div>
  226. <div class="form-group layer-footer">
  227. <label class="control-label col-xs-12 col-sm-2"></label>
  228. <div class="col-xs-12 col-sm-8">
  229. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  230. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  231. </div>
  232. </div>
  233. </form>