Removed django context, now uses only React

This commit is contained in:
Yuriy Kulakov
2021-04-04 20:03:35 +03:00
parent 575577642c
commit 30407e09dc
3 changed files with 16 additions and 51 deletions

View File

@@ -30,14 +30,6 @@
<div class="row justify-content-center new-section">
{% block hidden_form %}
<div style="display: none">
{% for field in form.users %}
{{ field.tag }}
{% endfor %}
</div>
{% endblock %}
<div class="col-10">
<h6 class="table-title">Список сотрудников</h6>
@@ -50,25 +42,11 @@
<th>Role</th>
<th>Checked</th>
</thead>
<tbody id="old_tbody">
{% for user in users %}
<tr>
<td><a href="#">{{ user.name }}</a></td>
<td>{{ user.user.email }}</td>
<td>{% if user.custom_role_id == ZENDESK_ROLES.engineer %}
engineer
{% elif user.custom_role_id == ZENDESK_ROLES.light_agent %}
light_agent
{% endif %}
</td>
<td class="checkbox_field"></td>
</tr>
{% endfor %}
<tbody id="tbody">
</tbody>
<tbody id="new_tbody"></tbody>
</table>
{% endblock%}
<p id="loading">Данные загружаются...</p>
{% endblock %}
</div>
</div>
@@ -96,7 +74,9 @@
</div>
</div>
{% endblock %}
{% block buttons %}
<div class="col-5">
<button type="submit" name="engineer" class="request-acess-button default-button">
@@ -107,8 +87,9 @@
Назначить выбранных на роль легкого агента
</button>
</div>
{% endblock %}
</div>
{% endblock %}
</form>
{% endblock %}