Hide secondary save button in confirm mode

This commit is contained in:
Mouse Reeve 2021-03-08 14:11:08 -08:00
parent 500394fc52
commit a29d6a5f16

View file

@ -72,7 +72,6 @@
<hr class="block"> <hr class="block">
{% endif %} {% endif %}
<fieldset>
<input type="hidden" name="last_edited_by" value="{{ request.user.id }}"> <input type="hidden" name="last_edited_by" value="{{ request.user.id }}">
<div class="columns"> <div class="columns">
<div class="column"> <div class="column">
@ -181,11 +180,12 @@
</div> </div>
</div> </div>
{% if not confirm_mode %}
<div class="block"> <div class="block">
<button class="button is-primary" type="submit">{% trans "Save" %}</button> <button class="button is-primary" type="submit">{% trans "Save" %}</button>
<a class="button" href="/book/{{ book.id }}">{% trans "Cancel" %}</a> <a class="button" href="/book/{{ book.id }}">{% trans "Cancel" %}</a>
</div> </div>
</fieldset> {% endif %}
</form> </form>
{% endblock %} {% endblock %}