{% extends "base.html.twig" %} {% block title %}System settings{% endblock %} {% form_theme settingsForm with ['bootstrap_4_layout.html.twig', _self] %} {% block body %}

System Settings

{# { form_start(settingsForm, {'attr': {'class': 'form-inline'}}) } #}
Server

{{ form_start(settingsForm) }} {{ form_label(settingsForm.serverIpAddress) }} {{ form_widget(settingsForm.serverIpAddress) }}
Notifications

{{ form_label(settingsForm.enableEmailNotifications) }} {{ form_widget(settingsForm.enableEmailNotifications) }}
{{ form_label(settingsForm.enableEmailNotificationToAddress) }} {{ form_widget(settingsForm.enableEmailNotificationToAddress) }}
{{ form_label(settingsForm.notificationEmail) }} {{ form_widget(settingsForm.notificationEmail) }}
Device Table Columns

{{ form_label(settingsForm.deviceTableColumns) }} {{ form_widget(settingsForm.deviceTableColumns) }}

You can change order by simply dragging the column name. On the right side there is a clear button when there is no columns selected default set is used.

{% if(settingsForm.config is defined) %}
{{ productName }} System Configuration

{% for row in nonWritableConfigData %}
{{ row.label }}
{{ row.description }}.
The value is: {{ row.actualValue }}.

{% endfor %} {% for row in settingsForm.config %} {% if loop.index is odd%}
{% endif %}
{{ form_label(row) }} {{ form_widget(row) }} {{ form_help(row) }}
{% if loop.index is even%}
{% endif %} {% if not loop.last %}
{% endif %} {% endfor %}
{% endif %}
Smtp server

{{ form_label(settingsForm.smtpServer) }} {{ form_widget(settingsForm.smtpServer) }}
{{ form_label(settingsForm.smtpPort) }} {{ form_widget(settingsForm.smtpPort, {'type': 'number'}) }}
{{ form_label(settingsForm.smtpSecurity) }} {{ form_widget(settingsForm.smtpSecurity) }}
{{ form_label(settingsForm.smtpLogin) }} {{ form_widget(settingsForm.smtpLogin) }}
{{ form_label(settingsForm.smtpPassword) }} {{ form_widget(settingsForm.smtpPassword) }}
{{ form_label(settingsForm.senderEmail) }} {{ form_widget(settingsForm.senderEmail) }}
{% if(settingsForm.sendEmailTestNotification is defined) %} {{ form_widget(settingsForm.sendEmailTestNotification) }} {% endif %}
Slack server

{{ form_label(settingsForm.slackToken) }} {{ form_widget(settingsForm.slackToken) }}
{{ form_label(settingsForm.slackChannel) }} {{ form_widget(settingsForm.slackChannel) }}
{% if(settingsForm.sendSlackTestNotification is defined) %} {{ form_widget(settingsForm.sendSlackTestNotification) }} {% endif %}
{{ form_end(settingsForm) }}
{% endblock body %} {% block javascripts %} {{ parent() }} {% endblock %}