<commit_before>{% extends 'user.base' %}
{% block title %}Ustawienia powiadomień :: {{ parent() }}{% endblock %}

{% import 'components.forms' as forms %}

{% block content %}
    <h2>Ustawienia powiadomień</h2>

    <div id="box-alerts-settings" class="panel panel-default">
        <div class="panel-body">
            {% if not user('is_confirm') %}
                <p class="alert alert-warning">
                    <strong>Uwaga!</strong> Nie potwierdziłeś swojego adresu e-mail dlatego też nie możemy wysyłać Ci powiadomień na maila.
                    Aby potwierdzić adres e-mail, <a class="alert-link" href="{{ url('Confirm') }}">kliknij tutaj</a>.
                </p>
            {% endif %}

            {{ form_open({'method': 'POST', 'role': 'form', 'url': route('user.alerts.settings'), 'class': 'form-horizontal'}) }}

            <div class="row">
                <div class="col-xs-8">
                    <strong>Powiadamiaj o...</strong>
                </div>
                <div class="col-xs-2">
                    <strong>Informacja w profilu</strong>
                </div>
                <div class="col-xs-2">
                    <strong>Informacja na e-mail</strong>
                </div>
            </div>

            {% for category, settings in groups %}
                {% if category %}
                    <div class="row">
                        <div class="col-xs-12">
                            <strong>{{ category }}</strong>
                        </div>
                    </div>
                {% endif %}

                {% for setting in settings %}
                    <div class="row">
                        <div class="col-xs-8">
                            {{ setting.name }}
                        </div>
                        <div class="col-xs-2">
                            {{ form_hidden('settings[' ~ setting.id ~ '][profile]', 0) }}

                            <div class="checkbox">
                                {% set random = 'id' ~ random() %}
                                {{ form_checkbox('settings[' ~ setting.id ~ '][profile]', 1, setting.profile, {id: random, class: 'styled'}) }}

                                <label for="{{ random }}">

                                </label>
                            </div>
                        </div>
                        <div class="col-xs-2">
                            {{ form_hidden('settings[' ~ setting.id ~ '][email]', 0) }}

                            <div class="checkbox">
                                {% set random = 'id' ~ random() %}
                                {{ form_checkbox('settings[' ~ setting.id ~ '][email]', 1, setting.email, {id: random, class: 'styled'}) }}

                                <label for="{{ random }}">

                                </label>
                            </div>
                        </div>
                    </div>
                {% endfor %}
            {% endfor %}

            <div class="row">
                <div class="col-xs-12">
                    <button type="submit" class="btn btn-primary" style="margin-right: 15px;" data-submit-state="Zapisywanie...">
                        Zapisz zmiany
                    </button>
                </div>
            </div>
            {{ form_close() }}
        </div>
    </div>
{% endblock %}<commit_msg>usuniecie inline style<commit_after>{% extends 'user.base' %}
{% block title %}Ustawienia powiadomień :: {{ parent() }}{% endblock %}

{% import 'components.forms' as forms %}

{% block content %}
    <h2>Ustawienia powiadomień</h2>

    <div id="box-alerts-settings" class="panel panel-default">
        <div class="panel-body">
            {% if not user('is_confirm') %}
                <p class="alert alert-warning">
                    <strong>Uwaga!</strong> Nie potwierdziłeś swojego adresu e-mail dlatego też nie możemy wysyłać Ci powiadomień na maila.
                    Aby potwierdzić adres e-mail, <a class="alert-link" href="{{ url('Confirm') }}">kliknij tutaj</a>.
                </p>
            {% endif %}

            {{ form_open({'method': 'POST', 'role': 'form', 'url': route('user.alerts.settings'), 'class': 'form-horizontal'}) }}

            <div class="row">
                <div class="col-xs-8">
                    <strong>Powiadamiaj o...</strong>
                </div>
                <div class="col-xs-2">
                    <strong>Informacja w profilu</strong>
                </div>
                <div class="col-xs-2">
                    <strong>Informacja na e-mail</strong>
                </div>
            </div>

            {% for category, settings in groups %}
                {% if category %}
                    <div class="row">
                        <div class="col-xs-12">
                            <strong>{{ category }}</strong>
                        </div>
                    </div>
                {% endif %}

                {% for setting in settings %}
                    <div class="row">
                        <div class="col-xs-8">
                            {{ setting.name }}
                        </div>
                        <div class="col-xs-2">
                            {{ form_hidden('settings[' ~ setting.id ~ '][profile]', 0) }}

                            <div class="checkbox">
                                {% set random = 'id' ~ random() %}
                                {{ form_checkbox('settings[' ~ setting.id ~ '][profile]', 1, setting.profile, {id: random, class: 'styled'}) }}

                                <label for="{{ random }}">

                                </label>
                            </div>
                        </div>
                        <div class="col-xs-2">
                            {{ form_hidden('settings[' ~ setting.id ~ '][email]', 0) }}

                            <div class="checkbox">
                                {% set random = 'id' ~ random() %}
                                {{ form_checkbox('settings[' ~ setting.id ~ '][email]', 1, setting.email, {id: random, class: 'styled'}) }}

                                <label for="{{ random }}">

                                </label>
                            </div>
                        </div>
                    </div>
                {% endfor %}
            {% endfor %}

            <div class="row">
                <div class="col-xs-12">
                    <button type="submit" class="btn btn-primary" data-submit-state="Zapisywanie...">
                        Zapisz zmiany
                    </button>
                </div>
            </div>
            {{ form_close() }}
        </div>
    </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.1509433962264151, 'fraction_numerical': 0.005051255385529639, 'mean_word_length': 1.0713846153846154, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4727548', 'n_tokens_mistral': 1899, 'n_tokens_neox': 1726, 'n_words': 376}