forked from mirrors/bookwyrm
Clearer form logic in edit book page
This commit is contained in:
parent
e31783ef6e
commit
6f8ca302e5
1 changed files with 12 additions and 5 deletions
|
@ -42,11 +42,18 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if book %}
|
<form
|
||||||
<form class="block" name="edit-book" action="{{ book.local_path }}/{% if confirm_mode %}confirm{% else %}edit{% endif %}" method="post" enctype="multipart/form-data">
|
class="block"
|
||||||
{% else %}
|
{% if book %}
|
||||||
<form class="block" name="create-book" action="/create-book{% if confirm_mode %}/confirm{% endif %}" method="post" enctype="multipart/form-data">
|
name="edit-book"
|
||||||
{% endif %}
|
action="{{ book.local_path }}/{% if confirm_mode %}confirm{% else %}edit{% endif %}"
|
||||||
|
{% else %}
|
||||||
|
name="create-book"
|
||||||
|
action="/create-book{% if confirm_mode %}/confirm{% endif %}"
|
||||||
|
{% endif %}
|
||||||
|
method="post"
|
||||||
|
enctype="multipart/form-data"
|
||||||
|
>
|
||||||
|
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% if confirm_mode %}
|
{% if confirm_mode %}
|
||||||
|
|
Loading…
Reference in a new issue