Commit e385e311 by Czémán Arnold

dashboard: fix deprecated template syntax

parent e8da56dd
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<td> <td>
<select class="form-control" name="perm-u-{{i.user.id}}"{% if i.level not in acl.allowed_levels %} disabled{% endif %}> <select class="form-control" name="perm-u-{{i.user.id}}"{% if i.level not in acl.allowed_levels %} disabled{% endif %}>
{% for id, name in acl.levels %} {% for id, name in acl.levels %}
<option{%if id = i.level%} selected="selected"{%endif%} <option{%if id == i.level%} selected="selected"{%endif%}
{% if id not in acl.allowed_levels %} disabled{% endif %} {% if id not in acl.allowed_levels %} disabled{% endif %}
value="{{id}}">{{name}}</option> value="{{id}}">{{name}}</option>
{% endfor %} {% endfor %}
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<td> <td>
<select class="form-control" name="perm-g-{{i.group.id}}{% if i.level not in acl.allowed_levels %} disabled{% endif %}"> <select class="form-control" name="perm-g-{{i.group.id}}{% if i.level not in acl.allowed_levels %} disabled{% endif %}">
{% for id, name in acl.levels %} {% for id, name in acl.levels %}
<option{%if id = i.level%} selected="selected"{%endif%} <option{%if id == i.level%} selected="selected"{%endif%}
{% if id not in acl.allowed_levels %} disabled{% endif %} {% if id not in acl.allowed_levels %} disabled{% endif %}
value="{{id}}">{{name}}</option> value="{{id}}">{{name}}</option>
{% endfor %} {% endfor %}
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<td> <td>
<select class="form-control" name="perm-u-{{i.user.id}}"> <select class="form-control" name="perm-u-{{i.user.id}}">
{% for id, name in acl.levels %} {% for id, name in acl.levels %}
<option{%if id = i.level%} selected="selected"{%endif%} value="{{id}}">{{name}}</option> <option{%if id == i.level%} selected="selected"{%endif%} value="{{id}}">{{name}}</option>
{% endfor %} {% endfor %}
</select> </select>
</td> </td>
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<td> <td>
<select class="form-control" name="perm-g-{{i.group.id}}"> <select class="form-control" name="perm-g-{{i.group.id}}">
{% for id, name in acl.levels %} {% for id, name in acl.levels %}
<option{%if id = i.level%} selected="selected"{%endif%} value="{{id}}">{{name}}</option> <option{%if id == i.level%} selected="selected"{%endif%} value="{{id}}">{{name}}</option>
{% endfor %} {% endfor %}
</select> </select>
</td> </td>
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
{% if table.page %} {% if table.page %}
<div class="table-container"> <div class="table-container">
{% endif %} {% endif %}
{% endspaceless %}
{% block table %} {% block table %}
<table{% if table.attrs %} {{ table.attrs.as_html }}{% endif %}> <table{% if table.attrs %} {{ table.attrs.as_html }}{% endif %}>
{% nospaceless %}
{% block table.thead %} {% block table.thead %}
<thead> <thead>
<tr> <tr>
...@@ -42,10 +42,9 @@ ...@@ -42,10 +42,9 @@
{% block table.tfoot %} {% block table.tfoot %}
<tfoot></tfoot> <tfoot></tfoot>
{% endblock table.tfoot %} {% endblock table.tfoot %}
{% endnospaceless %}
</table> </table>
{% endblock table %} {% endblock table %}
{% spaceless %}
{% if table.page %} {% if table.page %}
</div> </div>
{% endif %} {% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment