upload.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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' %}?next={request.path}" 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. <input type="button" id="trip-btn" value="Create trips"/>
  36. </p>
  37. <p id="response"></p>
  38. </div>
  39. {% endblock %}
  40. {% block body %}
  41. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.min.js' %}"></script>
  42. <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/excanvas.min.js' %}"></script><![endif]-->
  43. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.min.js' %}"></script>
  44. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.selection.min.js' %}"></script>
  45. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.navigate.min.js' %}"></script>
  46. <script src="{% static 'gps_logger/js/preprocessor.js' %}" type="text/javascript"></script>
  47. <script src="{% static 'gps_logger/GPS.js/GPS.min.js' %}" type="text/javascript"></script>
  48. <script src="{% static 'gps_logger/GPXParser.js/GPXParser.min.js' %}" type="text/javascript"></script>
  49. {% endblock %}