Fix templates + add public wanted reason
This commit is contained in:
@@ -63,7 +63,10 @@
|
||||
{% if directory.hasnopapers %}
|
||||
<li class="list-group-item"><span class="fa-li"><i class="fas fa-scroll"></i></span>{% trans %}title_hasnopapers{% endtrans %}</li>
|
||||
{% endif %}
|
||||
{% if directory.wanted %}
|
||||
|
||||
{% endif %}
|
||||
{% if app.user %}
|
||||
{% if directory.wanted and ( app.user.hasPermission('general_legal_view') or directory.wantedPublicReason) %}
|
||||
<li class="list-group-item text-danger"><span class="fa-li"><i class="far fa-id-badge"></i></span>{% trans %}title_directory_wanted_light{% endtrans %} : {{ directory.wantedReason | default('value_no_value'|trans) }}</li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
@@ -73,7 +76,7 @@
|
||||
<div class="card-body">
|
||||
{{ directory.address | default('value_no_value'|trans) | raw }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if app.user and app.user.hasPermission('general_medical_view') %}
|
||||
|
||||
Reference in New Issue
Block a user