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

{% load i18n admin_modify adminmedia %}
{% load templatesadmin_tags %}

{% block extrahead %}
    {{ block.super }}
    {{ media }}
{% endblock %}

{% block extrastyle %}
    {{ block.super }}
    <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />
    <style type="text/css">
        textarea#id_content{
            width: 99%;
            height: 400px;
            margin: 0 0 1em 0;
            font-family: monospace;
        }
    </style>
{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
    <a href="{% url templatesadmin-overview %}">{% trans "Home" %}</a> &rsaquo;
    <a href="{% url templatesadmin-overview %}">{% trans "File selection" %}</a> &rsaquo;
    {{ template_path }}
</div>
{% endblock %}

{% block title %}
    {% trans "Edit Template:" %} {{ template_path|shortenfilepath }}
{% endblock %}

{% block content_title %}
    <h1>{% trans "Edit Template:" %} {{ template_path|shortenfilepath }}</h1>
{% endblock %}

{% block content %}
<div id="content-main">
    <form enctype="multipart/form-data" action="" method="post" id="site_form">
        {{ form.errors }}
        {{ form.content }}
        <div class="submit-row">
        {% if template_writeable %}
            {% for field in form %}
                {% ifnotequal field.label "Content" %}
            <p class="float-left">
                {{ field.label }} {{ field }}
            </p>
                    {% if forloop.last %} <input type="submit" value="{% trans "Save" %}" class="default" /> {% endif %}
            <br />
                {% endifnotequal %}
            {% endfor %}
        {% else %}
            {% trans "This template is not writeable." %}
            <br />
        {% endif %}
        </div>
    </form>
</div>
{% endblock %}
<commit_msg>Add a <div> around the form contents so the page validates.<commit_after>{% extends "templatesadmin/base.html" %}

{% load i18n admin_modify adminmedia %}
{% load templatesadmin_tags %}

{% block extrahead %}
    {{ block.super }}
    {{ media }}
{% endblock %}

{% block extrastyle %}
    {{ block.super }}
    <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />
    <style type="text/css">
        textarea#id_content{
            width: 99%;
            height: 400px;
            margin: 0 0 1em 0;
            font-family: monospace;
        }
    </style>
{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
    <a href="{% url templatesadmin-overview %}">{% trans "Home" %}</a> &rsaquo;
    <a href="{% url templatesadmin-overview %}">{% trans "File selection" %}</a> &rsaquo;
    {{ template_path }}
</div>
{% endblock %}

{% block title %}
    {% trans "Edit Template:" %} {{ template_path|shortenfilepath }}
{% endblock %}

{% block content_title %}
    <h1>{% trans "Edit Template:" %} {{ template_path|shortenfilepath }}</h1>
{% endblock %}

{% block content %}
<div id="content-main">
    <form enctype="multipart/form-data" action="" method="post" id="site_form">
        <div>
            {{ form.errors }}
            {{ form.content }}
        </div>
        <div class="submit-row">
        {% if template_writeable %}
            {% for field in form %}
                {% ifnotequal field.label "Content" %}
            <p class="float-left">
                {{ field.label }} {{ field }}
            </p>
                    {% if forloop.last %} <input type="submit" value="{% trans "Save" %}" class="default" /> {% endif %}
            <br />
                {% endifnotequal %}
            {% endfor %}
        {% else %}
            {% trans "This template is not writeable." %}
            <br />
        {% endif %}
        </div>
    </form>
</div>
{% endblock %}

{'fraction_non_alphanumeric': 0.1816267438799684, 'fraction_numerical': 0.006843906291129244, 'mean_word_length': 2.190596137699412, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 50, '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': '3948500', 'n_tokens_mistral': 1296, 'n_tokens_neox': 1129, 'n_words': 274}