base_generic.html 12 KB

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