<commit_before>{% extends 'AngleNickelTrackerAppBundle:Common:layout.html.twig' %}
{% set page_title = 'Accounts' %}
{% set active = 'account' %}


{% block content %}

    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            <i class="fa fa-edit"></i> Register New Account

            <a href="#" class="btn btn-primary btn-sm pull-right">
                <i class="fa fa-plus"></i> New Account
            </a>
        </h1>
    </section>

    <!-- Main content -->
    <section class="content">

        <!-- Accounts Table -->
        <div class="row">
            <div class="col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3">
                <div class="box box-primary">

                    <div class="box-body">

                        <form role="form" class="form-horizontal">
                            <div class="box-body">
                                <div class="form-group">
                                    <label for="exampleInputEmail1">Account Name</label>
                                    <input type="text" class="form-control" id="accountName" name="accountName" placeholder="Enter a unique name">
                                </div>
                                <div class="form-group">
                                    <label>Account Type</label>
                                    <select class="form-control" id="accountType" name="accountType">
                                        <option value="" selected="selected" disabled="disabled">-- Select type --</option>
                                        {% for key, name in account.availableTypes %}
                                            <option value="{{ key }}">{{ name }}</option>
                                        {% endfor %}
                                    </select>
                                </div>
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa fa-dollar"></i></span>
                                    <input type="text" class="form-control" id="accountCreditLimit" name="accountCreditLimit" disabled="disabled">
                                </div>
                            </div>
                            <!-- /.box-body -->

                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">Submit</button>
                            </div>
                        </form>

                    </div>
                </div>
            </div>
        </div>

    </section><!-- /.content -->
{% endblock %}

{% block scripts %}
    {{ parent() }}

    <script type="text/javascript">
        $('#accountType').change(function(){
            // Check if the selected account type is Credit, if so, enable the Credit Limit input
            var $i = ('#accountCreditLimit');
            if ($(this).val() == 'C') {
                $i.removeAttr('disabled');
            } else {
                $("input").attr('disabled','disabled');
            }
        });
    </script>
{% endblock %}<commit_msg>Fixing layout issues!<commit_after>{% extends 'AngleNickelTrackerAppBundle:Common:layout.html.twig' %}
{% set page_title = 'Accounts' %}
{% set active = 'account' %}


{% block content %}

    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            <i class="fa fa-edit"></i> Register New Account
        </h1>
    </section>

    <!-- Main content -->
    <section class="content">

        <!-- Accounts Table -->
        <div class="row">
            <div class="col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3">
                <div class="box box-primary">

                    <form role="form" class="form-horizontal">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="exampleInputEmail1">Account Name</label>
                                <input type="text" class="form-control" id="accountName" name="accountName" placeholder="Enter a unique name">
                            </div>
                            <div class="form-group">
                                <label>Account Type</label>
                                <select class="form-control" id="accountType" name="accountType">
                                    <option value="" selected="selected" disabled="disabled">-- Select type --</option>
                                    {% for key, name in account.availableTypes %}
                                        <option value="{{ key }}">{{ name }}</option>
                                    {% endfor %}
                                </select>
                            </div>
                            <div class="input-group">
                                <span class="input-group-addon"><i class="fa fa-dollar"></i></span>
                                <input type="text" class="form-control" id="accountCreditLimit" name="accountCreditLimit" disabled="disabled">
                            </div>
                        </div>
                        <!-- /.box-body -->

                        <div class="box-footer">
                            <button type="submit" class="btn btn-primary">Submit</button>
                        </div>
                    </form>

                </div>
            </div>
        </div>

    </section><!-- /.content -->
{% endblock %}

{% block scripts %}
    {{ parent() }}

    <script type="text/javascript">
        $('#accountType').change(function(){
            // Check if the selected account type is Credit, if so, enable the Credit Limit input
            var $i = ('#accountCreditLimit');
            if ($(this).val() == 'C') {
                $i.removeAttr('disabled');
            } else {
                $i.attr('disabled','disabled');
            }
        });
    </script>
{% endblock %}
{'fraction_non_alphanumeric': 0.14720895768154124, 'fraction_numerical': 0.003951918327021241, 'mean_word_length': 1.1991310644460536, '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': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2655876', 'n_tokens_mistral': 1526, 'n_tokens_neox': 1411, 'n_words': 325}