edit.html 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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">{:__('商品编码')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input class="form-control" name="row[product_no]" type="text" data-rule="required;length(~60)" value="{$row.product_no}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('商品标题')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input class="form-control" name="row[name]" type="text" data-rule="required;length(~50)" value="{$row.name}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('运营商')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. {:build_select('row[brand]', $brands, $row['brand'])}
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('售价')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input class="form-control" name="row[amount_base]" type="number" data-rule="required;range(0~)" value="{$row.amount_base}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('库存')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input class="form-control" name="row[stock_num]" type="number" data-rule="required;range(0~)" value="{$row.stock_num}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('排序')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input class="form-control" name="row[sort]" type="number" data-rule="required;range(0~)" value="{$row.sort}">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('简介')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <textarea class="form-control" name="row[summary]" type="text" data-rule="required;length(~50)">{$row.summary}</textarea>
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. {:build_radios('row[status]',$status,$row['status'])}
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="control-label col-xs-12 col-sm-2">{:__('年龄限制')}:</label>
  52. <div class="col-xs-4 col-sm-4">
  53. <input class="form-control" name="row[min_age]" type="number" data-rule="range(0~)" placeholder="最小年龄" value="{$row.min_age}">
  54. </div>
  55. <div class="col-xs-4 col-sm-4">
  56. <input class="form-control" name="row[max_age]" type="number" data-rule="range(0~)" placeholder="最大年龄" value="{$row.max_age}">
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <label class="control-label col-xs-12 col-sm-2">{:__('需传身份证')}:</label>
  61. <div class="col-xs-12 col-sm-8">
  62. {:build_radios('row[card_status]',['否', '是'],$row['card_status'])}
  63. </div>
  64. </div>
  65. <div class="form-group">
  66. <label class="control-label col-xs-12 col-sm-2">{:__('选号')}:</label>
  67. <div class="col-xs-12 col-sm-8">
  68. {:build_radios('row[select_num_status]',['不开启', '开启'],$row['select_num_status'])}
  69. </div>
  70. </div>
  71. <div class="form-group">
  72. <label class="control-label col-xs-12 col-sm-2">{:__('选号产品编码')}:</label>
  73. <div class="col-xs-12 col-sm-8">
  74. <input class="form-control" name="row[product_sku]" type="text" data-rule="length(~60)" value="{$row.product_sku}">
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label class="control-label col-xs-12 col-sm-2">{:__('只发货地区')}:</label>
  79. <div class="col-xs-12 col-sm-8">
  80. <select title="请选择发货地区模板" name="row[send_template]" class="form-control selectpicker">
  81. <option value="0">请选择发货地区模板</option>
  82. {volist name="templates" id="vo"}
  83. <option value="{$vo.id}" {if condition="$row.send_template eq $vo.id"} selected {/if}>{$vo.name}</option>
  84. {/volist}
  85. </select>
  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. <select title="请选择发货地区模板" name="row[not_send_template]" class="form-control selectpicker">
  92. <option value="0">请选择发货地区模板</option>
  93. {volist name="templates" id="vo"}
  94. <option value="{$vo.id}" {if condition="$row.not_send_template eq $vo.id"} selected {/if}>{$vo.name}</option>
  95. {/volist}
  96. </select>
  97. </div>
  98. </div>
  99. <div class="form-group">
  100. <label class="control-label col-xs-12 col-sm-2">{:__('顶部图片')}:</label>
  101. <div class="col-xs-12 col-sm-8">
  102. <div class="input-group">
  103. <input id="c-images1" class="form-control" size="50" name="row[images][1]" type="text" value="{$row.info.flow_images[1]}" data-rule="required">
  104. <div class="input-group-addon no-border no-padding">
  105. <span><button type="button" id="plupload-avatar-images1" class="btn btn-danger plupload" data-input-id="c-images1" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-images1"><i class="fa fa-upload"></i> 上传</button></span>
  106. <span><button type="button" id="fachoose-avatar-images1" class="btn btn-primary fachoose" data-input-id="c-images1" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
  107. </div>
  108. <span class="msg-box n-right" for="c-images1"></span>
  109. </div>
  110. <ul class="row list-inline plupload-preview" id="p-images1"></ul>
  111. </div>
  112. </div>
  113. <div class="form-group">
  114. <label class="control-label col-xs-12 col-sm-2">{:__('尾部图')}:</label>
  115. <div class="col-xs-12 col-sm-8">
  116. <div class="input-group">
  117. <input id="c-images2" class="form-control" size="50" name="row[images][2]" type="text" value="{$row.info.flow_images[2]}" data-rule="required">
  118. <div class="input-group-addon no-border no-padding">
  119. <span><button type="button" id="plupload-avatar-images2" class="btn btn-danger plupload" data-input-id="c-images2" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-images2"><i class="fa fa-upload"></i> 上传</button></span>
  120. <span><button type="button" id="fachoose-avatar-images2" class="btn btn-primary fachoose" data-input-id="c-images2" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
  121. </div>
  122. <span class="msg-box n-right" for="c-images2"></span>
  123. </div>
  124. <ul class="row list-inline plupload-preview" id="p-images2"></ul>
  125. </div>
  126. </div>
  127. <div class="form-group">
  128. <label class="control-label col-xs-12 col-sm-2">{:__('缩略图')}:</label>
  129. <div class="col-xs-12 col-sm-8">
  130. <div class="input-group">
  131. <input id="c-logo" class="form-control" size="50" name="row[logo]" type="text" value="{$row.logo}" data-rule="required">
  132. <div class="input-group-addon no-border no-padding">
  133. <span><button type="button" id="plupload-avatar-logo" class="btn btn-danger plupload" data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-logo"><i class="fa fa-upload"></i> 上传</button></span>
  134. <span><button type="button" id="fachoose-avatar-logo" class="btn btn-primary fachoose" data-input-id="c-logo" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
  135. </div>
  136. <span class="msg-box n-right" for="c-logo"></span>
  137. </div>
  138. <ul class="row list-inline plupload-preview" id="p-logo"></ul>
  139. </div>
  140. </div>
  141. <div class="form-group">
  142. <label class="control-label col-xs-12 col-sm-2">{:__('跳转链接')}:</label>
  143. <div class="col-xs-12 col-sm-8">
  144. <input class="form-control" name="row[link]" type="text" value="{$row.link}">
  145. </div>
  146. </div>
  147. <div class="form-group layer-footer">
  148. <label class="control-label col-xs-12 col-sm-2"></label>
  149. <div class="col-xs-12 col-sm-8">
  150. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  151. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  152. </div>
  153. </div>
  154. </form>