Исправлена ошибка парсинга шаблона в user_role_edit.html - добавлены пробелы вокруг оператора == и убран перенос строки внутри тега if
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
<label for="role" class="form-label">Роль *</label>
|
<label for="role" class="form-label">Роль *</label>
|
||||||
<select class="form-select" id="role" name="role" required>
|
<select class="form-select" id="role" name="role" required>
|
||||||
{% for role in roles %}
|
{% for role in roles %}
|
||||||
<option value="{{ role.code }}" {% if role.code==user_role.role.code %}selected{% endif %}>
|
<option value="{{ role.code }}" {% if role.code == user_role.role.code %}selected{% endif %}>
|
||||||
{{ role.name }} - {{ role.description }}
|
{{ role.name }} - {{ role.description }}
|
||||||
</option>
|
</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@@ -48,8 +48,7 @@
|
|||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<input class="form-check-input" type="checkbox" id="is_active" name="is_active" {% if
|
<input class="form-check-input" type="checkbox" id="is_active" name="is_active" {% if user_role.is_active %}checked{% endif %}>
|
||||||
user_role.is_active %}checked{% endif %}>
|
|
||||||
<label class="form-check-label" for="is_active">
|
<label class="form-check-label" for="is_active">
|
||||||
Активен
|
Активен
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user