guanlian.html 9.6 KB

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