forked from mirrors/bookwyrm
Fixes accessibility bugs
This commit is contained in:
parent
13e153412e
commit
4720481219
2 changed files with 6 additions and 26 deletions
|
@ -6,7 +6,7 @@
|
||||||
<h2 class="title is-4">{% trans "What are you reading?" %}</h2>
|
<h2 class="title is-4">{% trans "What are you reading?" %}</h2>
|
||||||
<form class="field has-addons" method="get" action="{% url 'get-started-books' %}">
|
<form class="field has-addons" method="get" action="{% url 'get-started-books' %}">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<input type="text" name="query" value="{{ request.GET.query }}" class="input" placeholder="{% trans 'Search for a book' %}" aria-lable="{% trans 'Search for a book' %}">
|
<input type="text" name="query" value="{{ request.GET.query }}" class="input" placeholder="{% trans 'Search for a book' %}" aria-label="{% trans 'Search for a book' %}">
|
||||||
{% if request.GET.query and not book_results %}
|
{% if request.GET.query and not book_results %}
|
||||||
<p class="help">{% blocktrans %}Sorry, books were found. You can add books when you start using {{ site_name }}{% endblocktrans %}</p>
|
<p class="help">{% blocktrans %}Sorry, books were found. You can add books when you start using {{ site_name }}{% endblocktrans %}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form class="block">
|
<form class="block" name="add-books" method="post" action="{% url 'get-started-books' %}">
|
||||||
<h3 class="title is-5">{% trans "Suggested Books" %}</h3>
|
<h3 class="title is-5">{% trans "Suggested Books" %}</h3>
|
||||||
<div class="columns scroll-x">
|
<div class="columns scroll-x">
|
||||||
{% if book_results %}
|
{% if book_results %}
|
||||||
|
@ -29,17 +29,7 @@
|
||||||
<p class="help mb-0">Search results</p>
|
<p class="help mb-0">Search results</p>
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
{% for book in book_results %}
|
{% for book in book_results %}
|
||||||
<div class="column is-narrow is-clipped">
|
{% include 'get_started/book_preview.html' %}
|
||||||
{% include 'snippets/book_cover.html' with book=book %}
|
|
||||||
<div class="select is-small">
|
|
||||||
<select>
|
|
||||||
<option>-</option>
|
|
||||||
{% for shelf in request.user.shelf_set.all %}
|
|
||||||
<option>{{ shelf.name }}</option>
|
|
||||||
{% endfor %}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -50,17 +40,7 @@
|
||||||
</p>
|
</p>
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
{% for book in popular_books %}
|
{% for book in popular_books %}
|
||||||
<div class="column is-narrow is-clipped">
|
{% include 'get_started/book_preview.html' %}
|
||||||
{% include 'snippets/book_cover.html' with book=book %}
|
|
||||||
<div class="select is-small">
|
|
||||||
<select>
|
|
||||||
<option>-</option>
|
|
||||||
{% for shelf in request.user.shelf_set.all %}
|
|
||||||
<option>{{ shelf.name }}</option>
|
|
||||||
{% endfor %}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% with site_name=site.name %}
|
{% with site_name=site.name %}
|
||||||
<div class="modal is-active" role="dialog" aria-modal="true">
|
<div class="modal is-active" role="dialog" aria-modal="true" aria-labelledby="get-started-header">
|
||||||
<div class="modal-background"></div>
|
<div class="modal-background"></div>
|
||||||
<div class="modal-card is-fullwidth">
|
<div class="modal-card is-fullwidth">
|
||||||
<header class="modal-card-head">
|
<header class="modal-card-head">
|
||||||
<h1 class="modal-card-title">
|
<h1 class="modal-card-title" id="get-started-header">
|
||||||
{% trans "Getting Started" %}
|
{% trans "Getting Started" %}
|
||||||
</h1>
|
</h1>
|
||||||
<button class="delete" aria-label="close"></button>
|
<button class="delete" aria-label="close"></button>
|
||||||
|
|
Loading…
Reference in a new issue