<commit_before>{% from "macros/form.htm" import render_field, render_checkbox, render_button %}

{% extends "content.htm" %}

{% block content %}

	<form action="" method="post" name="edit_navigation_entry">
		<fieldset>
			<legend>
				{% if entry %}
					Navigatie item bewerken
				{% else %}
					Navigatie item aanmaken
				{% endif %}
			</legend>

			{{ form.csrf_token }}

			{{ render_field(form.title) }}
			{{ render_field(form.url) }}
			{{ render_checkbox(form.external) }}
			{{ render_checkbox(form.activity_list) }}

			<input type="hidden" name="parent_id" value="{{ request.args.get("parent_id") }}">

			{{ render_button(form.submit)}}
		</fieldset>
	</form>

	{% if entry and entry.children.count() == 0 %}
        <a class="btn btn-danger" href="{{ url_for('navigation.delete',
            entry_id=entry.id) }}">Verwijderen</a>
        {% if not entry.external and not entry.activity_list %}
        <a class="btn btn-danger" href="{{ url_for('navigation.delete',
            entry_id=entry.id, inc_page=1) }}">Menu-item en pagina
                verwijderen</a>
        {% endif %}
	{% endif %}

{% endblock %}<commit_msg>Updated navigation template form for dual language<commit_after>{% from "macros/form.htm" import render_field, render_checkbox, render_submit %}

{% extends "content.htm" %}

{% block content %}

    <form action="" method="post" name="edit_navigation_entry">
        <fieldset>
            <legend>
                {% if entry %}
                    {{_('Create')}}
                {% else %}
                    {{_('Edit')}}
                {% endif %}
                {{_('Navigation entry')}}
            </legend>

            {{ form.csrf_token }}

            {{ render_field(form.nl_title) }}
            {{ render_field(form.en_title) }}
            {{ render_field(form.url) }}
            {{ render_checkbox(form.external) }}
            {{ render_checkbox(form.activity_list) }}

            <input type="hidden" name="parent_id"
            value="{{ request.args.get("parent_id") }}">

            {{ render_submit(_('Submit'))}}
        </fieldset>
    </form>

    {% if entry and entry.children.count() == 0 %}
        <a class="btn btn-danger" href="{{ url_for('navigation.delete',
            entry_id=entry.id) }}">
            {{_('Delete')}}
        </a>
        {% if not entry.external and not entry.activity_list %}
            <a class="btn btn-danger"
                href="{{ url_for('navigation.delete', entry_id=entry.id, inc_page=1) }}">
                {{_('Delete menu item and pagina')}}
            </a>
        {% endif %}
    {% endif %}

{% endblock %}
{'fraction_non_alphanumeric': 0.17033383915022762, 'fraction_numerical': 0.0015174506828528073, 'mean_word_length': 2.275776397515528, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '5092586', 'n_tokens_mistral': 889, 'n_tokens_neox': 774, 'n_words': 154}