<div class="LP-Form__Field LP-Form__Button LP-Input"> <button class="LP-Button">{% if action %}{{ action }}{% else %}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> </a> </div>