Translated Submit and Create buttons.

This commit is contained in:
2020-10-11 00:26:10 +02:00
parent f95c7973d7
commit 475a255851
3 changed files with 30 additions and 20 deletions

View File

@@ -1,8 +1,9 @@
{% load i18n %}
<div class="LP-Form__Field LP-Form__Button LP-Input">
<button class="LP-Button">{% if action %}{{ action }}{% else %}Submit{% endif %}</button>
<button class="LP-Button">{% if action %}{{ action }}{% else %}{% trans 'Submit' %}{% endif %}</button>
</div>
<div class="LP-Form__Field LP-Form__Button LP-Input">
<a class="LP-Link" href="{% if referer %}{{ referer }}{% else %}{% url 'lostplaces_home' %}{% endif %}">
<button type="button" class="LP-Button LP-Button--cancel">Cancel</button>
<button type="button" class="LP-Button LP-Button--cancel">{% trans 'Cancel' %}</button>
</a>
</div>