- add autoblack

This commit is contained in:
Ulrich Knechtelsdorfer
2016-04-08 20:23:47 +02:00
parent 9cf32cc82a
commit 65c51e2b71
9 changed files with 42 additions and 5 deletions

View File

@@ -15,6 +15,7 @@
<tr>
<th>Name</th>
<th>Geschwärzt</th>
<th>Auto-Schwärzen</th>
<th>Schulden</th>
<th>Bezahlt</th>
<th></th>
@@ -23,6 +24,7 @@
<tr>
<td>{{user.longname}}</td>
<td>{% if user.isblack %} &#9745; {% else %} &#9744; {% endif %}</td>
<td>{% if user.autoblack %} &#9745; {% else %} &#9744; {% endif %}</td>
<td>{{debt[user.id-1]}} € </td>
<td> <input type="number" name="{{user.name}}_payed" step="any" required value="0" /></td>
<td>Einzelne Rechnung <a href="/billing/send_personal_bill/{{user.name}}">versenden</a></td>

View File

@@ -13,6 +13,7 @@
<th>Geschwärzt</th>
<th>Baron</th>
<th>Angezeigt</th>
<th>Auto-Schwärzen</th>
<th></th>
</tr>
{% for user in users %}
@@ -25,6 +26,7 @@
<td>{% if user.isblack %} &#9745; {% else %} &#9744; {% endif %} </td>
<td>{% if user.isbaron %} &#9745; {% else %} &#9744; {% endif %} </td>
<td>{% if user.isshown %} &#9745; {% else %} &#9744; {% endif %} </td>
<td>{% if user.autoblack %} &#9745; {% else %} &#9744; {% endif %} </td>
<td> <a href="/manage_users/edit/{{user.name}}">bearbeiten</a></td>
</tr>
{% endfor %}

View File

@@ -17,6 +17,7 @@
Geschwärzt: <input type="checkbox" name="isblack" {% if user_to_edit.isblack %} checked {% endif %} /> <br>
Baron: <input type="checkbox" name="isbaron" {% if user_to_edit.isbaron %} checked {% endif %} /> <br>
Angezeigt: <input type="checkbox" name="isshown" {% if user_to_edit.isshown %} checked {% endif %} /><br>
Auto-Schwärzen: <input type="checkbox" name="autoblack" {% if user_to_edit.autoblack %} checked {% endif %} /><br>
<input type="submit" value="Übernehmen" />
</form>
{% endif %}