<commit_before>{% extends "base.html" %}

{% load static from staticfiles %}

{% block extra_foot %}
<script src="{% static './js/menu.js' %}"></script>
{% endblock %}

{% block content %}
<div class="container" id="est-menu">

    <div class="row">
        <div class="col-md-12 text-center">
            <h1>Select An Option</h1>
        </div>
    </div><!-- end row -->

    <div class="row">
        <div class="col-md-offset-3 col-md-3 col-xs-12 text-center">
            <div class="form-group">
                <button class="btn btn-lg btn-default btn-block" id="btn_new_quote">New Quote</button>
            </div>
            <script>
                //New Quote Button
                $('#btn_new_quote').click(function () {
                    $.ajax({
                        method: 'GET',
                        url: "{% url 'quote_form' %}"
                    }).done(function(response) {
                        $('#new_quote_form').html(response);
                        $('#new_quote').modal('toggle');
                    });
                });
            </script>
            <div class="form-group">
                <button class="btn btn-lg btn-default btn-block" id="btn_edit_quote">Edit Quote</button>
            </div>
            <script>
                //Edit Quote Button
                $('#btn_edit_quote').click(function () {
                    $.ajax({
                        method: 'GET',
                        url: "{% url 'client_list_form' %}"
                    }).done(function(response) {
                        $('#edit_quote_form_list').html(response).find('select').change(function (e) {
                            var clientID = e.target.value;
                            $.ajax({
                                method: 'GET',
                                url: "{% url 'quote_edit_form' %}",
                                data: {pk: clientID}
                            }).done(function (response) {
                                $('#edit_quote_form_contents').html(response);
                            });
                        });
                        $('#edit_quote_form_contents :input').attr('disabled', true);
                        $('#edit_quote').modal('toggle');
                    });
                });
            </script>
        </div><!-- end quote column -->
        
        <div class="col-md-3 col-xs-12 text-center">
            <div class="form-group">
                <button class="btn btn-lg btn-default btn-block" data-toggle="modal" data-target="#new_client">New Client</button>
            </div>
            <div class="form-group">
                <button class="btn btn-lg btn-default btn-block" id="btn_edit_client">Edit Client</button>
            </div>
            <script>
                //Edit Client Button
                $('#btn_edit_client').click(function () {
                    $.ajax({
                        method: 'GET',
                        url: "{% url 'client_list_form' %}"
                    }).done(function(response) {
                        $('#edit_client_form_list').html(response).find('select').change(function (e) {
                            var clientID = e.target.value;
                            $.ajax({
                                method: 'GET',
                                url: "{% url 'client_edit_form' %}",
                                data: {pk: clientID}
                            }).done(function (response) {
                               $('#edit_client_form_contents').html(response);
                            });
                        });
                        $('#edit_client_form_contents :input').attr('disabled', true);
                        $('#edit_client').modal('toggle');
                    });
                });
            </script>
        </div><!-- end client column -->
        
        <div class="col-md-3 col-xs-12 text-center">
            <div class="form-group">
                <button class="btn btn-lg btn-default btn-block" data-toggle="modal" data-target="#new_company">New Company</button>
            </div>
            <div class="form-group">
                <button class="btn btn-lg btn-default btn-block" id="btn_edit_company">Edit Company</button>
            </div>
            <script>
                //Edit Company Button
                $('#btn_edit_company').click(function () {
                    $.ajax({
                        method: 'GET',
                        url: "{% url 'company_list_form' %}" // need to add
                    }).done(function(response) {
                        $('#edit_company_form_list').html(response).find('select').change(function (e) {
                            var companyID = e.target.value;
                            $.ajax({
                                method: 'GET',
                                url: "{% url 'company_edit_form' %}",
                                data: {pk: companyID}
                            }).done(function (response) {
                               $('#edit_company_form_contents').html(response);
                            });
                        });
                        $('#edit_company_form_contents :input').attr('disabled', true);
                        $('#edit_company').modal('toggle');<commit_msg>Simple layout fix for menu buttons<commit_after>{% extends "base.html" %}

{% load static from staticfiles %}

{% block extra_foot %}
<script src="{% static './js/menu.js' %}"></script>
{% endblock %}

{% block content %}
<div class="container" id="est-menu">

    <div class="row">
        <div class="col-md-12 text-center">
            <h1>Select An Option</h1>
        </div>
    </div><!-- end row -->

    <div class="row">
        <div class="col-md-4 col-xs-12 text-center">
            <div class="form-group">
                <button class="btn btn-lg btn-default btn-block" id="btn_new_quote">New Quote</button>
            </div>
            <script>
                //New Quote Button
                $('#btn_new_quote').click(function () {
                    $.ajax({
                        method: 'GET',
                        url: "{% url 'quote_form' %}"
                    }).done(function(response) {
                        $('#new_quote_form').html(response);
                        $('#new_quote').modal('toggle');
                    });
                });
            </script>
            <div class="form-group">
                <button class="btn btn-lg btn-default btn-block" id="btn_edit_quote">Edit Quote</button>
            </div>
            <script>
                //Edit Quote Button
                $('#btn_edit_quote').click(function () {
                    $.ajax({
                        method: 'GET',
                        url: "{% url 'client_list_form' %}"
                    }).done(function(response) {
                        $('#edit_quote_form_list').html(response).find('select').change(function (e) {
                            var clientID = e.target.value;
                            $.ajax({
                                method: 'GET',
                                url: "{% url 'quote_edit_form' %}",
                                data: {pk: clientID}
                            }).done(function (response) {
                                $('#edit_quote_form_contents').html(response);
                            });
                        });
                        $('#edit_quote_form_contents :input').attr('disabled', true);
                        $('#edit_quote').modal('toggle');
                    });
                });
            </script>
        </div><!-- end quote column -->
        
        <div class="col-md-4 col-xs-12 text-center">
            <div class="form-group">
                <button class="btn btn-lg btn-default btn-block" data-toggle="modal" data-target="#new_client">New Client</button>
            </div>
            <div class="form-group">
                <button class="btn btn-lg btn-default btn-block" id="btn_edit_client">Edit Client</button>
            </div>
            <script>
                //Edit Client Button
                $('#btn_edit_client').click(function () {
                    $.ajax({
                        method: 'GET',
                        url: "{% url 'client_list_form' %}"
                    }).done(function(response) {
                        $('#edit_client_form_list').html(response).find('select').change(function (e) {
                            var clientID = e.target.value;
                            $.ajax({
                                method: 'GET',
                                url: "{% url 'client_edit_form' %}",
                                data: {pk: clientID}
                            }).done(function (response) {
                               $('#edit_client_form_contents').html(response);
                            });
                        });
                        $('#edit_client_form_contents :input').attr('disabled', true);
                        $('#edit_client').modal('toggle');
                    });
                });
            </script>
        </div><!-- end client column -->
        
        <div class="col-md-4 col-xs-12 text-center">
            <div class="form-group">
                <button class="btn btn-lg btn-default btn-block" data-toggle="modal" data-target="#new_company">New Company</button>
            </div>
            <div class="form-group">
                <button class="btn btn-lg btn-default btn-block" id="btn_edit_company">Edit Company</button>
            </div>
            <script>
                //Edit Company Button
                $('#btn_edit_company').click(function () {
                    $.ajax({
                        method: 'GET',
                        url: "{% url 'company_list_form' %}" // need to add
                    }).done(function(response) {
                        $('#edit_company_form_list').html(response).find('select').change(function (e) {
                            var companyID = e.target.value;
                            $.ajax({
                                method: 'GET',
                                url: "{% url 'company_edit_form' %}",
                                data: {pk: companyID}
                            }).done(function (response) {
                               $('#edit_company_form_contents').html(response);
                            });
                        });
                        $('#edit_company_form_contents :input').attr('disabled', true);
                        $('#edit_company').modal('toggle');
{'fraction_non_alphanumeric': 0.14593279041467752, 'fraction_numerical': 0.002527379949452401, 'mean_word_length': 1.1308336657359395, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '411367', 'n_tokens_mistral': 2665, 'n_tokens_neox': 2546, 'n_words': 475}