]> WPIA git - motion.git/commitdiff
upd: formatting of motion area
authorINOPIAE <m.maengel@inopiae.de>
Fri, 29 May 2020 04:59:47 +0000 (06:59 +0200)
committerINOPIAE <m.maengel@inopiae.de>
Fri, 29 May 2020 06:52:55 +0000 (08:52 +0200)
templates/base.html
templates/index.html
templates/motion.html

index 79cf2d207b664fb34058ae13a01100b64eedc0c0..54ed96d22f8dc036dabc82ca2dd3871f35a7e3d9 100644 (file)
 }
 .motion textarea {
   display: block;
+  min-width: 100%;
 }
 .motion .motion-title{
   border-bottom: 1px solid black;
+  padding: 5px;
 }
 .motion .motion-title .title-text{
   font-size: 15pt;
index 666f6f738ad537c5680865ce6719783d8026a9cc..04bbabe8780b5540e2e6bee80009e92153eb40c5 100644 (file)
@@ -9,7 +9,7 @@ User: {{g.user}}
 </div>
 <form action="/motion" method="POST" class="form-inline">
 <div class="motion card">
-  <div class="motion-title card-heading bg-light from-group">
+  <div class="motion-title card-heading alert-light from-group">
     <input class="form-control motion-title-input" placeholder="Motion title" type="text" name="title" id="title">
     {%- if categories|length == 1 %}
     <input type="text" class="float form-control" maxwidth="10" disabled value="{{categories[0]}}">
@@ -28,7 +28,7 @@ User: {{g.user}}
     </select>
   </div>
   <div class="card-body">
-    <textarea class="form-control" placeholder="Motion content" name="content" rows="8" cols="70"></textarea><br>
+    <textarea class="form-control" placeholder="Motion content" name="content" rows="8"></textarea><br>
     Editing note: Markdown is used formatting.<br>
     To add a line break add two lines, to enter a link use [text](https//domain.tld/link)<br>
     <button class="btn btn-primary" type="submit">Submit Motion</button>
index 2f0d6b7769f7352d3219305ad0250517a2f4c1e8..051b8d659c88f4c6839adfcdf47fe8cb462ce5dd 100644 (file)
@@ -1,8 +1,8 @@
 <div class="motion card" id="motion-{{motion.id}}">
   <div class="motion-title card-heading 
-  {%- if motion.running %} bg-light
-{%- elif motion.canceled %} text-white bg-warning
-{%- elif motion.yes is defined %}{% if motion.yes != None and motion.no != None and motion.yes > motion.no %} text-white bg-success{% else %} text-white bg-danger{% endif %}
+  {%- if motion.running %} alert-light
+{%- elif motion.canceled %} alert-warning
+{%- elif motion.yes is defined %}{% if motion.yes != None and motion.no != None and motion.yes > motion.no %} alert-success{% else %} alert-danger{% endif %}
 {%- else %} bg-light{%- endif -%}
 ">
     <span class="title-text">{{motion.name}}</span> ({{ 'Running' if motion.running else ('Canceled' if motion.canceled != None else 'Finished') }})