fix: Add value attributes back to buttons to make the logic work (#4617)

This commit is contained in:
Lars Eggert 2022-10-20 19:57:36 +03:00 committed by GitHub
parent 160ca9286a
commit b1bafff2fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,9 +229,10 @@
</a>
{% endif %}
{% if liaison.state.slug == 'pending' and can_edit %}
<button class="btn btn-primary" type="submit" name="approved">Approve</button>
<button class="btn btn-primary" type="submit" value="Approve" name="approved">Approve</button>
<button class="btn btn-primary"
type="submit"
value="Mark as Dead"
name="dead">Mark as dead</button>
{% endif %}
{% if liaison.state.slug == 'posted' and user|has_role:"Secretariat" %}
@ -243,7 +244,8 @@
{% if liaison.state.slug == 'dead' and can_edit %}
<button class="btn btn-primary"
type="submit"
value="Resurrect"
name="resurrect">Resurrect</button>
{% endif %}
{% if liaison.state.slug == 'pending' and can_edit or liaison.state.slug == 'dead' and can_edit %}</form>{% endif %}
{% endblock %}
{% endblock %}