upload.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {% extends "homepage/base.html" %}
  2. {% load static %}
  3. {% load i18n %}
  4. {% block title %}GPS Logging{% endblock %}
  5. {% block header %}GPS Logging{% endblock %}
  6. {% block status %}
  7. {% if user.is_authenticated %}
  8. <p style="text-align:center">
  9. {% trans "Hello" %} {% firstof user.first_name user.username %}!<br/>
  10. <a href="{% url 'logout' %}" class="link">{% trans "Logout" %}</a>
  11. </p>
  12. {% else %}
  13. <p style="text-align:center">
  14. <a href="{% url 'login' %}" class="link">{% trans "Login" %}</a>
  15. </p>
  16. {% endif %}
  17. {% endblock %}
  18. {% block sidebar %}
  19. {% endblock %}
  20. {% block head %}
  21. <link href="{% static 'gps_logger/css/stylesheet.css' %}" rel="stylesheet" type="text/css">
  22. {% endblock %}
  23. {% block content %}
  24. <div class="news">
  25. <p>
  26. <input type="file" id="file-selector" multiple />
  27. </p>
  28. <div class="demo-container">
  29. <div id="placeholder" class="demo-placeholder"></div>
  30. </div>
  31. {% csrf_token %}
  32. <p>
  33. <input type="submit" id="upload-btn" style="display: none"/>
  34. <input type="button" id="censor-btn" value="Delete censored"/>
  35. </p>
  36. <p id="response"></p>
  37. </div>
  38. {% endblock %}
  39. {% block body %}
  40. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.min.js' %}"></script>
  41. <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/excanvas.min.js' %}"></script><![endif]-->
  42. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.min.js' %}"></script>
  43. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.selection.min.js' %}"></script>
  44. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.navigate.min.js' %}"></script>
  45. <script src="{% static 'gps_logger/js/preprocessor.js' %}" type="text/javascript"></script>
  46. <script src="{% static 'gps_logger/GPS.js/GPS.min.js' %}" type="text/javascript"></script>
  47. {% endblock %}