File indexing completed on 2025-11-09 05:10:05
0001 {% extends ":/template_base.html" %}
0002
0003
0004 {% block body %}
0005 {% with _("Todo") as type %}
0006 {% include ":/incidence_header.html" %}
0007 {% endwith %}
0008
0009 <table class="main">
0010
0011 <!-- Calendar -->
0012 {% if incidence.calendar %}
0013 <tr>
0014 <th valign="top">{% i18n "Calendar:" %}</th>
0015 <td>{{ incidence.calendar }}</td>
0016 </tr>
0017 {% endif %}
0018
0019 <!-- Location -->
0020 {% if incidence.location %}
0021 <tr>
0022 <th valign="top">{% i18n "Location:" %}</th>
0023 <td>{{ incidence.location|safe }}</td>
0024 </tr>
0025 {% endif %}
0026
0027 <!-- Start date -->
0028 {% if incidence.startDate %}
0029 <tr>
0030 <th valign="top">{% i18nc "to-do start date/time" "Start:" %}</th>
0031 {% if incidence.allDay %}
0032 <td>{{ incidence.startDate|kdatetime:"dateonly" }}</td>
0033 {% else %}
0034 <td>{{ incidence.startDate|kdatetime }}</td>
0035 {% endif %}
0036 </tr>
0037 {% endif %}
0038
0039 <!-- Due date -->
0040 {% if incidence.dueDate %}
0041 <tr>
0042 <th valign="top">{% i18nc "to-do due date/time" "Due:" %}</th>
0043 {% if incidence.allDay %}
0044 <td>{{ incidence.dueDate|kdatetime:"dateonly" }}</td>
0045 {% else %}
0046 <td>{{ incidence.dueDate|kdatetime }}</td>
0047 {% endif %}
0048 </tr>
0049 {% endif %}
0050
0051 <!-- Duration -->
0052 {% if incidence.duration %}
0053 <tr>
0054 <th valign="top">{% i18n "Duration:" %}</th>
0055 <td>{{ incidence.duration }}</td>
0056 </tr>
0057 {% endif %}
0058
0059 <!-- Recurrence -->
0060 {% if incidence.recurs or incidence.isException %}
0061 <tr>
0062 <th valign="top">{% i18n "Recurrence:" %}</th>
0063 {% if incidence.isException %}
0064 <td>{% i18n "Exception" %}</td>
0065 {% else %}
0066 <td>{{ incidence.recurrence }}</td>
0067 {% endif %}
0068 </tr>
0069 {% endif %}
0070
0071 <!-- Description -->
0072 {% if incidence.description %}
0073 <tr>
0074 <th valign="top">{% i18n "Description:" %}</th>
0075 <td>{{ incidence.description|safe }}</td>
0076 </tr>
0077 {% endif %}
0078
0079 <!-- Comments -->
0080 {# TODO #}
0081
0082 <!-- Reminders -->
0083 {% if incidence.reminders %}
0084 <tr>
0085 <th valign="top">{% i18np "Reminder:" "Reminders:" incidence.reminders|length %}</th>
0086 <td>{{ incidence.reminders|join:"<br/>" }}</td>
0087 </tr>
0088 {% endif %}
0089
0090 <!-- Organizer -->
0091 {% if incidence.organizer %}
0092 <tr>
0093 <th valign="top">{% i18n "Organizer:" %}</th>
0094 <td>
0095 {% with incidence.organizer as attendee %}
0096 {% include ":/attendee_row.html" %}
0097 {% endwith %}
0098 </td>
0099 </tr>
0100 {% endif %}
0101
0102 <!-- Attendees - Chair -->
0103 {% if incidence.chairs %}
0104 <tr>
0105 <th valign="top">{% i18n "Chair:" %}</th>
0106 <td>
0107 {% for attendee in incidence.chair %}
0108 {% include ":/attendee_row.html" %}
0109 {% if not forloop.last %}<br/>{% endif %}
0110 {% endfor %}
0111 </td>
0112 </tr>
0113 {% endif %}
0114
0115 <!-- Attendees - Required Participants -->
0116 {% if incidence.requiredParticipants %}
0117 <tr>
0118 <th valign="top">{% i18n "Required Participants:" %}</th>
0119 <td>
0120 {% for attendee in incidence.requiredParticipants %}
0121 {% include ":/attendee_row.html" %}
0122 {% if not forloop.last %}<br/>{% endif %}
0123 {% endfor %}
0124 </td>
0125 </tr>
0126 {% endif %}
0127
0128 <!-- Attendees - Optional Participants -->
0129 {% if incidence.optionalParticipants %}
0130 <tr>
0131 <th valign="top">{% i18n "Optional participants:" %}</th>
0132 <td>
0133 {% for attendee in incidence.optionalParticipants %}
0134 {% include ":/attendee_row.html" %}
0135 {% if not forloop.last %}<br/>{% endif %}
0136 {% endfor %}
0137 </td>
0138 </tr>
0139 {% endif %}
0140
0141 <!-- Attendees - Observers -->
0142 {% if incidence.observers %}
0143 <tr>
0144 <th valign="top">{% i18n "Observers:" %}</th>
0145 <td>
0146 {% for attendee in incidence.chair %}
0147 {% include ":/attendee_row.html" %}
0148 {% if not forloop.last %}<br/>{% endif %}
0149 {% endfor %}
0150 </td>
0151 </tr>
0152 {% endif %}
0153
0154 <!-- Categories -->
0155 {% if incidence.categories %}
0156 <tr>
0157 <th valign="top">{% i18np "Tag:" "Tags:" incidence.categories|length %}</th>
0158 <td>{{ incidence.categories|join:", " }}</td>
0159 </tr>
0160 {% endif %}
0161
0162 <!-- Priority -->
0163 {% ifnotequal incidence.priority 0 %}
0164 <tr>
0165 <th valign="top">{% i18n "Priority:" %}</th>
0166 <td>{{ incidence.priority }}</td>
0167 </tr>
0168 {% endifnotequal %}
0169
0170 <!-- Completed -->
0171 {% if incidence.completedDate %}
0172 <tr>
0173 <th valign="top">{% i18nc "Completed: date" "Completed:" %}</th>
0174 <td>{{ incidence.completedDate|kdatetime }}</td>
0175 </tr>
0176 {% else %}
0177 <tr>
0178 <th valign="top">{% i18n "Percent done:" %}</th>
0179 <td>{% i18n "%1%" incidence.percent %}</td>
0180 </tr>
0181 {% endif %}
0182
0183 <!-- Attachments -->
0184 {% if incidence.attachments %}
0185 <tr>
0186 <th valign="top">{% i18np "Attachment:" "Attachments:" incidence.attachments|length %}</th>
0187 <td>{% for attachment in incidence.attachments %}
0188 <a href="{{ attachment.uri }}">{{ attachment.label }}</a>
0189 {% if not forloop.last %}
0190 <br/>
0191 {% endif %}
0192 {% endfor %}
0193 </td>
0194 </tr>
0195 {% endif %}
0196 </table>
0197
0198 <!-- Creation date -->
0199 <p><em>{% i18n "Creation date: %1" incidence.creationDate|kdatetime %}</em></p>
0200
0201 {% endblock body %}