edit.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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">{:__('Price')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-price" class="form-control" name="row[price]" type="number" value="{$row.price|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Base_image')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <div class="input-group">
  18. <input id="c-base_image" class="form-control" size="50" name="row[base_image]" type="text" value="{$row.base_image|htmlentities}">
  19. <div class="input-group-addon no-border no-padding">
  20. <span><button type="button" id="faupload-base_image" class="btn btn-danger faupload" data-input-id="c-base_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-base_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  21. <span><button type="button" id="fachoose-base_image" class="btn btn-primary fachoose" data-input-id="c-base_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-base_image"></span>
  24. </div>
  25. <ul class="row list-inline faupload-preview" id="p-base_image"></ul>
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  30. <div class="col-xs-12 col-sm-8">
  31. <select id="c-type" class="form-control selectpicker" name="row[type]">
  32. {foreach name="typeList" item="vo"}
  33. <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
  34. {/foreach}
  35. </select>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <div class="radio">
  42. {foreach name="statusList" item="vo"}
  43. <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>
  44. {/foreach}
  45. </div>
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-sort" class="form-control" name="row[sort]" type="number" value="{$row.sort|htmlentities}">
  52. </div>
  53. </div>
  54. <div class="form-group layer-footer">
  55. <label class="control-label col-xs-12 col-sm-2"></label>
  56. <div class="col-xs-12 col-sm-8">
  57. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  58. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  59. </div>
  60. </div>
  61. </form>