mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
83 lines
2.9 KiB
HTML
83 lines
2.9 KiB
HTML
{% extends "layout.html" %}
|
|
{% from "_macros.html" import render_events, render_location_prop, render_link_prop, render_image %}
|
|
{% block title %}
|
|
{{ organization.name }}
|
|
{% endblock %}
|
|
{% block content %}
|
|
|
|
<h1>{{ organization.name }}</h1>
|
|
|
|
<!-- Nav tabs -->
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
<li class="nav-item">
|
|
<a class="nav-link active" data-toggle="tab" href="#info" role="tab" area-selected="true">{{ _('Info') }}</a>
|
|
</li>
|
|
{% if current_user_member or can_list_members %}
|
|
<li class="nav-item">
|
|
<a class="nav-link" data-toggle="tab" href="#members" role="tab">{{ _('Members') }}</a>
|
|
</li>
|
|
{% endif %}
|
|
<li class="nav-item">
|
|
<a class="nav-link" data-toggle="tab" href="#events" role="tab">{{ _('Events') }}</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<!-- Tab panes -->
|
|
<div class="tab-content">
|
|
<div class="tab-pane pt-4 active" id="info" role="tabpanel">
|
|
|
|
{% if organization.legal_name %}
|
|
<div>{{ organization.legal_name }}</div>
|
|
{% endif %}
|
|
|
|
<div class="my-4">
|
|
{{ render_location_prop(organization.location) }}
|
|
{{ render_link_prop(organization.url) }}
|
|
</div>
|
|
|
|
{% if organization.logo_id %}
|
|
<div class="my-4">{{ render_image(organization.logo_id) }}</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% if current_user_member or can_list_members %}
|
|
<div class="tab-pane pt-4" id="members" role="tabpanel">
|
|
{% if current_user_member %}
|
|
<div class="my-4">
|
|
{{ _('You are a member of this organization.') }}
|
|
({% for role in current_user_member.roles %}{{ role.name }}{%if not loop.last %}, {% endif %}{% endfor %})
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if can_list_members %}
|
|
<div class="table-responsive">
|
|
<table class="table table-sm table-bordered table-hover table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ _('Name') }}</th>
|
|
<th>{{ _('Roles') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for member in organization.members %}
|
|
<tr>
|
|
<td>{{ member.user.email }}</td>
|
|
<td>{% for role in member.roles %}{{ role.name }}{%if not loop.last %}, {% endif %}{% endfor %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="tab-pane pt-4" id="events" role="tabpanel">
|
|
{{ render_events(events) }}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %} |