base_generic.html 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. {% load fullurl %}
  2. <!DOCTYPE html>
  3. <html lang="de">
  4. <head>
  5. <meta charset="UTF-8">
  6. <title>{% block title %} {{ config.WEBSITE_TITEL }} {% endblock %}</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  8. {% load static %}
  9. <link rel="icon" href="{% static 'favicon.ico'%}">
  10. <link rel="apple-touch-icon" href="{% static 'favicon.ico'%}">
  11. <link rel="stylesheet" href="{% static 'css/bootstrap.min.css'%}" >
  12. <link rel="stylesheet" href="{% static 'css/styles.css' %}">
  13. <link href="{% static '/fontawesome/css/all.css'' %}" rel="stylesheet">
  14. <script src="{% static 'jquery-3.2.1.slim.min.js' %}" ></script>
  15. <script src="{% static 'popper.min.js' %}" ></script>
  16. <script src="{% static 'bootstrap.min.js' %}" ></script>
  17. <script src="{% static 'jquery.min.js' %}"></script>
  18. <style media="screen">
  19. .mab-navbar{
  20. padding-left: 15px;
  21. padding-bottom: 4px;
  22. margin-bottom: 16px;
  23. position: sticky;
  24. top: 0;
  25. z-index: 2;
  26. background-color: #FCFCFC;
  27. padding-right: 15px;
  28. border-bottom: 1px solid #469CA8;
  29. /* box-shadow: 0 8px 4px -6px gray; */
  30. }
  31. .cursor-pointer {
  32. cursor: pointer;
  33. }
  34. .text-decoration-none, .text-decoration-none:hover, .text-decoration-none a:hover{
  35. text-decoration: none;
  36. }
  37. </style>
  38. <style>
  39. /* The Modal (background) */
  40. .modal {
  41. display: none;
  42. /* Hidden by default */
  43. position: fixed;
  44. /* Stay in place */
  45. z-index: 1;
  46. /* Sit on top */
  47. padding-top: 100px;
  48. /* Location of the box */
  49. left: 0;
  50. top: 0;
  51. width: 100%;
  52. /* Full width */
  53. height: 100%;
  54. /* Full height */
  55. overflow: auto;
  56. /* Enable scroll if needed */
  57. background-color: rgb(0, 0, 0);
  58. /* Fallback color */
  59. background-color: rgba(0, 0, 0, 0.4);
  60. /* Black w/ opacity */
  61. }
  62. /* Modal Content */
  63. .modal-content {
  64. background-color: #fefefe;
  65. margin: auto;
  66. padding: 20px;
  67. border: 1px solid #888;
  68. width: 80%;
  69. }
  70. /* The Close Button */
  71. .close {
  72. color: #aaaaaa;
  73. float: right;
  74. font-size: 28px;
  75. font-weight: bold;
  76. }
  77. .close:hover,
  78. .close:focus {
  79. color: #000;
  80. text-decoration: none;
  81. cursor: pointer;
  82. }
  83. .mab-menu-mega {
  84. padding: .15em .75em .15em 0.75em;
  85. border-style: solid;
  86. border-width: 0px;
  87. border-color: #469CA8;
  88. color: #469CA8;
  89. background-color: #CEEAE8;
  90. border-radius: 150px;
  91. font-size: 1em;
  92. /* font-weight: bold; */
  93. font-family: NeuzeitGro-Bla;
  94. text-align: center;
  95. margin: 5px 10px 5px 10px;
  96. }
  97. .mab-menu-mega:hover {
  98. color: #FFF;
  99. background-color: #469cab;
  100. }
  101. .mab-menu-elm {
  102. color: #469CA8;
  103. padding: 12px 8px 12px 8px;
  104. display: block;
  105. }
  106. .mab-menu-elm:hover {
  107. color: #FFF;
  108. }
  109. .mab-logo {
  110. padding-bottom: 10px;
  111. width: 75%
  112. }
  113. </style>
  114. {% block script %}
  115. {% endblock %}
  116. {% block header %}
  117. {% endblock header %}
  118. </head>
  119. <body>
  120. {% if not embed %}
  121. {% block navbar %}
  122. <!--
  123. ********************************************************************************** -->
  124. <nav class="navbar navbar-fixed-top navbar-expand-lg navbar-light bg-light" style="padding-top:20px;">
  125. <a class="navbar-brand navbar-right" href="{% url 'products' %}" style="width:50%" >
  126. <span></span>
  127. </a>
  128. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTop" aria-controls="navbarTop" aria-expanded="false" aria-label="Toggle navigation">
  129. <span class="navbar-toggler-icon"></span>
  130. </button>
  131. <div class="collapse navbar-collapse" id="navbarTop">
  132. <ul class="navbar-nav mr-auto">
  133. <li class="nav-item active">
  134. </li>
  135. </ul>
  136. <ul class="navbar-nav ml-auto">
  137. {% if user.is_authenticated %}
  138. <li class="nav-item">
  139. <a class=" nav-link active nav-right boldkur mab-menu-elm" style="" href="{% url 'mab_logout' %}">Ausloggen</a>
  140. </li>
  141. {% else %}
  142. <li class="nav-item">
  143. <a class=" nav-link active nav-right boldkur mab-menu-elm" style="" href="{% url 'mab_login' %}">Einloggen</a>
  144. </li>
  145. {% endif %}
  146. <li class="nav-item">
  147. <a class=" nav-link active nav-right boldkur mab-menu-elm" style="" href="{% url 'register-view' %}">Registrieren</a>
  148. </li>
  149. <li class="nav-item mab-nav-item mab-menu-mega">
  150. <span class=" active boldkur mab-menu-elm" onclick="window.location='{% url 'search-agent-form' %}' ">Suchagent</span>
  151. <!-- <a class=" nav-link active nav-right boldkur mab-menu-elm " style="" href="{% url 'login' %}">Suchagent</a> -->
  152. </li>
  153. <li class="nav-item mab-nav-item mab-menu-mega">
  154. <span class=" active boldkur mab-menu-elm" onclick="window.location='{% url 'new-submit-view' %}' ">Projekt eintragen</span>
  155. <!-- <a class=" nav-link active nav-right boldkur mab-menu-elm " style="" href="{% url 'login' %}">Projekt eintragen</a> -->
  156. </li>
  157. </ul>
  158. <!-- <form class="form-inline my-2 my-lg-0">
  159. <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
  160. <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  161. </form> -->
  162. </div>
  163. </nav>
  164. <nav class="navbar navbar-fixed-top mab-navbar navbar-expand-lg navbar-light bg-light">
  165. <a class="navbar-brand navbar-right" href="{% url 'products' %}" style="width:45%" >
  166. <img src="{% static 'logo_gemeinschaffen.png' %}" alt="Markplatz" class="img-fluid mab-logo" width="auto" style="">
  167. </a>
  168. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarBottom" aria-controls="navbarBottom" aria-expanded="false" aria-label="Toggle navigation">
  169. <span class="navbar-toggler-icon"></span>
  170. </button>
  171. <div class="collapse navbar-collapse" id="navbarBottom">
  172. <ul class="navbar-nav mr-auto">
  173. <li class="nav-item active">
  174. </li>
  175. </ul>
  176. <ul class="navbar-nav ml-auto">
  177. <!-- <li class="nav-item active">
  178. <a class="nav-link disabled" href="#">Topic</a>
  179. </li>
  180. <li class="nav-item">
  181. <a class="nav-link" href="#">Topic</a>
  182. </li>
  183. <li class="nav-item">
  184. <a class="nav-link " href="#">Mobility</a>
  185. </li> -->
  186. <li class="nav-item">
  187. <a class="nav-link " href="#">Wohnen</a>
  188. </li>
  189. </ul>
  190. <!-- <form class="form-inline my-2 my-lg-0">
  191. <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
  192. <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  193. </form> -->
  194. </div>
  195. </nav>
  196. {% endblock %}
  197. {% endif %}
  198. <div class="container-fluid">
  199. {% block content %}
  200. {% endblock %}
  201. </div>
  202. <div class="modal fade " id="LoginModal" tabindex="-1" role="dialog" aria-labelledby="LoginModal" aria-hidden="true">
  203. <div class="modal-dialog border border-dark rounded-0" role="document">
  204. <div class="modal-content rounded-0">
  205. <div class="modal-header">
  206. <h5 class="modal-title" id="exampleModalLabel">Bitte loggen Sie sich hier ein: </h5>
  207. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  208. <span aria-hidden="true">&times;</span>
  209. </button>
  210. </div>
  211. <div class="modal-body">
  212. <form method="post" action="{% url 'login' %}">
  213. {% csrf_token %}
  214. <div class="form-group " style="margin-top: 20px">
  215. <input type="text" class="form-control rounded-0" name="username" placeholder="username" />
  216. </div>
  217. <div class="form-group">
  218. <input type="password" class="form-control rounded-0" name="password" placeholder="password">
  219. </div>
  220. <div>
  221. <input type="submit" class="btn btn-outline-secondary rounded-0 mybtn" value="login" />
  222. <input type="hidden" name="next" value="{{ next }}" />
  223. </div>
  224. </form>
  225. </div>
  226. <div class="modal-footer">
  227. <p><a href="{% url 'password_reset' %}">Passwort vergessen?</a></p>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. {% if not embed %}
  233. {% include "footer.html" %}
  234. {% endif %}
  235. </body>
  236. <!-- Matomo -->
  237. <script type="text/javascript">
  238. /*
  239. var _paq = _paq || [];
  240. _paq.push(['trackPageView']);
  241. _paq.push(['enableLinkTracking']);
  242. (function() {
  243. var u="https://piwik.juan-carlos.info/";
  244. _paq.push(['setTrackerUrl', u+'piwik.php']);
  245. _paq.push(['setSiteId', '4']);
  246. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  247. g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  248. })();
  249. */
  250. </script>
  251. <!-- End Matomo Code -->
  252. </html>