{% extends 'base.html.twig' %} {% trans_default_domain 'fediplan' %} {% block title %}{{ 'common.about_fediplan'|trans }}{% endblock %} {% block content %} {% include 'nav.html.twig' %}

{{ 'common.login'|trans}}

{{ form_start(form) }} {{ form_row(form._token) }} {{ form_errors(form) }} {% if flow.getCurrentStepNumber() == 1 %}
{{ form_label(form.host) }}
{{ form_widget(form.host, {'attr': {'class': 'form-control'}}) }}
{% if not form.host.vars.errors is empty %} {% for errorItem in form.host.vars.errors %} {{ errorItem.message }} {% endfor %} {% endif %}
{% elseif flow.getCurrentStepNumber() == 2 %}
{{ 'messages.login_authorization'|trans }}
{{ 'messages.authorization_get'|trans }}
{{ form_label(form.code) }}
{{ form_widget(form.code, {'attr': {'class': 'form-control'}}) }}
{% if not form.code.vars.errors is empty %} {% for errorItem in form.code.vars.errors %} {{ errorItem.message }} {% endfor %} {% endif %}
{{ form_widget(form.client_id, {'value' : client_id}) }} {{ form_widget(form.client_secret, {'value' : client_secret}) }} {% endif %} {{ form_widget(form) }}

{{ 'page.index.about'|trans |raw}}

{{ 'page.index.data'|trans |raw}}

{{ form_end(form) }} {% endblock %}