Set up landmarks on more templates

pull/5305/head
Thibaud Colas 2019-05-14 12:15:01 +01:00
rodzic b32bb7383d
commit 96e86a0375
27 zmienionych plików z 41 dodań i 41 usunięć

Wyświetl plik

@ -10,8 +10,8 @@
{% endblock %}
{% block furniture %}
<div class="content-wrapper">
<main class="content-wrapper" role="main">
<h1>{% trans "Password change successful" %}</h1>
<p><a href="{% url 'wagtailadmin_login' %}" class="button button-primary">{% trans "Login" %}</a></p>
</div>
</main>
{% endblock %}

Wyświetl plik

@ -16,7 +16,7 @@
{% endblock %}
{% block furniture %}
<div class="content-wrapper">
<main class="content-wrapper" role="main">
{% if validlink %}
<form method="post" novalidate>
{% csrf_token %}
@ -68,5 +68,5 @@
<a href="{% url 'wagtailadmin_password_reset' %}" class="button">{% trans 'Request a new password reset' %}</a>
{% endif %}
</div>
</main>
{% endblock %}

Wyświetl plik

@ -10,8 +10,8 @@
{% endblock %}
{% block furniture %}
<div class="content-wrapper">
<main class="content-wrapper" role="main">
<h1>{% trans "Check your email" %}</h1>
<p>{% trans "A link to reset your password has been emailed to you if an account exists for this address." %}</p>
</div>
</main>
{% endblock %}

Wyświetl plik

@ -10,7 +10,7 @@
{% endblock %}
{% block furniture %}
<div class="content-wrapper">
<main class="content-wrapper" role="main">
{% if form.non_field_errors %}
<div class="messages">
<ul>
@ -44,5 +44,5 @@
</li>
</ul>
</form>
</div>
</main>
{% endblock %}

Wyświetl plik

@ -10,7 +10,7 @@
{% endblock %}
{% block content %}
<header class="merged nice-padding">
<header class="merged nice-padding" role="banner">
<div class="row row-flush">
<div class="col1">
<div class="avatar"><img src="{% avatar_url user %}" alt="" /></div>

Wyświetl plik

@ -10,7 +10,7 @@
{% endblock %}
{% block furniture %}
<div class="content-wrapper">
<main class="content-wrapper" role="main">
{% if messages or form.errors %}
<div class="messages">
<ul>
@ -88,7 +88,7 @@
{% block below_login %}{% endblock %}
</div>
</main>
{% endblock %}
{% block extra_js %}

Wyświetl plik

@ -7,7 +7,7 @@
{% block content %}
{% page_permissions page as page_perms %}
<header class="merged tab-merged">
<header class="merged tab-merged" role="banner">
{% explorer_breadcrumb page %}
<div class="row row-flush">

Wyświetl plik

@ -4,7 +4,7 @@
{% block bodyclass %}page-explorer {% if ordering == 'ord' %}reordering{% endif %}{% endblock %}
{% block content %}
<header class="merged no-border nice-padding no-v-padding">
<header class="merged no-border nice-padding no-v-padding" role="banner">
<h1 class="visuallyhidden">Explorer</h1>
{% explorer_breadcrumb parent_page %}

Wyświetl plik

@ -4,7 +4,7 @@
Pagination for page listings. Used by the `{% paginate %}` template tag.
{% endcomment %}
<div class="pagination">
<nav class="pagination" role="navigation" aria-label="{% trans 'Pagination' %}">
<p>{% blocktrans with page_number=page.number num_pages=paginator.num_pages %}
Page {{ page_number }} of {{ num_pages }}.
{% endblocktrans %}</p>
@ -20,4 +20,4 @@ Pagination for page listings. Used by the `{% paginate %}` template tag.
{% endif %}
</li>
</ul>
</div>
</nav>

Wyświetl plik

@ -2,7 +2,7 @@
{% load i18n wagtailadmin_tags %}
{% block titletag %}{% blocktrans with title=page_to_move.get_admin_display_title %}Select a new parent page for {{ title }}{% endblocktrans %}{% endblock %}
{% block content %}
<header class="nice-padding">
<header class="nice-padding" role="banner">
<h1 class="icon icon-doc-empty-inverse">{% blocktrans with title=page_to_move.get_admin_display_title %}Select a new parent page for <span>{{ title }}</span>{% endblocktrans %}</h1>
</header>

Wyświetl plik

@ -4,7 +4,7 @@
{% block titletag %}{% trans 'Preview error' %}{% endblock %}
{% block content %}
<header class="nice-padding">
<header class="nice-padding" role="banner">
<h1>{% trans 'Preview error' %}</h1>
</header>
<div class="nice-padding">

Wyświetl plik

@ -12,7 +12,7 @@
{% search_other %}
{% if pages.object_list.supports_facet %}
<nav class="listing-filter">
<nav class="listing-filter" role="navigation">
<h3 class="filter-title">{% trans "Page types" %}</h3>
<ul class="filter-options">
{% if not selected_content_type %}

Wyświetl plik

@ -1,7 +1,7 @@
{% load i18n %}
{% load wagtailadmin_tags %}
<nav class="pagination" aria-label="{% trans 'Pagination' %}">
<nav class="pagination" role="navigation" aria-label="{% trans 'Pagination' %}">
<p>{% blocktrans with page_num=items.number total_pages=items.paginator.num_pages %}Page {{ page_num }} of {{ total_pages }}.{% endblocktrans %}</p>
<ul>
<li class="prev">

Wyświetl plik

@ -1,6 +1,6 @@
{% load i18n %}
<nav aria-label="{% trans 'Breadcrumb' %}">
<nav role="navigation" aria-label="{% trans 'Breadcrumb' %}">
<ul class="breadcrumb">
{% for page in pages %}
{% if page.is_root %}

Wyświetl plik

@ -17,7 +17,7 @@
{% url linkurl as url_to_use %}
{% endif %}
<nav class="pagination" aria-label="{% trans 'pagination' %}">
<nav class="pagination" role="navigation" aria-label="{% trans 'Pagination' %}">
<p>{% blocktrans with page_num=items.number total_pages=items.paginator.num_pages %}Page {{ page_num }} of {{ total_pages }}.{% endblocktrans %}</p>
<ul>
<li class="prev">

Wyświetl plik

@ -1,5 +1,5 @@
{% load i18n %}
<nav class="listing-filter">
<nav class="listing-filter" role="navigation">
<h3 class="filter-title">{% trans "Other searches" %}</h3>
<ul class="filter-options">
{{ options_html }}

Wyświetl plik

@ -76,7 +76,7 @@
</script>
{% endblock %}
{% block content %}
<header class="nice-padding">
<header class="nice-padding" role="banner">
<form action="" method="get" novalidate>
<div class="row">
<div class="left">

Wyświetl plik

@ -123,7 +123,7 @@
}
div.pagination {
.pagination {
margin-top: 3em;
border-top: 1px dashed #d9d9d9;
padding: 2em 1em 0;
@ -161,12 +161,12 @@ p.no-results {
}
}
div.pagination {
.pagination {
padding-left: 50px;
padding-right: 50px;
}
div.pagination.col9 {
.pagination.col9 {
width: 73.5%;
}
@ -184,7 +184,7 @@ p.no-results {
width: 21%;
}
div.pagination.col9 {
.pagination.col9 {
width: 77.5%;
}
}

Wyświetl plik

@ -30,7 +30,7 @@
{% block form %}{{ edit_handler.render_form_content }}{% endblock %}
{% block footer %}
<footer>
<footer role="contentinfo">
<ul>
<li class="actions">
{% block form_actions %}

Wyświetl plik

@ -14,7 +14,7 @@
{% block content %}
{% block header %}
<header class="nice-padding hasform">
<header class="nice-padding hasform" role="banner">
<div class="row header-title">
<div class="left">
<div class="col">
@ -74,7 +74,7 @@
</div>
{% block pagination %}
<div class="pagination {% if view.has_filters and all_count %}col9{% else %}col12{% endif %}">
<nav class="pagination {% if view.has_filters and all_count %}col9{% else %}col12{% endif %}" role="navigation" aria-label="{% trans 'Pagination' %}">
<p>{% blocktrans with page_obj.number as current_page and paginator.num_pages as num_pages %}Page {{ current_page }} of {{ num_pages }}.{% endblocktrans %}</p>
{% if paginator.num_pages > 1 %}
<ul>
@ -82,7 +82,7 @@
{% pagination_link_next page_obj view %}
</ul>
{% endif %}
</div>
</nav>
{% endblock %}
{% endblock %}

Wyświetl plik

@ -42,7 +42,7 @@
{% block footer %}
{% if buttons %}
<footer>
<footer role="contentinfo">
<div class="button-group">
{% for button in buttons %}
{% include "modeladmin/includes/button.html" %}

Wyświetl plik

@ -3,7 +3,7 @@
{% block titletag %}{% blocktrans %}Editing {{ setting_type_name}} - {{ instance }}{% endblocktrans %}{% endblock %}
{% block bodyclass %}menu-settings{% endblock %}
{% block content %}
<header class="nice-padding {% if tabbed %}merged tab-merged{% endif %}">
<header class="nice-padding {% if tabbed %}merged tab-merged{% endif %}" role="banner">
<div class="row">
<div class="left">
<div class="col">
@ -30,7 +30,7 @@
{% csrf_token %}
{{ edit_handler.render_form_content }}
<footer>
<footer role="contentinfo">
<ul>
<li class="actions dropdown dropup match-width">
<button type="submit" class="button button-longrunning" tabindex="3" data-clicked-text="{% trans 'Saving…' %}"><span class="icon icon-spinner"></span><em>{% trans 'Save' %}</em></button>

Wyświetl plik

@ -18,7 +18,7 @@
<div class="nice-padding">
<h2>Contents</h2>
<nav>
<nav role="navigation">
<ul class="unlist">
<li><a href="#palette">Colour palette</a></li>
<li><a href="#accessiblecolours">Accessible colour combinations</a></li>
@ -675,7 +675,7 @@
</div>
<p>These can also have an inverted theme:</p>
<header class="nice-padding">
<header class="nice-padding" role="banner">
<div class="c-dropdown t-inverted" data-dropdown="">
<a class="c-dropdown__button u-btn-current">
More

Wyświetl plik

@ -1,6 +1,6 @@
{% templatetag openblock %} load i18n wagtailcore_tags {% templatetag closeblock %}
<header class="header">
<header class="header" role="banner">
<div class="logo">
<a href="https://wagtail.io/">
<svg class="figure-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 342.5 126.2"><title>{% templatetag openblock %} trans "Visit the Wagtail website" {% templatetag closeblock %}</title><path fill="#FFF" d="M84 1.9v5.7s-10.2-3.8-16.8 3.1c-4.8 5-5.2 10.6-3 18.1 21.6 0 25 12.1 25 12.1L87 27l6.8-8.3c0-9.8-8.1-16.3-9.8-16.8z"/><circle cx="85.9" cy="15.9" r="2.6"/><path d="M89.2 40.9s-3.3-16.6-24.9-12.1c-2.2-7.5-1.8-13 3-18.1C73.8 3.8 84 7.6 84 7.6V1.9C80.4.3 77 0 73.2 0 59.3 0 51.6 10.4 48.3 17.4L9.2 89.3l11-2.1-20.2 39 14.1-2.5L24.9 93c30.6 0 69.8-11 64.3-52.1z"/><path d="M102.4 27l-8.6-8.3L87 27z"/><path fill="#FFF" d="M30 84.1s1-.2 2.8-.6c1.8-.4 4.3-1 7.3-1.8 1.5-.4 3.1-.9 4.8-1.5 1.7-.6 3.5-1.2 5.2-2 1.8-.7 3.6-1.6 5.4-2.6 1.8-1 3.5-2.1 5.1-3.4.4-.3.8-.6 1.2-1l1.2-1c.7-.7 1.5-1.4 2.2-2.2.7-.7 1.3-1.5 1.9-2.3l.9-1.2.4-.6.4-.6c.2-.4.5-.8.7-1.2.2-.4.4-.8.7-1.2l.3-.6.3-.6c.2-.4.4-.8.5-1.2l.9-2.4c.2-.8.5-1.6.7-2.3.2-.7.3-1.5.5-2.1.1-.7.2-1.3.3-2 .1-.6.2-1.2.2-1.7.1-.5.1-1 .2-1.5.1-1.8.1-2.8.1-2.8l1.6.1s-.1 1.1-.2 2.9c-.1.5-.1 1-.2 1.5-.1.6-.1 1.2-.3 1.8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1.3.1-2.4-.4-3.4-1.4zm7.2 43.7h-7.7V47.5h7.7v36.4zM342.5 83.9h-7.7V33.1h7.7v50.8z"/></g></svg>
@ -27,7 +27,7 @@
<p>{% templatetag openblock %} trans 'Please feel free to <a href="https://github.com/wagtail/wagtail/wiki/Slack">join our community on Slack</a>, or get started with one of the links below.' {% templatetag closeblock %}</p>
</div>
</main>
<footer class="footer">
<footer class="footer" role="contentinfo">
<a class="option option-one" href="{% templatetag openblock %} wagtail_documentation_path {% templatetag closeblock %}/">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><path d="M9 21c0 .5.4 1 1 1h4c.6 0 1-.5 1-1v-1H9v1zm3-19C8.1 2 5 5.1 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .5.4 1 1 1h6c.6 0 1-.5 1-1v-2.3c1.8-1.3 3-3.4 3-5.7 0-3.9-3.1-7-7-7zm2.9 11.1l-.9.6V16h-4v-2.3l-.9-.6C7.8 12.2 7 10.6 7 9c0-2.8 2.2-5 5-5s5 2.2 5 5c0 1.6-.8 3.2-2.1 4.1z"/></svg>
<div>

Wyświetl plik

@ -9,7 +9,7 @@
{% csrf_token %}
{{ edit_handler.render_form_content }}
<footer>
<footer role="contentinfo">
<ul>
<li class="actions">
<div class="dropdown dropup dropdown-button match-width">

Wyświetl plik

@ -12,7 +12,7 @@
<form action="{% url 'wagtailsnippets:edit' model_opts.app_label model_opts.model_name instance.pk|admin_urlquote %}" method="POST" novalidate{% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
{% csrf_token %}
{{ edit_handler.render_form_content }}
<footer>
<footer role="contentinfo">
<ul>
<li class="actions">
<div class="dropdown dropup dropdown-button match-width">

Wyświetl plik

@ -18,7 +18,7 @@
{% block content %}
<header class="nice-padding">
<header class="nice-padding" role="banner">
<div class="row row-flush">
<div class="left col6 header-title">
<h1 class="icon icon-snippet">