feat(base): show warning bar if the user has not set a default organization

!42 fixes #133
This commit is contained in:
2024-07-17 23:51:25 +09:30
parent 416e029c23
commit 60538e1cec
3 changed files with 33 additions and 0 deletions

View File

@ -76,6 +76,15 @@ section h2 span svg {
fill: #177ee6;
}
.warning-bar {
background-color: #f1d599;
border: 1px solid #ecb785;
height: 30px;
line-height: 30px;
width: 100%;
padding: 0px 20px 0px 20px
}
</style>
<section>
@ -100,6 +109,9 @@ section h2 span svg {
{% endblock content_header_icon %}
{% endif %}
</h2>
{% if not user_default_organization %}
<div class="warning-bar">You do not have a <b>default organization</b> set, go to <a href="{% url '_settings_user' pk=user_settings %}">user settings</a> to set one</div>
{% endif %}
{% block article %}
<article id="content-body">
{% block content %}{% endblock %}