Added organisations to account settings
This commit is contained in:
28
templates/pages/partials/settings-organisations.html.twig
Normal file
28
templates/pages/partials/settings-organisations.html.twig
Normal 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>
|
||||
Reference in New Issue
Block a user