Merge branch 'fix/profile_page_look' into 'develop'
Fix/profile page look See merge request 2020-2021/online/s101/group-02/access_controller!72
This commit is contained in:
commit
1453810fb8
@ -6,7 +6,7 @@
|
|||||||
{% block title %}{{ pagename }}{% endblock %}
|
{% block title %}{{ pagename }}{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
{% block heading %}Профиль{% endblock %}
|
{% block heading %}<h1>Профиль</h1>{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
{% block extra_css %}
|
{% block extra_css %}
|
||||||
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<br>
|
<br>
|
||||||
<div class="row">
|
<div class="row px-4 py-4">
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<img
|
<img
|
||||||
@ -34,22 +34,25 @@
|
|||||||
<a href="{%url 'password_change' %}">Сменить пароль</a>
|
<a href="{%url 'password_change' %}">Сменить пароль</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h5><span class="badge bg-secondary text-light">Имя пользователя</span> {{ profile.name }}</h5>
|
<h4><span class="badge bg-secondary text-light">Имя пользователя</span></h4> <h5><strong>{{ profile.name }}</strong></h5>
|
||||||
<br>
|
<br>
|
||||||
<h5><span class="badge bg-secondary text-light">Электронная почта</span> {{ profile.user.email }}</h5>
|
<h4><span class="badge bg-secondary text-light">Электронная почта</span></h4> <h5><strong>{{ profile.user.email }}</strong></h5>
|
||||||
<br>
|
<br>
|
||||||
<h5><span class="badge bg-secondary text-light">Текущая роль</span>
|
<h4><span class="badge bg-secondary text-light">Текущая роль</span> </h4>
|
||||||
{% if profile.custom_role_id == ZENDESK_ROLES.engineer %}
|
{% if profile.custom_role_id == ZENDESK_ROLES.engineer %}
|
||||||
engineer
|
<h5><strong>engineer</strong></h5>
|
||||||
{% elif profile.custom_role_id == ZENDESK_ROLES.light_agent %}
|
{% elif profile.custom_role_id == ZENDESK_ROLES.light_agent %}
|
||||||
light_agent
|
<h5><strong>light_agent</strong></h5>
|
||||||
|
{% else %}
|
||||||
|
<h5><strong><small class="text-muted">None</small></strong></h5>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h5>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div align="center">
|
<br>
|
||||||
|
<div align="center" >
|
||||||
<form action="">
|
<form action="">
|
||||||
<a href="{% url 'work' profile.user.id %}" class="btn btn-primary"><big>Запросить права доступа</big></a>
|
<a href="{% url 'work' profile.user.id %}" class="btn btn-primary btn-lg">Запросить права доступа</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user