Improve accessibility

Replace trash-can icon with text
This commit is contained in:
Edgar P. Burkhart 2022-12-26 18:04:16 +01:00
parent 0676b52613
commit 8b859651e8
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 8 additions and 7 deletions

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 0.0.1\n" "Project-Id-Version: 0.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-26 17:59+0100\n" "POT-Creation-Date: 2022-12-26 18:02+0100\n"
"PO-Revision-Date: 2022-12-21 17:30+0100\n" "PO-Revision-Date: 2022-12-21 17:30+0100\n"
"Last-Translator: edpibu <git@edgarpierre.fr>\n" "Last-Translator: edpibu <git@edgarpierre.fr>\n"
"Language-Team: edpibu <git@edgarpierre.fr>\n" "Language-Team: edpibu <git@edgarpierre.fr>\n"
@ -104,7 +104,6 @@ msgid "Search"
msgstr "Rechercher" msgstr "Rechercher"
#: .\main\templates\main\base.html:59 #: .\main\templates\main\base.html:59
#| msgid "Log In"
msgid "Log out" msgid "Log out"
msgstr "Se connecter" msgstr "Se connecter"
@ -121,7 +120,8 @@ msgid "Log In"
msgstr "Se connecter" msgstr "Se connecter"
#: .\main\templates\main\tag\form_buttons.html:4 #: .\main\templates\main\tag\form_buttons.html:4
#: .\main\templates\main\transaction.html:41 #: .\main\templates\main\transaction.html:42
#: .\main\templates\main\transaction.html:43
msgid "Delete" msgid "Delete"
msgstr "Supprimer" msgstr "Supprimer"
@ -129,10 +129,10 @@ msgstr "Supprimer"
msgid "Save" msgid "Save"
msgstr "Enregistrer" msgstr "Enregistrer"
#: .\main\templates\main\transaction.html:50 #: .\main\templates\main\transaction.html:51
msgid "Add invoice" msgid "Add invoice"
msgstr "Ajouter une facture" msgstr "Ajouter une facture"
#: .\main\templates\main\transaction.html:58 #: .\main\templates\main\transaction.html:59
msgid "Add" msgid "Add"
msgstr "Ajouter" msgstr "Ajouter"

View file

@ -31,15 +31,16 @@
<div class="header"> <div class="header">
<strong class="attach center"><i class="fa fa-file"></i></strong> <strong class="attach center"><i class="fa fa-file"></i></strong>
<strong class="name">{% translate "Name" %}</strong> <strong class="name">{% translate "Name" %}</strong>
<strong class="attach center"><i class="fa fa-trash-can"></i></strong> <strong class="attach right"><i class="fa fa-trash-can"></i></strong>
</div> </div>
{% for inv in transaction.invoices %} {% for inv in transaction.invoices %}
<div class="invoice"> <div class="invoice">
<a href="{{ inv.file.url }}"><i class="fa-regular fa-file"></i></a> <a href="{{ inv.file.url }}"><i class="fa-regular fa-file"></i></a>
<a href="{{ inv.file.url }}">{{ inv.name }}</a> <a href="{{ inv.file.url }}">{{ inv.name }}</a>
<a href="{% url 'del_invoice' transaction.id inv.id %}" <a href="{% url 'del_invoice' transaction.id inv.id %}"
class="right"
onclick="return confirm('{% translate "Delete" %} <{{ inv.name }}> ?')"> onclick="return confirm('{% translate "Delete" %} <{{ inv.name }}> ?')">
<i class="fa-regular fa-trash-can"></i> {% translate "Delete" %}
</a> </a>
</div> </div>
{% endfor %} {% endfor %}