Forráskód Böngészése

Fix tabs to spaces

JoostSijm 6 éve
szülő
commit
c28ec5c335

+ 20 - 20
app/modules/vote/templates/vote/add_question.j2

@@ -2,26 +2,26 @@
 {% block content %}
 {% block content %}
 <h1>Add question: {{ ballot.name }}</h1>
 <h1>Add question: {{ ballot.name }}</h1>
 <table class="table table-sm">
 <table class="table table-sm">
-	<tr>
-		<th scope="row">Description</th>
-		<td>{{ ballot.description }}</td>
-	</tr>
-	<tr>
-		<th scope="row">Start</th>
-		<td>{{ ballot.start_at }}</td>
-	</tr>
-	<tr>
-		<th scope="row">End</th>
-		<td>{{ ballot.end_at }}</td>
-	</tr>
-	<tr>
-		<th scope="row">User</th>
-		<td>{{ ballot.user.name }}</td>
-	</tr>
-	<tr>
-		<th scope="row">Priority</th>
-		<td>{{ ballot.priority.name }}</td>
-	</tr>
+    <tr>
+        <th scope="row">Description</th>
+        <td>{{ ballot.description }}</td>
+    </tr>
+    <tr>
+        <th scope="row">Start</th>
+        <td>{{ ballot.start_at }}</td>
+    </tr>
+    <tr>
+        <th scope="row">End</th>
+        <td>{{ ballot.end_at }}</td>
+    </tr>
+    <tr>
+        <th scope="row">User</th>
+        <td>{{ ballot.user.name }}</td>
+    </tr>
+    <tr>
+        <th scope="row">Priority</th>
+        <td>{{ ballot.priority.name }}</td>
+    </tr>
 </table>
 </table>
 <form method="post">
 <form method="post">
     <div class="form-group">
     <div class="form-group">

+ 7 - 5
app/modules/vote/templates/vote/public.j2

@@ -16,7 +16,7 @@
         </div>
         </div>
     </nav>
     </nav>
     <div class="container mt-3">
     <div class="container mt-3">
-    	{% with messages = get_flashed_messages(with_categories=true) %}
+        {% with messages = get_flashed_messages(with_categories=true) %}
         {% if messages %}
         {% if messages %}
         {% for category, message in messages %}
         {% for category, message in messages %}
         <div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
         <div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
@@ -30,7 +30,7 @@
         {% endwith %}
         {% endwith %}
         <h1>{{ ballot.name }}</h1>
         <h1>{{ ballot.name }}</h1>
         <table class="table table-sm">
         <table class="table table-sm">
-        	{% if ballot.description %}
+            {% if ballot.description %}
             <tr>
             <tr>
                 <th scope="row">Description</th>
                 <th scope="row">Description</th>
                 <td>{{ ballot.description }}</td>
                 <td>{{ ballot.description }}</td>
@@ -57,9 +57,11 @@
         </table>
         </table>
         {% if ballot.active() %}
         {% if ballot.active() %}
         <form method="post">
         <form method="post">
-            <div class="form-group">
-                <label class="text-normal text-dark">Veiligheids code</label>
-                <input type="text" class="form-control" name="security_code" placeholder="code" required>
+            <div class="card mb-4">
+                <div class="card-body">
+                    <h5 class="card-title">Veiligheids code</h5>
+                    <input type="text" class="form-control" name="security_code" placeholder="code" required>
+                </div>
             </div>
             </div>
             {% for question in ballot.questions %}
             {% for question in ballot.questions %}
             <div class="card mb-4">
             <div class="card mb-4">