{% extends "Froxlor/base.html.twig" %} {% block content %}
{{ lng('install.slogan') }} {% if error is not null %}
{{ error }}
{% endif %}
{% if setup.step > 0 %}{{ lng('install.preflight') }}{% else %}{{ lng('install.preflight') }}{% endif %}
{% if setup.step > 1 %}{{ lng('install.database.top') }}{% else %}{{ lng('install.database.top') }}{% endif %}
{% if setup.step > 2 %}{{ lng('install.admin.top') }}{% else %}{{ lng('install.admin.top') }}{% endif %}
{% if setup.step > 3 %}{{ lng('install.system.top') }}{% else %}{{ lng('install.system.top') }}{% endif %}
{% if setup.step > 4 %}{{ lng('install.install.top') }}{% else %}{{ lng('install.install.top') }}{% endif %}
{% if setup.step > 0 %}

{{ section.title }}

{{ section.description|raw }}


{% import "Froxlor/form/formfields.html.twig" as formfields %} {% for id, field in section.fields %} {% if field.advanced is defined and field.advanced == true and extended == false %} {# hide advanced fields #} {% set field = field|merge({'type': 'hidden'}) %} {% endif %} {{ formfields.field(id, field) }} {% endfor %}
{% if setup.step < setup.max_steps %} « {{ lng('panel.back') }} {% else %} {{ lng('install.install.waitforconfig') }} {% endif %}
{% else %}

{{ lng('install.dependency_check.title') }}

{{ lng('install.dependency_check.description') }}

{{ preflight.text }} {% if preflight.criticals is empty and preflight.suggestions %}
{{ lng('install.suggestionsnote') }} {% endif %}

{% if preflight.criticals %}

{{ lng('install.critical_error') }}

    {% for ctype, critical in preflight.criticals %} {% if ctype == 'wrong_ownership' %}
  • {{ lng('install.errors.' ~ ctype, [critical.user, critical.group]) }}
  • {% elseif ctype == 'missing_extensions' %}
  • {{ lng('install.errors.' ~ ctype) }}
      {% for missext in critical %}
    • {{ missext }}
    • {% endfor %}
  • {% else %}
  • {{ critical|raw }}
  • {% endif %} {% endfor %}
{% endif %} {% if preflight.suggestions %}

{{ lng('install.suggestions') }}

    {% for ctype, suggestion in preflight.suggestions %} {% if ctype == 'missing_extensions' %}
  • {{ lng('install.errors.suggestedextensions') }}
      {% for missext in suggestion %}
    • {{ missext }}
    • {% endfor %}
  • {% else %}
  • {{ suggestion|raw }}
  • {% endif %} {% endfor %}
{% endif %}
{% if preflight.criticals %} {{ lng('install.check_again') }} {% else %} {{ lng('install.start_installation') }} {% endif %}
{% endif %}
{% endblock %}