Skip to content

Commit

Permalink
Improve servicing banner
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Dec 16, 2024
1 parent 9f09e78 commit 08e21be
Showing 1 changed file with 31 additions and 15 deletions.
46 changes: 31 additions & 15 deletions templates/includes/servicing.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
{% load i18n %}

{% if request.user.is_staff and request.session.servicing %}
<div class="servicing shadow-xl py-2" style="background:#222">
<a href="{% url 'staff.org_service' %}"
style="text-decoration:none;
color:rgba(255,255,255,.8);
font-weight:bold;
justify-content:center;
font-size:1.1em;
align-items:center;
display:flex"
class="flex"
onclick="handlePosterizeClick(event)">
<temba-icon class="mr-2 -mt-1" name="service" size="1.2">
</temba-icon>
<div>{{ user_org.name }}</div>
</a>
<div class="servicing flex p-2"
style="color: rgba(255,255,255,.8);
background: #{% if request.user.is_superuser %}ec0202{% else %}222{% endif %}">
<div>
<div class="flex">
<temba-icon class="mr-1 -mt-1" name="service">
</temba-icon>
<div>{% trans "Servicing" %}</div>
</div>
</div>
<div class="flex-1">
<div class="flex justify-center">
{% block servicing-orginfo %}
<div class="font-bold">{{ user_org.name }}</div>
{% endblock servicing-orginfo %}
</div>
</div>
<div>
{% block servicing-menu %}
<a href="{% url 'staff.org_service' %}"
class="flex justify-end"
onclick="handlePosterizeClick(event)"
style="color: inherit">
<temba-icon class="mr-1" name="logout">
</temba-icon>
<div>{% trans "End" %}</div>
</a>
{% endblock servicing-menu %}
</div>
</div>
{% endif %}

0 comments on commit 08e21be

Please sign in to comment.