add.html 2.0 KB

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