{% extends 'hqwebapp/base_section.html' %}
{% load i18n %}
{% load hq_shared_tags %}
{% load crispy_forms_tags %}

{% block js %}{{ block.super }}
    <script src="{% static 'sms/js/settings.ko.js' %}"></script>
{% endblock %}

{% block js-inline %}{{ block.super }}
    <script>
        var settingsViewModel = new SettingsViewModel(
            {{ form.current_values|JSON }}
        );
        $('#sms-settings-form').koApplyBindings(settingsViewModel);
        settingsViewModel.init();
    </script>
{% endblock %}

{% block stylesheets %}
    <style>
        .form-horizontal .form-group {
            margin-left: 0;
            margin-right: 0;
        }
    </style>
{% endblock %}

{% block page_content %}
    <div id="sms-settings-form">
        {% crispy form %}
    </div>

    {% include "sms/partials/day_time_windows.html" with context=form.restricted_sms_times_widget_context only %}
    {% include "sms/partials/day_time_windows.html" with context=form.sms_conversation_times_widget_context only %}
{% endblock %}

{% extends 'hqwebapp/base_section.html' %}
{% load i18n %}
{% load hq_shared_tags %}
{% load crispy_forms_tags %}

{% block js %}{{ block.super }}
    <script src="{% static 'sms/js/settings.ko.js' %}"></script>
{% endblock %}

{% block js-inline %}{{ block.super }}
    <script>
        var settingsViewModel = new SettingsViewModel(
            {{ form.current_values|JSON }}
        );
        $('#sms-settings-form').koApplyBindings(settingsViewModel);
        settingsViewModel.init();
    </script>
{% endblock %}

{% block stylesheets %}
    <style>
        .form-horizontal .form-group {
            margin-left: 0;
            margin-right: 0;
        }
        .form-horizontal .form-group > div .row select {
            margin-left: 0px;
        }
        .controls-multiple .row div {
            padding-left: 0px;
        }
    </style>
{% endblock %}

{% block page_content %}
    <div id="sms-settings-form">
        {% crispy form %}
    </div>

    {% include "sms/partials/day_time_windows.html" with context=form.restricted_sms_times_widget_context only %}
    {% include "sms/partials/day_time_windows.html" with context=form.sms_conversation_times_widget_context only %}
{% endblock %}

Fix spacing on select fields
Fix spacing on select fields
