edit.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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">{:__('Type')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  6. {foreach name="typeList" item="vo"}
  7. <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
  8. {/foreach}
  9. </select>
  10. </div>
  11. </div>
  12. <div class="form-group">
  13. <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="{$row.company_id|htmlentities}">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-info" class="form-control" name="row[info]" type="text" value="{$row.info|htmlentities}">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Servicetype_id')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-servicetype_id" data-rule="required" data-source="servicetype/index" data-field="title" class="form-control selectpage" name="row[servicetype_id]" type="text" value="{$row.servicetype_id|htmlentities}">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <div class="input-group">
  40. <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="{$row.images|htmlentities}">
  41. <div class="input-group-addon no-border no-padding">
  42. <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="false" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  43. <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>
  44. </div>
  45. <span class="msg-box n-right" for="c-images"></span>
  46. </div>
  47. <ul class="row list-inline faupload-preview" id="p-images"></ul>
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  52. <div class="col-xs-12 col-sm-8">
  53. <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="control-label col-xs-12 col-sm-2">{:__('Oldprice')}:</label>
  58. <div class="col-xs-12 col-sm-8">
  59. <input id="c-oldprice" class="form-control" step="0.01" name="row[oldprice]" type="number" value="{$row.oldprice|htmlentities}">
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <input id="c-num" class="form-control" step="1" name="row[num]" type="number" value="{$row.num|htmlentities}">
  66. </div>
  67. </div>
  68. <div class="form-group">
  69. <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  70. <div class="col-xs-12 col-sm-8">
  71. <textarea id="c-content" class="form-control" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="control-label col-xs-12 col-sm-2">{:__('Content_images')}:</label>
  76. <div class="col-xs-12 col-sm-8">
  77. <div class="input-group">
  78. <input id="c-content_images" class="form-control" size="50" name="row[content_images]" type="textarea" value="{$row.content_images|htmlentities}">
  79. <div class="input-group-addon no-border no-padding">
  80. <span><button type="button" id="faupload-content_images" class="btn btn-danger faupload" data-input-id="c-content_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-content_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  81. <span><button type="button" id="fachoose-content_images" class="btn btn-primary fachoose" data-input-id="c-content_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  82. </div>
  83. <span class="msg-box n-right" for="c-content_images"></span>
  84. </div>
  85. <ul class="row list-inline faupload-preview" id="p-content_images"></ul>
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  90. <div class="col-xs-12 col-sm-8">
  91. <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  96. <div class="col-xs-12 col-sm-8">
  97. <div class="radio">
  98. {foreach name="statusList" item="vo"}
  99. <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>
  100. {/foreach}
  101. </div>
  102. </div>
  103. </div>
  104. <div class="form-group layer-footer">
  105. <label class="control-label col-xs-12 col-sm-2"></label>
  106. <div class="col-xs-12 col-sm-8">
  107. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  108. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  109. </div>
  110. </div>
  111. </form>