Contains the Concourse pipeline definition for building a line-server container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.6 KiB

9 years ago
  1. {% extends "base.html" %}
  2. {% block head %}
  3. <link href='{{ sitepath }}static/css/dropzone.css' media='screen, projection' rel='stylesheet' type='text/css'>
  4. {% endblock %}
  5. {% block content %}
  6. <div id="fileupload">
  7. <form action="{{ sitepath }}upload" class="dropzone" id="dropzone" method="POST" enctype="multipart/form-data" data-maxsize="{{ maxsize }}">
  8. <div class="fallback">
  9. <input id="fileinput" name="file" type="file" /><br />
  10. <input id="submitbtn" type="submit" value="Upload">
  11. </div>
  12. <div id="dzone" class="dz-default dz-message">
  13. <span>Click or Drop file(s)</span>
  14. </div>
  15. <div id="choices">
  16. <div id="expiry">
  17. <label>File expiry:
  18. <select name="expires" id="expires">
  19. {% for expiry in expirylist %}
  20. <option value="{{ expiry.Seconds }}"{% if forloop.Last %} selected{% endif %}>{{ expiry.Human }}</option>
  21. {% endfor %}
  22. </select>
  23. </label>
  24. </div>
  25. <label><input name="randomize" id="randomize" type="checkbox" checked /> Randomize filename</label>
  26. <label><input name="qrcode-show" id="qrcode-show" type="checkbox" /> QR code</label>
  27. </div>
  28. <div class="clear"></div>
  29. </form>
  30. <div id="uploads"></div>
  31. <div class="clear"></div>
  32. </div>
  33. <script src="{{ sitepath }}static/js/dropzone.js"></script>
  34. <script src="{{ sitepath }}static/js/qrcode.js"></script>
  35. <script src="{{ sitepath }}static/js/upload.js"></script>
  36. {% endblock %}