upload.html 1.7 KB

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