暫無描述

baseTemplate.html 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {% load i18n %}
  2. {% get_current_language as LANGUAGE_CODE %}
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <meta charset="UTF-8" />
  7. <meta name="author" content="Seum Man" />
  8. <meta name="keywords" content="seum compteur" />
  9. <meta name="description" content="Ça fout le seum" />
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="shortcut icon" type="image/png" href="{{STATIC_URL}}/favicon.ico" />
  12. <title>SeumBook™ – {% block title %}{% endblock %}</title>
  13. {# Load the tag library #}
  14. {% load bootstrap3 %}
  15. {# Load CSS and JavaScript #}
  16. {% bootstrap_css %}
  17. {% bootstrap_javascript jquery=True %}
  18. {# Display django.contrib.messages as Bootstrap alerts #}
  19. {% bootstrap_messages %}
  20. <style>
  21. body {
  22. background-color: #EEEEEE
  23. }
  24. .seum-counter {
  25. height: 75px;
  26. overflow: auto;
  27. }
  28. .primary-counter {
  29. height: 215px;
  30. overflow: auto;
  31. display: flex;
  32. align-items: center;
  33. }
  34. .timeline {
  35. height: 125px;
  36. }
  37. .graphs {
  38. overflow-y: hidden;
  39. }
  40. .graphs>div {
  41. display: block;
  42. margin: 0 auto;
  43. }
  44. .counter-link,
  45. .counter-link:hover {
  46. color: inherit;
  47. /* blue colors for links too */
  48. text-decoration: inherit;
  49. /* no underline */
  50. }
  51. </style>
  52. <script type="text/javascript" src="https://www.google.com/jsapi"></script>
  53. <script type="text/javascript">
  54. google.load("visualization", "1", {
  55. packages: ["corechart"]
  56. });
  57. function revealSeumForm(counterID) {
  58. document.getElementById('counter' + counterID).style.display = 'inline';
  59. document.getElementById('button' + counterID).style.display = 'none';
  60. document.getElementById('reason' + counterID).focus();
  61. }
  62. </script>
  63. </head>
  64. <section id="content">
  65. <div class="container-fluid" style="padding-top: 15px; ">
  66. <div class="row">
  67. <div class="col-md-12">
  68. <form class="form-horizontal" action="{% url 'set_language' %}" method="post">{% csrf_token %}
  69. {% if LANGUAGE_CODE == 'fr' %}
  70. <input name="language" type="hidden" value="en" />
  71. <input type="submit" class="btn btn-info pull-right" value="English version" />
  72. {% else %}
  73. <input name="language" type="hidden" value="fr" />
  74. <input type="submit" class="btn btn-info pull-right" value="Version française" />
  75. {% endif %}
  76. </form>
  77. </div>
  78. </div>
  79. </div>
  80. {% block content %}{% endblock %}
  81. </section>
  82. </body>
  83. </html>