base.html 2.5 KB

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