add.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. </div>
  8. </div>
  9. <div class="form-group">
  10. <label for="c-third" class="control-label col-xs-12 col-sm-2"></label>
  11. <div class="col-xs-12 col-sm-8">
  12. <button type="button" id="faupload-third" class="btn btn-danger faupload" data-multiple="true" data-input-id="c-third" ><i class="fa fa-upload"></i> {:__("Upload to third")}</button>
  13. {if $config.upload.chunking}
  14. <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" ><i class="fa fa-upload"></i> {:__("Upload to third by chunk")}</button>
  15. {/if}
  16. </div>
  17. </div>
  18. {/if}
  19. <div class="form-group">
  20. <label for="c-local" class="control-label col-xs-12 col-sm-2">{:__('Upload to local')}:</label>
  21. <div class="col-xs-12 col-sm-8">
  22. <input type="text" name="row[local]" id="c-local" class="form-control" />
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <label for="c-local" class="control-label col-xs-12 col-sm-2"></label>
  27. <div class="col-xs-12 col-sm-8">
  28. <button type="button" id="faupload-local" class="btn btn-primary faupload" data-input-id="c-local" data-url="{:url('ajax/upload')}"><i class="fa fa-upload"></i> {:__("Upload to local")}</button>
  29. {if $config.upload.chunking}
  30. <button type="button" id="faupload-local-chunking" class="btn btn-primary faupload" data-chunking="true" data-maxsize="1gb" data-input-id="c-local" data-url="{:url('ajax/upload')}"><i class="fa fa-upload"></i> {:__("Upload to local by chunk")}</button>
  31. {/if}
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label for="c-editor" class="control-label col-xs-12 col-sm-2">{:__('Upload from editor')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <textarea name="row[editor]" id="c-editor" cols="60" rows="5" class="form-control editor"></textarea>
  38. </div>
  39. </div>
  40. <div class="form-group hidden layer-footer">
  41. <div class="col-xs-2"></div>
  42. <div class="col-xs-12 col-sm-8">
  43. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  44. </div>
  45. </div>
  46. </form>