{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block title %}{{ display_name }} {{ _('Setup') }} - {{ app_name }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': 'Admin', 'url': url_for('admin.admin_dashboard')}, {'text': 'Integrations', 'url': url_for('admin.list_integrations_admin')}, {'text': display_name + ' Setup'} ] %} {{ page_header( icon_class='fas fa-plug', title_text=display_name + ' ' + _('Setup'), subtitle_text=description, breadcrumbs=breadcrumbs ) }}
{% if provider == 'trello' %}

{{ _('Get your API key from') }} trello.com/app-key

{{ _('Generate a token with your API key. Visit') }} trello.com/1/authorize {{ _('(replace YOUR_API_KEY with your actual API key)') }}

{% else %}
{% if provider in ['outlook_calendar', 'microsoft_teams'] %}
{% endif %} {% if provider == 'gitlab' %}
{% endif %}

{{ _('OAuth Redirect URI') }}

{{ _('Add this URL as an authorized redirect URI in your OAuth app settings:') }}

{{ url_for('integrations.oauth_callback', provider=provider, _external=True) }} {% if provider == 'google_calendar' %}

{{ _('Automatic Connection Flow') }}

  • {{ _('After you save these credentials, users can click "Connect Google Calendar"') }}
  • {{ _('They will be automatically redirected to Google OAuth') }}
  • {{ _('No manual credential entry needed - fully automatic!') }}
  • {{ _('Each user connects their own Google Calendar account') }}
{% endif %}
{% endif %}
{{ _('Cancel') }}
{% if provider == 'google_calendar' %}

{{ _('How Google Calendar Works') }}

{{ _('After you save the OAuth credentials above, users can connect their Google Calendar by clicking "Connect Google Calendar" on the Integrations page.') }}

{{ _('They will be automatically redirected to Google to authorize access - no manual credential entry needed!') }}

{{ _('Each user connects their own Google Calendar account (per-user integration).') }}

{% elif integration and integration.is_active %}

{{ _('Connection Status') }}

{{ _('Connected') }} {{ _('View Integration') }}
{% elif integration %}

{{ _('Next Steps') }}

{{ _('After saving credentials, connect the integration:') }}

{{ _('Connect Integration') }}
{% endif %} {% endblock %}