edit.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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">{:__('Name')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-info" class="form-control" name="row[info]" type="text" value="{$row.info|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <div class="input-group">
  24. <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
  25. <div class="input-group-addon no-border no-padding">
  26. <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>
  27. <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>
  28. </div>
  29. <span class="msg-box n-right" for="c-image"></span>
  30. </div>
  31. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <div class="input-group">
  38. <input id="c-images" class="form-control" size="50" name="row[images]" type="textarea" value="{$row.images|htmlentities}">
  39. <div class="input-group-addon no-border no-padding">
  40. <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  41. <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  42. </div>
  43. <span class="msg-box n-right" for="c-images"></span>
  44. </div>
  45. <ul class="row list-inline faupload-preview" id="p-images"></ul>
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="control-label col-xs-12 col-sm-2">{:__('Is_show')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <select id="c-is_show" class="form-control selectpicker" name="row[is_show]">
  64. {foreach name="isShowList" item="vo"}
  65. <option value="{$key}" {in name="key" value="$row.is_show"}selected{/in}>{$vo}</option>
  66. {/foreach}
  67. </select>
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('View_number')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-view_number" class="form-control" name="row[view_number]" type="number" value="{$row.view_number|htmlentities}">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Procate_id')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <input id="c-procate_id" data-rule="required" data-source="procate/index" class="form-control selectpage" name="row[procate_id]" type="text" value="{$row.procate_id|htmlentities}">
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label class="control-label col-xs-12 col-sm-2">{:__('Is_recommend')}:</label>
  90. <div class="col-xs-12 col-sm-8">
  91. <select id="c-is_recommend" class="form-control selectpicker" name="row[is_recommend]">
  92. {foreach name="isRecommendList" item="vo"}
  93. <option value="{$key}" {in name="key" value="$row.is_recommend"}selected{/in}>{$vo}</option>
  94. {/foreach}
  95. </select>
  96. </div>
  97. </div>
  98. <div class="form-group">
  99. <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
  100. <div class="col-xs-12 col-sm-8">
  101. <input id="c-address" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
  102. </div>
  103. </div>
  104. <div class="form-group">
  105. <label class="control-label col-xs-12 col-sm-2">{:__('Sell_number')}:</label>
  106. <div class="col-xs-12 col-sm-8">
  107. <input id="c-sell_number" class="form-control" name="row[sell_number]" type="number" value="{$row.sell_number|htmlentities}">
  108. </div>
  109. </div>
  110. <div class="form-group">
  111. <label class="control-label col-xs-12 col-sm-2">{:__('Protag_id')}:</label>
  112. <div class="col-xs-12 col-sm-8">
  113. <input id="c-protag_id" data-rule="required" data-source="protag/index" class="form-control selectpage" name="row[protag_id]" type="text" value="{$row.protag_id|htmlentities}">
  114. </div>
  115. </div>
  116. <div class="form-group">
  117. <label class="control-label col-xs-12 col-sm-2">{:__('Jxtype')}:</label>
  118. <div class="col-xs-12 col-sm-8">
  119. <select id="c-jxtype" data-rule="required" class="form-control selectpicker" name="row[jxtype]">
  120. {foreach name="jxtypeList" item="vo"}
  121. <option value="{$key}" {in name="key" value="$row.jxtype"}selected{/in}>{$vo}</option>
  122. {/foreach}
  123. </select>
  124. </div>
  125. </div>
  126. <div class="form-group">
  127. <label class="control-label col-xs-12 col-sm-2">{:__('Xieyi_id')}:</label>
  128. <div class="col-xs-12 col-sm-8">
  129. <input id="c-xieyi_id" data-source="productxieyi/index" class="form-control selectpage" name="row[xieyi_id]" type="text" value="{$row.xieyi_id|htmlentities}">
  130. </div>
  131. </div>
  132. <div class="form-group layer-footer">
  133. <label class="control-label col-xs-12 col-sm-2"></label>
  134. <div class="col-xs-12 col-sm-8">
  135. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  136. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  137. </div>
  138. </div>
  139. </form>