]> WPIA git - motion.git/blobdiff - templates/base.html
add: make app multilanguage with two languages: EN + DE
[motion.git] / templates / base.html
index 8f2b041bbcb4617f8776a0d1c2f23507b981c016..b777e335276ffbafb7a61a39469555e3132c4fb6 100644 (file)
@@ -1,20 +1,34 @@
 <!DOCTYPE html>
 <html>
 <head>
-<title>{% block title %}Motion list{% endblock %}</title>
-<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
+<title>{% block title %}{{_('Motion list')}}{% endblock %}</title>
+<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
 <style type="text/css">
+.form-inline .motion {
+  width: 100%;
+}
 .motion {
   border: 1px solid black;
+  margin-top:5px;
+  margin-bottom:5px;
+}
+.motion .motion-title input.motion-title-input {
+  width: 66%;
+}
+.motion .motion-title .float {
+  float: right;
 }
-.motion .motion-title input {
-  width: 80%;
+.motion .motion-title .motion-type {
+  margin: 5px;
+  float: right;
 }
 .motion textarea {
   display: block;
+  min-width: 100%;
 }
 .motion .motion-title{
   border-bottom: 1px solid black;
+  padding: 10px;
 }
 .motion .motion-title .title-text{
   font-size: 15pt;
 .motion p {
   padding: 10px;
 }
+td {
+  padding: 4px;
+}
+form {
+  padding-top: 4px;
+  padding-bottom: 4px;
+}
 </style>
 </head>
 <body>
-{% block body %}
+<nav class="navbar navbar-expand-lg navbar-light bg-light">
+  <a class="navbar-brand" href="../">{{_('Motion list')}}</a>
+  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
+    <span class="navbar-toggler-icon"></span>
+  </button>
+   <div class="collapse navbar-collapse" id="navbarNavDropdown">
+    <ul class="navbar-nav">
+      <li class="nav-item">
+        <a class="nav-link" href="/">{{_('Home')}}</a>
+      </li>
+{%- if may_proxyadmin %}
+      <li class="nav-item">
+        <a class="nav-link" href="/proxy">{{_('Proxy management')}}</a>
+      </li>
+{%- endif %}
+      <li class="nav-item">
+        <a class="nav-link">{{_('User')}}: {{g.user}}
+{%- if g.proxies_given %}
+         <br/>{{_('proxy granted to')}}: {{g.proxies_given}}
+{%- endif %}
+{%- if g.proxies_received %}
+         <br/>{{_('holds proxy of')}}: {{g.proxies_received}}
+{%- endif %}
+        </a>
+      </li>
+    </ul>
+  </div>
+</nav>
+{%- block body %}
 {% endblock %}
+<!-- Footer -->
+  <footer class="page-footer">
+    <div class="footer-copyright text-center py-3">
+      <p>&copy; {{footer.version_year}} {{_('Copyright')}}: <a href="{{footer.copyright_link}}">{{footer.copyright_name}}</a> 
+      | <a href="{{footer.imprint_link}}">{{_('Imprint')}}</a> 
+      | <a href="{{footer.dataprotection_link}}">{{_('Data protection')}}</a></p>
+    </div>
+  </footer>
 </body>
 </html>