Translated Delete action via variable.

This commit is contained in:
Marcus Scholz 2020-10-10 23:40:21 +02:00
parent da60d81e90
commit eea01cd569

View File

@ -15,9 +15,9 @@
<p class="LP-Paragraph">{% translate 'Are you sure you want to delete' %} "{{place.name}}"?</p> <p class="LP-Paragraph">{% translate 'Are you sure you want to delete' %} "{{place.name}}"?</p>
</div> </div>
</div> </div>
{% translate 'Delete' as action %}
<div class="LP-Form__Composition LP-Form__Composition--buttons"> <div class="LP-Form__Composition LP-Form__Composition--buttons">
{% include 'partials/form/submit.html' with referer=request.META.HTTP_REFERER action='Delete' %} {% include 'partials/form/submit.html' with referer=request.META.HTTP_REFERER action=action %}
</div> </div>
</fieldset> </fieldset>
</form> </form>