Skip to content
Snippets Groups Projects
Commit 57435ce4 authored by Tobias Jülg's avatar Tobias Jülg
Browse files

Fix apply button and add cancel button

* cancel button for adding/editing election options
* apply button did not render text as html was wrongly formatted
parent bd7eb21a
No related branches found
No related tags found
Loading
Pipeline #1564 passed with warnings
......@@ -74,6 +74,8 @@
</div>
{% endif %}
<button type="submit" class="btn btn-primary btn-block">Submit</button>
<a class="btn btn-secondary btn-block"
href="{% url 'management:election' election.pk %}">Cancel</a>
</form>
</div>
</div>
......
......@@ -8,9 +8,7 @@
<a class="btn btn-danger float-right ml-3" href="{% url 'vote:delete_own_application' election.pk %}"> Delete
application </a>
{% endif %}
<a class="btn btn-dark float-right" href="{% url 'vote:apply' election.pk %}"> {% if edit %} Edit application {%
else %}
Apply {% endif %}</a>
<a class="btn btn-dark float-right" href="{% url 'vote:apply' election.pk %}"> {% if edit %} Edit application {% else %} Apply {% endif %}</a>
{% endif %}
</h4>
{% if election.end_date %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment