upload.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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="display: none"/>
  33. <input type="button" id="censor-btn" value="Delete censored"/>
  34. </p>
  35. <p id="response"></p>
  36. </div>
  37. {% endblock %}
  38. {% block body %}
  39. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.min.js' %}"></script>
  40. <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/excanvas.min.js' %}"></script><![endif]-->
  41. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.min.js' %}"></script>
  42. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.selection.min.js' %}"></script>
  43. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.navigate.min.js' %}"></script>
  44. <script src="{% static 'gps_logger/js/preprocessor.js' %}" type="text/javascript"></script>
  45. <script src="{% static 'gps_logger/GPS.js/GPS.min.js' %}" type="text/javascript"></script>
  46. {% endblock %}