mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
57 lines
3.2 KiB
HTML
57 lines
3.2 KiB
HTML
{% extends "layout.html" %}
|
|
{% set active_id = "organizers" %}
|
|
{% from "_macros.html" import render_pagination, render_location %}
|
|
{%- block title -%}
|
|
{{ _('Organizers') }}
|
|
{%- endblock -%}
|
|
{% block content %}
|
|
|
|
<h1>
|
|
{{ _('Organizers') }}
|
|
<a class="btn btn-outline-secondary btn-sm m-1" href="{{ url_for('manage_admin_unit_organizer_create', id=admin_unit.id) }}" role="button"><i class="fa fa-plus"></i> {{ _('Create organizer') }}</a>
|
|
</h1>
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-sm table-bordered table-hover table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ _('Name') }}</th>
|
|
<th>{{ _('Location') }}</th>
|
|
<th>{{ _('Phone') }}</th>
|
|
<th>{{ _('Email') }} / {{ _('Link URL') }}</th>
|
|
<th><i class="fa fa-fw fa-image" data-toggle="tooltip" title="{{ _('Logo') }}"></i></th>
|
|
<th><i class="fa fa-fw fa-calendar" data-toggle="tooltip" title="{{ _('Number of events') }}"></i></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for organizer in organizers %}
|
|
<tr>
|
|
<td>
|
|
<button class="btn btn-link dropdown-toggle p-0 text-wrap text-left" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ organizer.name }}</button>
|
|
<div class="dropdown-menu dropdown-menu-right">
|
|
<a class="dropdown-item" href="{{ url_for('organizers', path=organizer.id) }}">{{ _('View') }}</a>
|
|
<a class="dropdown-item" href="{{ url_for('organizer_update', id=organizer.id) }}">{{ _('Edit') }}</a>
|
|
<a class="dropdown-item" href="{{ url_for('organizer_delete', id=organizer.id) }}">{{ _('Delete') }}…</a>
|
|
<div class="dropdown-divider"></div>
|
|
<a class="dropdown-item" href="{{ url_for('manage_admin_unit_events', id=admin_unit.id, organizer_id=organizer.id) }}">{{ _('View events') }}</a>
|
|
<div class="dropdown-divider"></div>
|
|
<a class="dropdown-item" href="{{ url_for('event_create_for_admin_unit_id', id=admin_unit.id, organizer_id=organizer.id) }}">{{ _('Create event') }}</a>
|
|
</div>
|
|
</td>
|
|
<td>{{ render_location(organizer.location) }}</td>
|
|
<td>{{ organizer.phone or '' }}</td>
|
|
<td>
|
|
<div>{{ organizer.email or '' }}</div>
|
|
<div>{{ organizer.url or '' }}</div>
|
|
</td>
|
|
<td><i class="fa fa-fw fa-image {% if organizer.logo %}text-success{% else %}text-muted{% endif %}" data-toggle="tooltip" title="{{ _('Logo') }}"></i></td>
|
|
<td><a class="text-body" href="{{ url_for('manage_admin_unit_events', id=admin_unit.id, organizer_id=organizer.id) }}" data-toggle="tooltip" title="{{ _('Number of events') }}">{{ organizer.events|length }}</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="my-4">{{ render_pagination(pagination) }}</div>
|
|
|
|
{% endblock %} |