Munch simpler solution using link-button.
This commit is contained in:
@@ -10,12 +10,14 @@
|
||||
<legend class="LP-Form__Legend">Place löschen</legend>
|
||||
{% csrf_token %}
|
||||
<div class="LP-Form__Composition LP-Form__Composition--breakable">
|
||||
<p class="LP-Paragraph">Are you sure you want to delete "{{place.name}}"?</p>
|
||||
<div class="LP-Form__Composition">
|
||||
<input type="submit" class="LP-Button LP-Button--cancel" name="cancel" value="Cancel"/>
|
||||
<input type="submit" class="LP-Button" name="Delete" value="Delete"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<p class="LP-Paragraph">Are you sure you want to delete "{{place.name}}"?</p>
|
||||
<div class="LP-Form__Composition">
|
||||
<a href="{% url 'place_detail' pk=place.pk %}"
|
||||
<button class="LP-Button LP-Button--cancel">Cancel</button>
|
||||
</a>
|
||||
<input type="submit" class="LP-Button" value="Delete"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
{% endblock maincontent %}
|
||||
|
Reference in New Issue
Block a user