Added organisations to account settings

This commit is contained in:
2023-06-06 15:49:23 +01:00
parent fc47f23615
commit 6afe2e0be4
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"><i class="fas fa-sitemap"></i> {{translate('ORGANISATION', 2)}}</h3>
</div>
<div class="box-body">
<p class="box-profile-property">
{% for organisation in current_user.organisations %}
<div class="row">
<div class="col-xs-9">
<a href="{{site.uri.public}}/organisations/o/{{organisation.slug}}" class="label bg-primary {% if organisation.flag_approved != 1 %}organisation-pending{% endif %} {% if organisation.pivot.flag_admin %}organisation-admin{% endif %}" title="{{organisation.description}}" data-text="{{organisation.name}}" style="font-size: 100%;">{{organisation.name}}</a>
<small class="user-organisation-description">{{organisation.description}}</small>
</div>
</div>
<hr class="row-divider">
{% endfor %}
{% for organisation in current_user.pendingOrganisations %}
<div class="row">
<div class="col-xs-9">
<a href="{{site.uri.public}}/organisations/o/{{organisation.slug}}" class="label bg-primary {% if organisation.flag_approved != 1 %}organisation-pending{% endif %} {% if organisation.pivot.flag_admin %}organisation-admin{% endif %}" title="{{organisation.description}}" data-text="{{organisation.name}}" style="font-size: 100%;">{{organisation.name}}</a>
<small class="user-organisation-description">{{organisation.description}}</small>
</div>
</div>
<hr class="row-divider">
{% endfor %}
</p>
</div>
</div>