Added delete functionality for events. Additionally, made improvements and fixed to the validation for event creation.
This commit is contained in:
parent
11abbb8a64
commit
7b2ac3ec38
7 changed files with 188 additions and 33 deletions
27
allauthdemo/templates/polls/del_event.html
Executable file
27
allauthdemo/templates/polls/del_event.html
Executable file
|
@ -0,0 +1,27 @@
|
|||
{% extends "bases/bootstrap-with-nav.html" %}
|
||||
{% load staticfiles %}
|
||||
{% load bootstrap3 %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container">
|
||||
<div class="page-header">
|
||||
<h3>Confirm Event Deletion</h3>
|
||||
</div>
|
||||
<div class="row">
|
||||
<form method="POST" action="{% url 'polls:del-event' event_id %}" novalidate>
|
||||
{% csrf_token %}
|
||||
<label>Are you sure you want to delete the event '{{ event_title }}' ?</label>
|
||||
<hr/>
|
||||
<div class="confirm-footer">
|
||||
<a href="{% url 'polls:index' %}">
|
||||
<span class="btn btn-default">Cancel</span>
|
||||
</a>
|
||||
<input type="submit" class="btn btn-danger delete" value="Delete"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Reference in a new issue