add.html 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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" for="c-place">{:__('Place')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-place" class="form-control" type="text" value="{$placeList['index']}" readonly="readonly">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <div class="input-group">
  12. <input id="c-image" class="form-control" size="50" name="row[image]" type="text">
  13. <div class="input-group-addon no-border no-padding">
  14. <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" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  15. <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>
  16. </div>
  17. <span class="msg-box n-right" for="c-image"></span>
  18. </div>
  19. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  24. <div class="col-xs-12 col-sm-8">
  25. {:Form::select('row[type]',$typeList,'box')}
  26. </div>
  27. </div>
  28. <div class="form-group " id="div-select-box">
  29. <label class="control-label col-xs-12 col-sm-2">{:__('box')}:</label>
  30. <div class="col-xs-12 col-sm-8">
  31. <input id="c-goods_id" data-rule="" data-source="box/box/selectpage" data-field="box_name" class="form-control selectpage" name="row[box]" type="text" value="">
  32. </div>
  33. </div>
  34. <div class="form-group " id="div-link">
  35. <label class="control-label col-xs-12 col-sm-2" id="label-value-title">{:__('Link')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <input id="c-value" data-rule="" class="form-control" name="row[link]" type="text" value="">
  38. </div>
  39. </div>
  40. <div class="form-group " id="div-word">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('Word')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <textarea id="c-text" class="form-control editor" rows="10" name="row[word]" cols="50"></textarea>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <div class="radio">
  50. {:Form::radios('row[status]',$statusList,'normal')}
  51. </div>
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="100">
  58. </div>
  59. </div>
  60. <div class="form-group layer-footer">
  61. <label class="control-label col-xs-12 col-sm-2"></label>
  62. <div class="col-xs-12 col-sm-8">
  63. <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
  64. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  65. </div>
  66. </div>
  67. </form>