impersonate

parent a8f8ebc1
......@@ -165,7 +165,7 @@
</td>
<td>
{% if not user.superuser and request.user.is_superuser %}
<a title="swithc user" href="{% url 'impersonate-start' user.user_id %}" class="btn btn-warning"><i
<a title="Impersonate" href="{% url 'impersonate-start' user.user_id %}" class="btn btn-warning"><i
class="fa fa-eye"></i></a>
{% endif %}
<button title="save" type="submit" class="btn btn-success"><i
......
view_as{
view_as {
color: navy;
}
.alert2{
.alert2 {
margin-bottom: 0px !important;
margin-top: 0px !important;
background-color: rgba(255, 0, 0, 0.5);
text-align: center;
}
ul#menu li {
display: inline;
padding-right: 5px;
}
\ No newline at end of file
......@@ -130,9 +130,18 @@
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper" style="border:0px solid blue;">
{% if user.is_impersonate %}
<div class="alert alert2 alert-dismissible " >
<div class="alert alert2 alert-dismissible ">
<a href="{% url 'impersonate-stop' %}" class="close" data-dismiss="alert" aria-label="close">&times;</a>
<strong>View as: </strong> {{ user.get_full_name }}
<ul id="menu">
<li><i class="fa fa-eye"></i></li>
<li><strong>View as: </strong></li>
<li> {{ user.username }}</li>
<li><strong>Full Name: </strong></li>
<li> {{ user.get_full_name }}</li>
<li><strong>E-mail: </strong></li>
<li> {{ user.email }}</li>
</ul>
</div>
{% 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 to comment