upload.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. <div class="news">
  24. <p>
  25. <input type="file" id="file-selector" accept=".txt, .nmea" multiple />
  26. </p>
  27. <div class="demo-container">
  28. <div id="placeholder" class="demo-placeholder"></div>
  29. </div>
  30. {% csrf_token %}
  31. <p>
  32. <input type="submit" id="upload-btn" style="visibility: hidden"/>
  33. </p>
  34. <p id="response"></p>
  35. </div>
  36. {% endblock %}
  37. {% block body %}
  38. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.min.js' %}"></script>
  39. <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/excanvas.min.js' %}"></script><![endif]-->
  40. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.min.js' %}"></script>
  41. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.selection.min.js' %}"></script>
  42. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.navigate.min.js' %}"></script>
  43. <script src="{% static 'gps_logger/js/preprocessor.js' %}" type="text/javascript"></script>
  44. <script src="{% static 'gps_logger/GPS.js/GPS.min.js' %}" type="text/javascript"></script>
  45. {% endblock %}