decided to use thing/-1 to create a new thing. Tried it on owned first, works so now also can delete owned/<id> as well. Also made sure not to show the delete button when we are only creating a thing

This commit is contained in:
2020-12-04 18:01:54 +11:00
parent cc9e7dff5b
commit ed07d1f9cb
4 changed files with 41 additions and 16 deletions

View File

@@ -18,7 +18,11 @@
<br>
</div class="row">
<div class="form-row col-lg-12">
{{ form.delete( class="btn btn-outline-danger col-lg-2" )}}
{% if 'Create' in page_title %}
{{ form.delete( class="btn btn-outline-danger col-lg-2", style="visibility:hidden" )}}
{% else %}
{{ form.delete( class="btn btn-outline-danger col-lg-2" )}}
{% endif %}
{{ form.submit( class="btn btn-primary col-lg-2" )}}
</div class="form-row">
</form>