Fixed role display on profile and admin pages
This commit is contained in:
@@ -56,7 +56,12 @@
|
||||
<tr>
|
||||
<td><a href="#">{{ user.name }}</a></td>
|
||||
<td>{{ user.user.email }}</td>
|
||||
<td>{{ user.role }}</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 %}
|
||||
|
||||
@@ -37,7 +37,13 @@
|
||||
<br>
|
||||
<h5><span class="badge bg-secondary text-light">Электронная почта</span> {{ profile.user.email }}</h5>
|
||||
<br>
|
||||
<h5><span class="badge bg-secondary text-light">Текущая роль</span> {{ profile.role }}</h5>
|
||||
<h5><span class="badge bg-secondary text-light">Текущая роль</span>
|
||||
{% if profile.custom_role_id == ZENDESK_ROLES.engineer %}
|
||||
engineer
|
||||
{% elif profile.custom_role_id == ZENDESK_ROLES.light_agent %}
|
||||
light_agent
|
||||
{% endif %}
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
|
||||
Reference in New Issue
Block a user