add.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <form id="add-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">{:__('Image')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <div class="input-group">
  6. <input id="c-image" class="form-control" size="50" name="row[image]" type="text">
  7. <div class="input-group-addon no-border no-padding">
  8. <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  9. <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>
  10. </div>
  11. <span class="msg-box n-right" for="c-image"></span>
  12. </div>
  13. <ul class="row list-inline plupload-preview" id="p-image"></ul>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="control-label col-xs-12 col-sm-2">{:__('product_id')}:</label>
  18. <div class="col-xs-12 col-sm-8">
  19. <input id="c-product_id" data-rule="" data-source="unishop/product/index" data-show-field="title" class="form-control selectpage" name="row[product_id]" type="text" value="">
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="control-label col-xs-12 col-sm-2">{:__('Background')}:</label>
  24. <div class="col-xs-12 col-sm-8">
  25. <input id="c-background" data-rule="required" class="form-control" name="row[background]" type="text">
  26. </div>
  27. </div>
  28. <!-- <div class="form-group">-->
  29. <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Position')}:</label>-->
  30. <!-- <div class="col-xs-12 col-sm-8">-->
  31. <!-- <input id="c-position" class="form-control" name="row[position]" type="number">-->
  32. <!-- </div>-->
  33. <!-- </div>-->
  34. <div class="form-group">
  35. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. {:build_radios('row[status]', ['0'=>__('No'), '1'=>__('Yes')])}
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
  44. </div>
  45. </div>
  46. <div class="form-group layer-footer">
  47. <label class="control-label col-xs-12 col-sm-2"></label>
  48. <div class="col-xs-12 col-sm-8">
  49. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  50. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  51. </div>
  52. </div>
  53. </form>