{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block title %}{{ _('CalDAV Calendar Setup') }} - {{ app_name }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': 'Integrations', 'url': url_for('integrations.list_integrations')}, {'text': 'CalDAV Calendar Setup'} ] %} {{ page_header( icon_class='fas fa-calendar', title_text=_('CalDAV Calendar Setup'), subtitle_text=_('Connect to a CalDAV server (e.g., Zimbra) to import calendar events as time entries'), breadcrumbs=breadcrumbs ) }}

{{ _('Server Connection') }}

{{ _('Base URL of your CalDAV server. Used for calendar discovery.') }} {{ _('Example: https://mail.example.com/dav for Zimbra') }}

{{ _('Direct URL to your calendar collection. If provided, server URL is only used for discovery.') }}

{{ _('Authentication') }}

{{ _('Your CalDAV username (usually your email address).') }}

{{ _('Your CalDAV password or app-specific password.') }} {% if integration.credentials %} {{ _('Leave empty to keep your current password.') }} {% endif %}

{{ _('Uncheck only if using a self-signed certificate.') }}

{{ _('Import Settings') }}

{% if projects %}

{{ _('Calendar events will be imported as time entries for this project.') }} {{ _('If an event title contains a project name, that project will be used instead.') }}

{% else %}

{{ _('No active projects found. Please create a project first before setting up CalDAV integration.') }}

{{ _('Create a project') }} →
{% endif %}

{{ _('How many days back to import events from (default: 90).') }}

{{ _('Cancel') }}
{% if integration.credentials %}

{{ _('Test Connection') }}

{{ _('After saving, you can test the connection and discover available calendars.') }}

{{ _('Test Connection') }}
{% endif %} {% endblock %}