base.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!DOCTYPE html>
  2. <html>
  3. {% load static from staticfiles %}
  4. <head lang="en">
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>{% block title %}Rapid Test Site{% endblock %}</title>
  8. <script src="{% static 'js/jquery.js' %}"></script>
  9. <link href="{% static 'css/bootstrap.css' %}" rel="stylesheet">
  10. <script src="{% static 'js/bootstrap.js' %}"></script>
  11. <link href="{% static 'css/bootstrap-theme.css' %}" rel="stylesheet">
  12. <link href="{% static 'css/font-awesome.css' %}" rel="stylesheet">
  13. <link href="{% static 'css/base.css' %}" rel="stylesheet">
  14. <style>
  15. div#head{
  16. margin-top: 2em;
  17. margin-bottom: 3em;
  18. margin-left: 6em;
  19. }
  20. div#area{
  21. vertical-align: top;
  22. padding-left: 2em;
  23. }
  24. div#area > * {
  25. display: inline-block;
  26. }
  27. div#menu{
  28. vertical-align: top;
  29. margin-top: 40px;
  30. }
  31. nav{
  32. width: 20ex;
  33. vertical-align: top;
  34. }
  35. nav ul {
  36. list-style-type: none;
  37. padding-left: 0em;
  38. }
  39. nav ul ul {
  40. padding-left: 1em;
  41. }
  42. nav li.menu-group{
  43. padding-bottom: 1em;
  44. }
  45. nav li.menu-group > div:after{
  46. content: "\f0d7";
  47. font-family: FontAwesome;
  48. margin-left: 4pt;
  49. }
  50. nav li.menu-group.collapsed > div:after{
  51. content: "\f0da";
  52. }
  53. nav li:not(.menu-group){
  54. padding-top: 6pt;
  55. }
  56. table.object_list > tbody > tr > td{
  57. max-width: 30ex;
  58. word-wrap: break-word;
  59. }
  60. </style>
  61. {% block extra_headers %}{% endblock %}
  62. </head>
  63. <body>
  64. <div id="head">
  65. <h1>Rapid Test Site</h1>
  66. </div>
  67. <div id="area">
  68. {% load rapid_menu %}
  69. <div id="menu">
  70. {% menu request %}
  71. {% if not request.user.is_authenticated %}
  72. <p><a href="/login?next={{ request.build_absolute_uri }}" class="btn btn-default">Logar</a></p>
  73. {% endif %}
  74. </div>
  75. <div id="main">
  76. {% block body %}
  77. {% endblock %}
  78. </div>
  79. </div>
  80. <script src="{% static 'js/bootstrap.js' %}"></script>
  81. <script src="{% static 'js/jquery.form.js' %}"></script>
  82. <script src="{% static 'js/base.js' %}"></script>
  83. </body>
  84. </html>