47 lines
1.2 KiB
HTML
47 lines
1.2 KiB
HTML
<style type="text/css">
|
|
.roundimg {
|
|
border-radius: 50%;
|
|
z-index: 999;
|
|
height: 100%;
|
|
width: 100%;
|
|
border-radius: 50%;
|
|
}
|
|
.icon-container {
|
|
width: 50px;
|
|
height: 50px;
|
|
position: relative;
|
|
}
|
|
|
|
.status-circle {
|
|
width: 15px;
|
|
height: 15px;
|
|
border-radius: 50%;
|
|
bottom: 0;
|
|
right: 0;
|
|
position: absolute;
|
|
}
|
|
</style>
|
|
<div class="card col-2" style="position: fixed; right: 35px; bottom: 75px;">
|
|
<div class="card-body">
|
|
<h5>Chat starten
|
|
<button class="btn btn-sm btn-secondary" style="float: right;" onclick="javascript:$('#chat_alluserscontent').fadeOut()"><small><i class="fas fa-times"></i></small></button>
|
|
</h5>
|
|
<hr>
|
|
{% for user in usersofagency %}
|
|
<span>
|
|
|
|
<div class='icon-container'>
|
|
<img class="img-profile roundimg" src="{{ user.profile.get_photo_url }}">
|
|
<div class='status-circle' style="background-color: {% if user in onlineusers %} green {% else %} grey {% endif %};">
|
|
</div>
|
|
</div>
|
|
{{user.first_name}} {{user.last_name}}
|
|
<button class="btn btn-sm btn-secondary" style="float: right;"><small><i class="far fa-comment"></i></small></button>
|
|
</span>
|
|
<br />
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<div class="chat-popup">
|
|
|
|
|