<commit_before><table>
    <tbody>
    <tr>
        <th>{{ _('Title') }}</th>
        <td>
            {{ input(req, 'entry[title]', 'text') }}
            {% if errors.entry.title %}<p class="error">{{ errors.entry.title }}</p>{% endif %}
        </td>
    </tr>
    </tbody>
</table>

<h3>{{ _('Body') }}</h3>
<div>
    {{ input(req, 'entry[body]', 'textarea', {'id' : 'sys-entry-body'}) }}
    {% if errors.entry.body %}<p class="error">{{ errors.entry.body }}</p>{% endif %}
</div>

<h3 class="accordion_head" id="sys-accordion-extend">{{ _('Edit a postscript') }}<span>▼{{ _('Click to open/close') }}</span></h3>
<div {{ ifCookie(req, 'js_entry_hide_extend', 'style="visibility: hidden;"') }}>
    {{ input(req, 'entry[extend]', 'textarea', {'id' : 'sys-entry-extend'}) }}
    {% if errors.entry.extend %}<p class="error">{{ errors.entry.extend }}</p>{% endif %}
</div>

<h3 class="accordion_head" id="sys-accordion-setting">{{ _('Entry settings') }}<span>▼{{ _('Click to open/close') }}</span></h3>
<div {{ ifCookie(req, 'js_entry_hide_setting', 'style="display: none;"') }}>

    {{ include('admin/categories/ajax_add.twig') }}

    <table>
        <tbody>
        <tr>
            <th>{{ _('User tags') }}</th>
            <td>
                <input type="text" id="sys-add-tag-text"/>
                <input type="button" value="{{ _('Add') }}" id="sys-add-tag-button"/>
                <ul id="sys-add-tags"></ul>
                <ul id="sys-use-well-tags">
                    {% for tag in tags %}
                        <li>{{ tag }}</li>
                    {% endfor %}
                </ul>
            </td>
        </tr>
        </tbody>
    </table>

    <table>
        <tbody>
        <tr>
            <th>{{ _('Date and time') }}</th>
            <td>
                {{ input(req, 'entry[posted_at]', 'text', {'class' : 'date-time-picker'}) }}
                {{ _('Date and time of submission will be set when it is not input') }}<br/>
                {% if errors.entry.posted_at %}<p class="error">{{ errors.entry.posted_at }}</p>{% endif %}
            </td>
        </tr>
        <tr>
            <th>{{ _('Post type') }}</th>
            <td>
                {{ input(req, 'entry[open_status]', 'radio', {'options' : open_status_list, 'default' : open_status_open}) }}
                {% if errors.entry.open_status %}<p class="error">{{ errors.entry.open_status }}</p>{% endif %}
            </td><commit_msg>Bugfix, entry_tags not shown.<commit_after><table>
    <tbody>
    <tr>
        <th>{{ _('Title') }}</th>
        <td>
            {{ input(req, 'entry[title]', 'text') }}
            {% if errors.entry.title %}<p class="error">{{ errors.entry.title }}</p>{% endif %}
        </td>
    </tr>
    </tbody>
</table>

<h3>{{ _('Body') }}</h3>
<div>
    {{ input(req, 'entry[body]', 'textarea', {'id' : 'sys-entry-body'}) }}
    {% if errors.entry.body %}<p class="error">{{ errors.entry.body }}</p>{% endif %}
</div>

<h3 class="accordion_head" id="sys-accordion-extend">{{ _('Edit a postscript') }}<span>▼{{ _('Click to open/close') }}</span></h3>
<div {{ ifCookie(req, 'js_entry_hide_extend', 'style="visibility: hidden;"') }}>
    {{ input(req, 'entry[extend]', 'textarea', {'id' : 'sys-entry-extend'}) }}
    {% if errors.entry.extend %}<p class="error">{{ errors.entry.extend }}</p>{% endif %}
</div>

<h3 class="accordion_head" id="sys-accordion-setting">{{ _('Entry settings') }}<span>▼{{ _('Click to open/close') }}</span></h3>
<div {{ ifCookie(req, 'js_entry_hide_setting', 'style="display: none;"') }}>

    {{ include('admin/categories/ajax_add.twig') }}

    <table>
        <tbody>
        <tr>
            <th>{{ _('User tags') }}</th>
            <td>
                <input type="text" id="sys-add-tag-text"/>
                <input type="button" value="{{ _('Add') }}" id="sys-add-tag-button"/>
                <ul id="sys-add-tags"></ul>
                <ul id="sys-use-well-tags">
                    {% for tag in entry_tags %}
                        <li>{{ tag }}</li>
                    {% endfor %}
                </ul>
            </td>
        </tr>
        </tbody>
    </table>

    <table>
        <tbody>
        <tr>
            <th>{{ _('Date and time') }}</th>
            <td>
                {{ input(req, 'entry[posted_at]', 'text', {'class' : 'date-time-picker'}) }}
                {{ _('Date and time of submission will be set when it is not input') }}<br/>
                {% if errors.entry.posted_at %}<p class="error">{{ errors.entry.posted_at }}</p>{% endif %}
            </td>
        </tr>
        <tr>
            <th>{{ _('Post type') }}</th>
            <td>
                {{ input(req, 'entry[open_status]', 'radio', {'options' : open_status_list, 'default' : open_status_open}) }}
                {% if errors.entry.open_status %}<p class="error">{{ errors.entry.open_status }}</p>{% endif %}
            </td>
{'fraction_non_alphanumeric': 0.23368678629690048, 'fraction_numerical': 0.0024469820554649264, 'mean_word_length': 2.1063964534515516, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 137, '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': '4320967', 'n_tokens_mistral': 1732, 'n_tokens_neox': 1622, 'n_words': 350}