Added organisations to account settings
This commit is contained in:
15
templates/pages/account-settings.html.twig
Normal file
15
templates/pages/account-settings.html.twig
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{% extends "@account/pages/account-settings.html.twig" %}
|
||||||
|
|
||||||
|
{% block body_matter %}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-6">
|
||||||
|
{% block settings_profile_box %} {{ parent() }} {% endblock %}
|
||||||
|
{% block user_organisations_box %}
|
||||||
|
{% include "pages/partials/settings-organisations.html.twig" %}
|
||||||
|
{% endblock %}
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6">
|
||||||
|
{% block settings_account_box %} {{ parent() }} {% endblock %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
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