diff --git a/templates/bulk.html b/templates/bulk.html index 2a73160..176ad29 100644 --- a/templates/bulk.html +++ b/templates/bulk.html @@ -1,32 +1,32 @@ {% extends "base.html" %} {% 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 }}

{{ message('bulk_heading') }}

{{ message('bulk_format_help') }}

{% if csrf_error %}
{{ message( 'csrf_warning' ) }}
{% endif %} {% if parse_error %}
{{ parse_error }}
{% endif %}
{% endblock main %} diff --git a/templates/edit.html b/templates/edit.html index df9a3db..1726781 100644 --- a/templates/edit.html +++ b/templates/edit.html @@ -1,96 +1,96 @@ {% extends "base.html" %} {% macro lexeme_form_link(wiki, lexeme_id, form, classes=[]) -%} {% 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, link_classes=[]) %}
  • {{ message_with_kwargs( 'edit_form_list_item', form_link=lexeme_form_link(wiki, lexeme_id, form, classes=link_classes), 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, template_language_code, representation_language_code) }}
    {% endfor %}
    {% endblock main %} diff --git a/templates/template.html b/templates/template.html index fcefbea..465c6f4 100644 --- a/templates/template.html +++ b/templates/template.html @@ -1,73 +1,73 @@ {% 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, template_name=template['@template_name'], form_representations=submitted_form_representations) | 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 %}