add.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
  2. {if $config.upload.cdnurl}
  3. <div class="form-group">
  4. <label for="c-third" class="control-label col-xs-12 col-sm-2">{:__('Upload to third')}:</label>
  5. <div class="col-xs-12 col-sm-8">
  6. <input type="text" name="row[third]" id="c-third" class="form-control"/>
  7. <ul class="row list-inline faupload-preview" id="p-third"></ul>
  8. </div>
  9. </div>
  10. <div class="form-group">
  11. <label for="c-third" class="control-label col-xs-12 col-sm-2"></label>
  12. <div class="col-xs-12 col-sm-8">
  13. <div style="width:180px;display:inline-block;">
  14. <select name="category-third" id="category-third" class="form-control selectpicker">
  15. <option value="">{:__('Please select category')}</option>
  16. {foreach name="categoryList" id="item"}
  17. <option value="{$key}">{$item}</option>
  18. {/foreach}
  19. </select>
  20. </div>
  21. <button type="button" id="faupload-third" class="btn btn-danger faupload" data-multiple="true" data-input-id="c-third" data-preview-id="p-third"><i class="fa fa-upload"></i> {:__("Upload to third")}</button>
  22. {if $config.upload.chunking}
  23. <button type="button" id="faupload-third-chunking" class="btn btn-danger faupload" data-chunking="true" data-maxsize="1gb" data-multiple="true" data-input-id="c-third" data-preview-id="p-third"><i class="fa fa-upload"></i> {:__("Upload to third by chunk")}</button>
  24. {/if}
  25. </div>
  26. </div>
  27. {/if}
  28. <div class="form-group">
  29. <label for="c-local" class="control-label col-xs-12 col-sm-2">{:__('Upload to local')}:</label>
  30. <div class="col-xs-12 col-sm-8">
  31. <input type="text" name="row[local]" id="c-local" class="form-control"/>
  32. <ul class="row list-inline faupload-preview" id="p-local"></ul>
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <label for="c-local" class="control-label col-xs-12 col-sm-2"></label>
  37. <div class="col-xs-12 col-sm-8">
  38. <div style="width:180px;display:inline-block;">
  39. <select name="category-local" id="category-local" class="form-control selectpicker">
  40. <option value="">{:__('Please select category')}</option>
  41. {foreach name="categoryList" id="item"}
  42. <option value="{$key}">{$item}</option>
  43. {/foreach}
  44. </select>
  45. </div>
  46. <button type="button" id="faupload-local" class="btn btn-primary faupload" data-input-id="c-local" data-multiple="true" data-preview-id="p-local" data-url="{:url('ajax/upload')}"><i class="fa fa-upload"></i> {:__("Upload to local")}</button>
  47. {if $config.upload.chunking}
  48. <button type="button" id="faupload-local-chunking" class="btn btn-primary faupload" data-chunking="true" data-maxsize="1gb" data-input-id="c-local" data-multiple="true" data-preview-id="p-local" data-url="{:url('ajax/upload')}"><i class="fa fa-upload"></i> {:__("Upload to local by chunk")}</button>
  49. {/if}
  50. </div>
  51. </div>
  52. <div class="form-group hidden layer-footer">
  53. <div class="col-xs-2"></div>
  54. <div class="col-xs-12 col-sm-8">
  55. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  56. </div>
  57. </div>
  58. </form>