{% extends app['twig_theme'] ~ '/layout.twig' %}
{% import app['twig_theme'] ~ '/macro/iptw_macro.twig' as main_macro %}
{% set title = ('Users'|trans ~ ': ' ~ 'Support info'|trans) %}


{% block footer_js %}
    
        {{ parent() }}
        {% include app.twig_theme ~ "/basic_templates/scripts-select2.twig" %}

{% endblock %}
{% block footer %}

        {{ parent() }}
        <script type="text/javascript" defer>
            {% include (app.twig_theme ~ "/Users/support_info/support_info.js.twig") %}
        </script>

{% endblock %}


{% block content %}
    <div id="add_channel">
        <form id="support_info_form" class="form-horizontal" role="form" action="{{ app.request_context.baseUrl }}/{{ app.controller_alias }}/save-support-info">
            <div class="row row_no_padding">
                <div class="box">
                    <h4 class="section-header"><span>{{ 'Support info'|trans }}</span></h4>
                    <div class="box-content">
                        <div class="col-xs-12 col-sm-8 col-lg-8">
                            <div class="form-group">
                                <label class="col-sm-2 control-label ">{{ 'Language'|trans }}</label>
                                <div class="col-xs-10 col-sm-8">
                                    <div class=" col-xs-10 col-sm-10">
                                        <select id="form_lang" name="form[lang]" class="form-control">
                                        {% for key, val in app['support_langs'] %}
                                            <option value="{{ val }}" {% if val == app["language"] %}selected="selected"{% endif %}>{{ key }}</option>
                                        {% endfor %}
                                        </select>
                                    </div>
                                    <span class="help-inline col-xs-12 col-sm-12">
                                        <span class="small txt-default">{{ 'Choose language for support info'|trans }}</span>
                                    </span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label ">{{ 'Support info'|trans }}</label>
                                <div class="col-xs-10 col-sm-8">
                                    <div class=" col-xs-10 col-sm-10">
                                        <textarea id="form_content" name="form[content]" class="form-control" rows="10">{{ app['def_lang_info']['content'] }}</textarea>
                                    </div>
                                    <span class="help-inline col-xs-12 col-sm-12">
                                        <span class="small txt-default">{{ 'Allowed to use html-tags'|trans }}</span>
                                    </span>
                                </div>
                            </div>
                            {#<div class="form-group">
                                <label class="col-sm-2 control-label ">&nbsp;</label>
                                <div class="col-xs-10 col-sm-8">
                                    <div class="col-xs-10 col-sm-10">
                                        <button type="submit" id="form_save" name="form[save]" class="btn btn-success green pull-right">{{ 'Save'|trans }}</button>
                                    </div>
                                </div>
                            </div>#}
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-buttons col-xs-12 col-sm-12">
                <div class="box">
                    <div class="box-content">
                        <div class="row">
                            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 pull-right">
                                <button id="form_save" type="submit" name="form[save]" class="btn btn-success pull-right">{{ 'Save'|trans }}</button>
                                <a href="{{app.request_context.baseUrl}}/{{app.controller_alias}}/" class="btn btn-default pull-right"> {{ 'Cancel'|trans }} </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>

{% endblock %}