{% extends "base.html" %} {% block content %}

{{ appointment.title }}

{% if appointment.all_day %} All Day {% endif %} {% if appointment.all_day %} {{ appointment.start_at.strftime('%A, %B %-d, %Y') }} {% if appointment.end_at and appointment.end_at.strftime('%Y-%m-%d') != appointment.start_at.strftime('%Y-%m-%d') %} – {{ appointment.end_at.strftime('%A, %B %-d, %Y') }} {% endif %} {% else %} {{ appointment.start_at.strftime('%A, %B %-d, %Y at %-I:%M %p') }} {% if appointment.end_at %} – {{ appointment.end_at.strftime('%-I:%M %p') }} {% endif %} {% endif %} {% if appointment.location %} {{ appointment.location }} {% endif %} {% if appointment.recurrence %} {{ appointment.recurrence }} {% endif %}
Edit
{% if appointment.description %}
Description
{{ appointment.description }}
{% endif %} {% if appointment.tags %}
{% for tag in appointment.tags %} {{ tag }} {% endfor %}
{% endif %}
Attendees ({{ contacts | length }})
{% if contacts %} {% for c in contacts %}
{% if c.company %} {{ c.company }} {% endif %} {% if c.email %} {{ c.email }} {% endif %} {% if c.role %} {{ c.role }} {% endif %}
{% endfor %} {% else %}
No attendees added
{% endif %}
Created {{ appointment.created_at.strftime('%B %-d, %Y') }} {% if appointment.updated_at and appointment.updated_at != appointment.created_at %} · Updated {{ appointment.updated_at.strftime('%B %-d, %Y') }} {% endif %}
{% endblock %}