<commit_before>{% extends 'portal/portal_index.html' %}
{% load staticfiles %}

{% block page_title %}
    <a class="navbar-brand" href="{% url 'editor_home' %}">Editor</a>
{% endblock %}

{% block content %}
    <div class="col-md-12">
        <div class="card">

            {% csrf_token %}
            <div class="card-header">
                <h4 class="card-title">
                    Education Content
                </h4>
                {% if form.errors %}
                    <div class="alert alert-danger">
                        {% for errors in form.non_field_errors %}
                            {{ errors }}
                        {% endfor %}
                        {{ form.errors }}
                    </div>
                {% endif %}
                {% if form_msg.strip %}
                    <p>
                    <div class="alert alert-success">
                        <span>{{ form_msg }}</span>
                    </div>
                    </p>
                {% endif %}
            </div>
            <form method="post" action="" class="form-horizontal">
                <div class="card-content">
                    <fieldset>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Title</label>
                            <div class="col-sm-10">
                                <input type="text" placeholder="Title" class="form-control" name="title" required
                                       id="id_title">
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">From</label>
                            <div class="col-sm-10">
                                <input type="text" placeholder="From" class="form-control" name="from_date" required
                                       id="id_from_date">
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">To</label>
                            <div class="col-sm-10">
                                <input type="text" placeholder="To" class="form-control" name="to_date" required
                                       id="id_to_date">
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Location</label>
                            <div class="col-sm-10">
                                <input type="text" placeholder="Location" class="form-control" name="where" required
                                       id="id_where">
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <div class="form-group">
                            <div class="col-sm-2"></div>
                            <div class="col-sm-10">
                                <label class="checkbox">
                                    <input type="checkbox" data-toggle="checkbox" name="current" id="id_current">
                                    Current
                                </label>
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Upload Extra File</label>
                            <div class="col-sm-10">
                                <input type="file" name="file" id="id_file">
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Upload Image</label>
                            <div class="col-sm-10">
                                <input type="file" name="image" id="id_image">
                            </div>
                        </div>
                    </fieldset>
                </div>
                <div class="card-footer">
                    <fieldset>
                        <div class="form-group">
                            <label class="col-md-3"></label>
                            <div class="col-md-9">
                                <button type="submit" class="btn btn-fill btn-info">Save</button>
                            </div>
                        </div>
                    </fieldset>
                </div>
            </form>


        </div>

    </div>
{% endblock %}
<commit_msg>checkbox updated<commit_after>{% extends 'portal/portal_index.html' %}
{% load staticfiles %}

{% block page_title %}
    <a class="navbar-brand" href="{% url 'editor_home' %}">Editor</a>
{% endblock %}

{% block content %}
    <div class="col-md-12">
        <div class="card">

            {% csrf_token %}
            <div class="card-header">
                <h4 class="card-title">
                    Education Content
                </h4>
                {% if form.errors %}
                    <div class="alert alert-danger">
                        {% for errors in form.non_field_errors %}
                            {{ errors }}
                        {% endfor %}
                        {{ form.errors }}
                    </div>
                {% endif %}
                {% if form_msg.strip %}
                    <p>
                    <div class="alert alert-success">
                        <span>{{ form_msg }}</span>
                    </div>
                    </p>
                {% endif %}
            </div>
            <form method="post" action="" class="form-horizontal">
                <div class="card-content">
                    <fieldset>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Title</label>
                            <div class="col-sm-10">
                                <input type="text" placeholder="Title" class="form-control" name="title" required
                                       id="id_title">
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">From</label>
                            <div class="col-sm-10">
                                <input type="text" placeholder="From" class="form-control" name="from_date" required
                                       id="id_from_date">
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">To</label>
                            <div class="col-sm-10">
                                <input type="text" placeholder="To" class="form-control" name="to_date" required
                                       id="id_to_date">
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Location</label>
                            <div class="col-sm-10">
                                <input type="text" placeholder="Location" class="form-control" name="where" required
                                       id="id_where">
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <div class="form-group">
                            <div class="col-sm-2"></div>
                            <div class="col-sm-10">
                                <div class="checkbox">
                                    <input type="checkbox" data-toggle="checkbox" name="current" id="id_current">
                                    <label for="id_current">Current?</label>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Upload Extra File</label>
                            <div class="col-sm-10">
                                <input type="file" name="file" id="id_file">
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Upload Image</label>
                            <div class="col-sm-10">
                                <input type="file" name="image" id="id_image">
                            </div>
                        </div>
                    </fieldset>
                </div>
                <div class="card-footer">
                    <fieldset>
                        <div class="form-group">
                            <label class="col-md-3"></label>
                            <div class="col-md-9">
                                <button type="submit" class="btn btn-fill btn-info">Save</button>
                            </div>
                        </div>
                    </fieldset>
                </div>
            </form>


        </div>

    </div>
{% endblock %}

{'fraction_non_alphanumeric': 0.12122736418511067, 'fraction_numerical': 0.005432595573440644, 'mean_word_length': 0.7982995658465991, 'pattern_counts': {'":': 0, '<': 203, '<?xml version=': 0, '>': 203, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2370059', 'n_tokens_mistral': 2402, 'n_tokens_neox': 2183, 'n_words': 418}