mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-17 09:45:03 +00:00
45 lines
2.1 KiB
HTML
45 lines
2.1 KiB
HTML
{% extends "layout.html" %}
|
|
{% from "_macros.html" import render_event_props, render_image_with_link, render_place, render_link_prop %}
|
|
{% block title %}
|
|
{{ event.name }}
|
|
{% endblock %}
|
|
{% block content %}
|
|
|
|
{% if can_update_event or user_can_verify_event %}
|
|
<div class="my-4">
|
|
{% if user_can_verify_event %}
|
|
<a class="btn btn-primary my-1" href="{{ url_for('event_review', event_id=event.id) }}" role="button"><i class="fa fa-edit"></i> {{ _('Review event') }}</a>
|
|
{% endif %}
|
|
{% if can_update_event %}
|
|
<a class="btn btn-primary my-1" href="{{ url_for('event_update', event_id=event.id) }}" role="button"><i class="fa fa-edit"></i> {{ _('Edit event') }}</a>
|
|
<a class="btn btn-danger my-1" href="{{ url_for('event_delete', event_id=event.id) }}" role="button"><i class="fa fa-trash"></i> {{ _('Delete event') }}...</a>
|
|
{% endif %}
|
|
{% if user_can_reference_event %}
|
|
<a class="btn btn-outline-primary my-1" href="{{ url_for('event_reference', event_id=event.id) }}" role="button"><i class="fa fa-link"></i> {{ _('Reference event') }}</a>
|
|
{% endif %}
|
|
{% if user_can_create_reference_request %}
|
|
<a class="btn btn-outline-primary my-1" href="{{ url_for('event_reference_request_create', event_id=event.id) }}" role="button"><i class="fa fa-link"></i> {{ _('Empfehlung anfragen') }}</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div style="max-width: 768px;">
|
|
|
|
{{ render_event_props(event, event.start, event.end, dates, user_can_verify_event) }}
|
|
|
|
{% if dates|length > 0 %}
|
|
<div class="card mt-4">
|
|
<div class="card-header">
|
|
<a name="event-dates">{{ _('Event Dates') }}</a>
|
|
</div>
|
|
<div class="list-group list-group-flush">
|
|
{% for date in dates %}
|
|
<a href="{{ url_for('event_date', id=date.id) }}" class="list-group-item">{{ date.start | datetimeformat('short') }}</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock %} |