base_generic.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. {% load fullurl %}
  2. {% load static %}
  3. {% load compress %}
  4. <!DOCTYPE html>
  5. <html lang="de">
  6. <head>
  7. <meta charset="UTF-8">
  8. <title>{% block title %} {{ config.WEBSITE_TITEL }} {% endblock %}</title>
  9. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  10. <link rel="icon" href="{% static 'favicon.ico'%}">
  11. <link rel="apple-touch-icon" href="{% static 'favicon.ico'%}">
  12. {% compress css %}
  13. <link rel="stylesheet" href="{% static 'css/bootstrap.min.css'%}" >
  14. <link rel="stylesheet" href="{% static 'css/styles.css' %}">
  15. <link href="{% static '/fontawesome/css/all.css'' %}" rel="stylesheet">
  16. {% endcompress %}
  17. {% compress js %}
  18. <script src="{% static 'jquery-3.2.1.slim.min.js' %}" ></script>
  19. <script src="{% static 'popper.min.js' %}" ></script>
  20. <script src="{% static 'bootstrap.min.js' %}" ></script>
  21. <script src="{% static 'jquery.min.js' %}"></script>
  22. {% endcompress %}
  23. <link rel="preload" href="{% static 'css/NeuzeitGro-Reg/font.woff2' %}" as="font" type="font/woff2" crossorigin>
  24. <link rel="preload" href="{% static 'css/NeuzeitGro-Reg/font.woff' %}" as="font" type="font/woff" crossorigin>
  25. <link rel="preload" href="{% static 'css/NeuzeitGro-Bla/font.woff2' %}" as="font" type="font/woff2" crossorigin>
  26. <link rel="preload" href="{% static 'css/NeuzeitGro-Bla/font.woff' %}" as="font" type="font/woff" crossorigin>
  27. {% if settings.DEBUG %}
  28. <script src="{% static 'js/vuejs/vue-dev.js' %}"></script>
  29. {% else %}
  30. <script src="{% static 'js/vuejs/vue2.js' %}"></script>
  31. {% endif %}
  32. {% compress css inline %}
  33. <style media="screen">
  34. .mab-navbar {
  35. padding-left: 15px;
  36. padding-bottom: 4px;
  37. margin-bottom: 16px;
  38. position: sticky;
  39. top: 0;
  40. z-index: 2;
  41. background-color: #FCFCFC;
  42. padding-right: 15px;
  43. border-bottom: 1px solid #469CA8;
  44. /* box-shadow: 0 8px 4px -6px gray; */
  45. }
  46. .cursor-pointer {
  47. cursor: pointer;
  48. }
  49. .text-decoration-none,
  50. .text-decoration-none:hover,
  51. .text-decoration-none a:hover {
  52. text-decoration: none;
  53. }
  54. </style>
  55. <style media="screen">
  56. /* The Modal (background) */
  57. .modal {
  58. display: none;
  59. /* Hidden by default */
  60. position: fixed;
  61. /* Stay in place */
  62. z-index: 1;
  63. /* Sit on top */
  64. padding-top: 100px;
  65. /* Location of the box */
  66. left: 0;
  67. top: 0;
  68. width: 100%;
  69. /* Full width */
  70. height: 100%;
  71. /* Full height */
  72. overflow: auto;
  73. /* Enable scroll if needed */
  74. background-color: rgb(0, 0, 0);
  75. /* Fallback color */
  76. background-color: rgba(0, 0, 0, 0.4);
  77. /* Black w/ opacity */
  78. }
  79. /* Modal Content */
  80. .modal-content {
  81. background-color: #fefefe;
  82. margin: auto;
  83. padding: 20px;
  84. border: 1px solid #888;
  85. width: 80%;
  86. }
  87. /* The Close Button */
  88. .close {
  89. color: #aaaaaa;
  90. float: right;
  91. font-size: 28px;
  92. font-weight: bold;
  93. }
  94. .close:hover,
  95. .close:focus {
  96. color: #000;
  97. text-decoration: none;
  98. cursor: pointer;
  99. }
  100. .mab-menu-mega {
  101. padding: .15em .75em .15em 0.75em;
  102. border-style: solid;
  103. border-width: 0px;
  104. border-color: #469CA8;
  105. color: #469CA8;
  106. background-color: #CEEAE8;
  107. border-radius: 150px;
  108. font-size: 1em;
  109. /* font-weight: bold; */
  110. /* font-family: NeuzeitGro-Bla; */
  111. text-align: center;
  112. margin: 5px 10px 5px 10px;
  113. }
  114. .mab-menu-mega:hover {
  115. color: #FFF;
  116. background-color: #469cab;
  117. }
  118. .mab-menu-elm {
  119. color: #469CA8;
  120. padding: 12px 8px 12px 8px;
  121. display: block;
  122. }
  123. .mab-nav-fix {
  124. padding-top: 8px;
  125. }
  126. .mab-menu-elm:hover {
  127. color: #FFF;
  128. }
  129. .mab-logo {
  130. padding-bottom: 10px;
  131. width: 75%
  132. }
  133. /* ----- MODAL ------- */
  134. .modal {
  135. display: none;
  136. position: fixed;
  137. z-index: 3;
  138. padding-top: 100px;
  139. left: 0;
  140. top: 0;
  141. width: 100%;
  142. height: 100%;
  143. overflow: auto;
  144. background-color: rgb(0, 0, 0);
  145. background-color: rgba(0, 0, 0, 0.4);
  146. }
  147. .modal-content {
  148. background-color: #fefefe;
  149. margin: auto;
  150. padding: 20px;
  151. border: 1px solid #888;
  152. width: 80%;
  153. }
  154. .close {
  155. color: #aaaaaa;
  156. float: right;
  157. font-size: 28px;
  158. font-weight: bold;
  159. }
  160. .close:hover,
  161. .close:focus {
  162. color: #000;
  163. text-decoration: none;
  164. cursor: pointer;
  165. }
  166. </style>
  167. {% endcompress %}
  168. {% block script %}
  169. {% endblock %}
  170. {% block header %}
  171. {% endblock header %}
  172. </head>
  173. <body>
  174. {% if not embed %}
  175. {% block navbar %}
  176. <!--
  177. ********************************************************************************** -->
  178. <nav class="navbar navbar-fixed-top navbar-expand-lg navbar-light" style="padding-top:20px;">
  179. <!-- <a class="navbar-brand navbar-right" href="{% url 'products' %}" style="width:50%" >
  180. <span></span>
  181. </a> -->
  182. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTop" aria-controls="navbarTop" aria-expanded="false" aria-label="Toggle navigation">
  183. <span class="navbar-toggler-icon"></span>
  184. </button>
  185. <div class="collapse navbar-collapse" id="navbarTop">
  186. <ul class="navbar-nav mr-auto">
  187. <li class="nav-item active">
  188. </li>
  189. </ul>
  190. <ul class="navbar-nav ml-auto">
  191. {% if user.is_authenticated %}
  192. <li class="nav-item">
  193. <div class="mab-nav-fix">
  194. <a class=" nav-link active nav-right boldkur mab-menu-elm" style="" href="{% url 'mab_logout' %}">Ausloggen</a>
  195. </div>
  196. </li>
  197. <li class="nav-item">
  198. <div class="mab-nav-fix">
  199. <a class=" nav-link active nav-right boldkur mab-menu-elm" style="" href="{% url 'meine-projekte' %}">Meine Projekte</a>
  200. </div>
  201. </li>
  202. {% if request.user.is_superuser %}
  203. <li class="nav-item">
  204. <div class="mab-nav-fix">
  205. <a class=" nav-link active nav-right boldkur mab-menu-elm" style="" href="{% url 'admin-panel' %}">Admin Panel</a>
  206. </div>
  207. </li>
  208. {% endif %}
  209. {% else %}
  210. <li class="nav-item">
  211. <div class="mab-nav-fix">
  212. <a class=" nav-link active nav-right boldkur mab-menu-elm " style="" href="{% url 'mab_login' %}">Einloggen</a>
  213. </div>
  214. </li>
  215. {% endif %}
  216. <li class="nav-item">
  217. <div class="mab-nav-fix">
  218. <a class=" nav-link active nav-right boldkur mab-menu-elm " style="" href="{% url 'register-view' %}">Registrieren</a>
  219. </div>
  220. </li>
  221. <li class="nav-item">
  222. <div class="mab-nav-fix">
  223. <a class=" nav-link active nav-right boldkur mab-menu-elm " style="" href="{% url 'pages-generic' page='INFO' %}">Info</a>
  224. </div>
  225. </li>
  226. <li class="nav-item">
  227. <div class="mab-nav-fix">
  228. <a class=" nav-link active nav-right boldkur mab-menu-elm " style="" href="https://blog.gemeinschaffen.com/">Blog</a>
  229. </div>
  230. </li>
  231. <li class="nav-item mab-nav-item mab-menu-mega">
  232. <span class=" active boldkur mab-menu-elm" onclick="window.location='{% url 'search-agent-form' %}' ">Suchagent</span>
  233. <!-- <a class=" nav-link active nav-right boldkur mab-menu-elm " style="" href="{% url 'login' %}">Suchagent</a> -->
  234. </li>
  235. <li class="nav-item mab-nav-item mab-menu-mega">
  236. <span class=" active boldkur mab-menu-elm" onclick="window.location='{% url 'neues-projekt-dispatch' %}' ">Projekt eintragen</span>
  237. <!-- <a class=" nav-link active nav-right boldkur mab-menu-elm " style="" href="{% url 'login' %}">Projekt eintragen</a> -->
  238. </li>
  239. </ul>
  240. <!-- <form class="form-inline my-2 my-lg-0">
  241. <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
  242. <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  243. </form> -->
  244. </div>
  245. </nav>
  246. <nav class="navbar navbar-fixed-top mab-navbar navbar-expand-lg navbar-light">
  247. <a class="navbar-brand navbar-right" href="{% url 'products' %}" style="width:45%" >
  248. <img src="{% static 'logo_gemeinschaffen.png' %}" alt="Markplatz" class="img-fluid mab-logo" style="">
  249. </a>
  250. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarBottom" aria-controls="navbarBottom" aria-expanded="false" aria-label="Toggle navigation">
  251. <span class="navbar-toggler-icon"></span>
  252. </button>
  253. <div class="collapse navbar-collapse" id="navbarBottom">
  254. <ul class="navbar-nav mr-auto">
  255. <li class="nav-item active">
  256. </li>
  257. </ul>
  258. <ul class="navbar-nav ml-auto">
  259. <!-- <li class="nav-item active">
  260. <a class="nav-link disabled" href="#">Topic</a>
  261. </li>
  262. <li class="nav-item">
  263. <a class="nav-link" href="#">Topic</a>
  264. </li> -->
  265. <li class="nav-item">
  266. <a class="nav-link " href="{% url 'wohnprojekte-list' %}">Wohnen</a>
  267. </li>
  268. <li class="nav-item">
  269. <a class="nav-link " href="{% url 'mobilitaetsprojekte-list' %}">Mobilität</a>
  270. </li>
  271. <li class="nav-item">
  272. <a class="nav-link " href="{% url 'ernaerungsprojekte-list' %}">Ernährung</a>
  273. </li>
  274. <li class="nav-item">
  275. <a class="nav-link " href="{% url 'energieprojekte-list' %}">Energie</a>
  276. </li>
  277. </ul>
  278. <!-- <form class="form-inline my-2 my-lg-0">
  279. <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
  280. <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  281. </form> -->
  282. </div>
  283. </nav>
  284. {% endblock %}
  285. {% endif %}
  286. <div class="container-fluid">
  287. {% block content %}
  288. {% endblock %}
  289. </div>
  290. <div class="modal fade " id="LoginModal" tabindex="-1" role="dialog" aria-labelledby="LoginModal" aria-hidden="true">
  291. <div class="modal-dialog border border-dark rounded-0" role="document">
  292. <div class="modal-content rounded-0">
  293. <div class="modal-header">
  294. <h5 class="modal-title" id="exampleModalLabel">Bitte loggen Sie sich hier ein: </h5>
  295. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  296. <span aria-hidden="true">&times;</span>
  297. </button>
  298. </div>
  299. <div class="modal-body">
  300. <form method="post" action="{% url 'login' %}">
  301. {% csrf_token %}
  302. <div class="form-group " style="margin-top: 20px">
  303. <input type="text" class="form-control rounded-0" name="username" placeholder="username" />
  304. </div>
  305. <div class="form-group">
  306. <input type="password" class="form-control rounded-0" name="password" placeholder="password">
  307. </div>
  308. <div>
  309. <input type="submit" class="btn btn-outline-secondary rounded-0 mybtn" value="login" />
  310. <input type="hidden" name="next" value="{{ next }}" />
  311. </div>
  312. </form>
  313. </div>
  314. <div class="modal-footer">
  315. <p><a href="{% url 'password_reset' %}">Passwort vergessen?</a></p>
  316. </div>
  317. </div>
  318. </div>
  319. </div>
  320. {% if not embed %}
  321. {% include "footer.html" %}
  322. {% endif %}
  323. <!-- Matomo -->
  324. <script>
  325. /*
  326. var _paq = _paq || [];
  327. _paq.push(['trackPageView']);
  328. _paq.push(['enableLinkTracking']);
  329. (function() {
  330. var u="https://piwik.juan-carlos.info/";
  331. _paq.push(['setTrackerUrl', u+'piwik.php']);
  332. _paq.push(['setSiteId', '4']);
  333. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  334. g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  335. })();
  336. */
  337. </script>
  338. <!-- End Matomo Code -->
  339. </body>
  340. </html>