audit.html 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <input type="hidden" name="id" value="{$row.id}">
  3. <div class="form-group">
  4. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  5. <div class="col-xs-12 col-sm-8">
  6. <input id="c-user_id" data-rule="required" disabled data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  7. </div>
  8. </div>
  9. <div class="form-group">
  10. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  11. <div class="col-xs-12 col-sm-8">
  12. <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  17. <div class="col-xs-12 col-sm-8">
  18. <div class="input-group">
  19. <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
  20. <div class="input-group-addon no-border no-padding">
  21. <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>
  22. <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>
  23. </div>
  24. <span class="msg-box n-right" for="c-image"></span>
  25. </div>
  26. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <label class="control-label col-xs-12 col-sm-2">{:__('Contacts')}:</label>
  31. <div class="col-xs-12 col-sm-8">
  32. <input id="c-contacts" class="form-control" name="row[contacts]" type="text" value="{$row.contacts|htmlentities}">
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  37. <div class="col-xs-12 col-sm-8">
  38. <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
  39. </div>
  40. </div>
  41. <!--<div class="form-group">
  42. <label class="control-label col-xs-12 col-sm-2">{:__('Province_name')}:</label>
  43. <div class="col-xs-12 col-sm-8">
  44. <input id="c-province_name" class="form-control" name="row[province_name]" type="text" value="{$row.province_name|htmlentities}">
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="control-label col-xs-12 col-sm-2">{:__('City_name')}:</label>
  49. <div class="col-xs-12 col-sm-8">
  50. <input id="c-city_name" class="form-control" name="row[city_name]" type="text" value="{$row.city_name|htmlentities}">
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="control-label col-xs-12 col-sm-2">{:__('Area_name')}:</label>
  55. <div class="col-xs-12 col-sm-8">
  56. <input id="c-area_name" class="form-control" name="row[area_name]" type="text" value="{$row.area_name|htmlentities}">
  57. </div>
  58. </div>-->
  59. <div class="form-group">
  60. <label class="control-label col-xs-12 col-sm-2">{:__('Province_id')}:</label>
  61. <div class="col-xs-12 col-sm-8">
  62. <input id="c-province_id" data-rule="required" data-source="shopro_area/index" data-params='{"custom[level]":1}' class="form-control selectpage" name="row[province_id]" type="text" value="{$row.province_id|htmlentities}">
  63. </div>
  64. </div>
  65. <div class="form-group">
  66. <label class="control-label col-xs-12 col-sm-2">{:__('City_id')}:</label>
  67. <div class="col-xs-12 col-sm-8">
  68. <input id="c-city_id" data-rule="required" data-source="shopro_area/index" data-params='{"custom[level]":2}' class="form-control selectpage" name="row[city_id]" type="text" value="{$row.city_id|htmlentities}">
  69. </div>
  70. </div>
  71. <div class="form-group">
  72. <label class="control-label col-xs-12 col-sm-2">{:__('Area_id')}:</label>
  73. <div class="col-xs-12 col-sm-8">
  74. <input id="c-area_id" data-rule="required" data-source="shopro_area/index" data-params='{"custom[level]":3}' class="form-control selectpage" name="row[area_id]" type="text" value="{$row.area_id|htmlentities}">
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
  79. <div class="col-xs-12 col-sm-8">
  80. <input id="c-address" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
  81. </div>
  82. </div>
  83. <!--<div class="form-group">
  84. <label class="control-label col-xs-12 col-sm-2">{:__('Full_address')}:</label>
  85. <div class="col-xs-12 col-sm-8">
  86. <input id="c-full_address" class="form-control" name="row[full_address]" type="text" value="{$row.full_address|htmlentities}">
  87. </div>
  88. </div>-->
  89. <div class="form-group">
  90. <label class="control-label col-xs-12 col-sm-2">地图选点(坐标):</label>
  91. <div class="col-xs-12 col-sm-8">
  92. <button type="button" data-toggle="addresspicker" class="btn btn-primary btn-embossed disabled" data-lng-id="c-longitude" data-lat-id="c-latitude">获取位置</button>
  93. </div>
  94. </div>
  95. <div class="form-group">
  96. <label class="control-label col-xs-12 col-sm-2">{:__('Longitude')}:</label>
  97. <div class="col-xs-12 col-sm-8">
  98. <input id="c-longitude" class="form-control" step="0.000001" name="row[longitude]" type="number" value="{$row.longitude|htmlentities}">
  99. </div>
  100. </div>
  101. <div class="form-group">
  102. <label class="control-label col-xs-12 col-sm-2">{:__('Latitude')}:</label>
  103. <div class="col-xs-12 col-sm-8">
  104. <input id="c-latitude" class="form-control" step="0.000001" name="row[latitude]" type="number" value="{$row.latitude|htmlentities}">
  105. </div>
  106. </div>
  107. <div class="form-group">
  108. <label class="control-label col-xs-12 col-sm-2">{:__('Aptitude_images')}:</label>
  109. <div class="col-xs-12 col-sm-8">
  110. <div class="input-group">
  111. <input id="c-aptitude_images" data-rule="required" class="form-control" size="50" name="row[aptitude_images]" type="text" value="{$row.aptitude_images|htmlentities}">
  112. <div class="input-group-addon no-border no-padding">
  113. <span><button type="button" id="faupload-aptitude_images" class="btn btn-danger faupload" data-input-id="c-aptitude_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-aptitude_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  114. <span><button type="button" id="fachoose-aptitude_images" class="btn btn-primary fachoose" data-input-id="c-aptitude_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  115. </div>
  116. <span class="msg-box n-right" for="c-aptitude_images"></span>
  117. </div>
  118. <ul class="row list-inline faupload-preview" id="p-aptitude_images"></ul>
  119. </div>
  120. </div>
  121. <div class="form-group">
  122. <label class="control-label col-xs-12 col-sm-2">{:__('Is_open')}:</label>
  123. <div class="col-xs-12 col-sm-8">
  124. <select id="c-is_open" data-rule="required" class="form-control selectpicker" name="row[is_open]">
  125. {foreach name="isOpenList" item="vo"}
  126. <option value="{$key}" {in name="key" value="$row.is_open"}selected{/in}>{$vo}</option>
  127. {/foreach}
  128. </select>
  129. </div>
  130. </div>
  131. <div class="form-group">
  132. <label class="control-label col-xs-12 col-sm-2">{:__('Open_hours')}:</label>
  133. <div class="col-xs-12 col-sm-8">
  134. <input id="c-open_hours" class="form-control" name="row[open_hours]" type="text" value="{$row.open_hours|htmlentities}">
  135. </div>
  136. </div>
  137. <div class="form-group">
  138. <label class="control-label col-xs-12 col-sm-2">{:__('Agent_id')}:</label>
  139. <div class="col-xs-12 col-sm-8">
  140. <input id="c-agent_id" data-source="auth/admin/index" class="form-control selectpage" data-field="username" data-format-item="{username}-{nickname}" name="row[agent_id]" type="text" value="{$row.agent_id|htmlentities}">
  141. </div>
  142. </div>
  143. <div class="form-group">
  144. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  145. <div class="col-xs-12 col-sm-8">
  146. <div class="radio">
  147. {foreach name="statusList" item="vo"}
  148. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  149. {/foreach}
  150. </div>
  151. </div>
  152. </div>
  153. <div class="form-group layer-footer">
  154. <label class="control-label col-xs-12 col-sm-2"></label>
  155. <div class="col-xs-12 col-sm-8">
  156. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  157. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  158. </div>
  159. </div>
  160. </form>