{% load hc_extras %}

<div id="email-settings-modal" class="modal">
    <div class="modal-dialog">
        <form
            action="{% url 'hc-email-settings' check.code %}"
            class="form-horizontal"
            method="post">
            {% csrf_token %}
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                    <h4 class="update-timeout-title">Inbound Email Settings</h4>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label for="update-name-input" class="col-sm-4 control-label">
                            Subject Must Contain
                        </label>
                        <div class="col-sm-7">
                            <input
                                name="subject"
                                type="text"
                                value="{{ check.subject }}"
                                class="input-name form-control" />

                            <span class="help-block">
                                If set, {% site_name %} will ignore emails
                                without this value in the Subject line.
                            </span>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                    <button type="submit" class="btn btn-primary">Save</button>
                </div>
            </div>
        </form>
    </div>
</div>