diff --git a/templates/edit.html b/templates/edit.html index ff686ca..a1e0475 100644 --- a/templates/edit.html +++ b/templates/edit.html @@ -1,90 +1,91 @@ {% extends "base.html" %} {% macro lexeme_form_link(wiki, lexeme_id, form) -%} {% for representation in form.representations.values() -%} {{ representation | term_span }} {%- if not loop.last %}/{% endif -%} {%- endfor %} ({{ form.id }}) {%- endmacro %} {% macro lexeme_form_list_item(wiki, lexeme_id, form) %}
  • {{ message_with_kwargs( 'edit_form_list_item', form_link=lexeme_form_link(wiki, lexeme_id, form), grammatical_feature_labels=form.grammaticalFeatures_labels | map('term_span') if form.grammaticalFeatures_labels else [message( 'no_grammatical_features' )], statements=form.get('claims', {}) | length ) | safe }}
  • {% endmacro %} {% block head %} {{ super() }} {% endblock %} {% block main_tag_attributes %}{{ super() }} lang="{{ template.language_code }}" dir="{{ template.language_code | text_direction }}"{% endblock main_tag_attributes %} {% block main %}

    {{ template.label }}

    {% for lemma in lemmas.values() -%} {{ lemma | term_span }} {%- if not loop.last %}/{% endif -%} {%- endfor %} ({{ template.lexeme_id }})

    {% if not lexeme_matches_template %}
    {{ message( 'edit_mismatch_warning' ) }}
    {% endif %}
    {{ message( 'edit_general' ) }}
    {% if csrf_error %}
    {{ message( 'csrf_warning' ) }}
    {% endif %} {% if template.ambiguous_lexeme_forms %}
    {{ message_with_kwargs( 'edit_ambiguous_warning', forms=template.ambiguous_lexeme_forms | length ) }}
    {% endif %} {% if template.unmatched_lexeme_forms %}
    {{ message_with_kwargs( 'edit_unmatched_warning', forms=template.unmatched_lexeme_forms | length ) }}
    {% endif %}
    {% for form in template.forms %} {% if form.section_break %}

    {% endif %}
    {{ form.label }}
    {{ form | form2input(loop.first) }}
    {% endfor %} +
    {% endblock main %} diff --git a/templates/template.html b/templates/template.html index d393ec7..2dcb338 100644 --- a/templates/template.html +++ b/templates/template.html @@ -1,70 +1,71 @@ {% extends "base.html" %} {% block head %} {{ super() }} {% endblock %} {% block main_tag_attributes %}{{ super() }} lang="{{ template.language_code }}" dir="{{ template.language_code | text_direction }}" data-template='{{ template | tojson }}'{% endblock main_tag_attributes %} {% block main %}

    {{ template.label }}

    {% if advanced %}
    {{ message( 'advanced_general' ) }}
    • {{ message( 'advanced_lexeme_id' ) }}
    • {{ message( 'advanced_partial_forms' ) }}
    {% endif %} {% if csrf_error %}
    {{ message( 'csrf_warning' ) }}
    {% endif %} {{ duplicates | render_duplicates(template.language_code, actionable=True) | safe }}
    {% if advanced %} {% endif %}
    {% for form in template.forms %} {% if form.section_break %}

    {% endif %}
    {{ form.label }}
    {{ form | form2input(loop.first) }}
    {% endfor %} +
    {% if template.generated_via %}
    {% endif %} {% if duplicates %} {{ render_no_duplicate(template.language_code) | safe }} {% endif %} {% if not advanced %} {% endif %} {% if can_use_bulk_mode %} {% endif %} {% endblock main %}