base_generic.html 12 KB

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