Started lineup page

This commit is contained in:
2021-11-09 21:25:06 -06:00
parent fa9a51509a
commit d448c58b97
4 changed files with 6 additions and 9 deletions

View File

@@ -1,9 +1,4 @@
{% extends 'base.html' %}
{% block title %} {{ title }} {% endblock %}
{% block content %}
{% extends 'base.html' %}{% block title %} {{ title }} {% endblock %}{% block content %}
<h1>{{ title }}</h1>
<ol class="list-group">
@@ -13,7 +8,7 @@
{{ event.start|date:"l, F j, Y g:i A" }} <br>
{{ event.venue.name }} <br>
<a class="btn btn-primary btn-sm" href="{% url 'edit event' event.id%}" role="button">Edit Event Details</a>
<a class="btn btn-primary btn-sm" href="#" role="button">Edit Lineup</a>
<a class="btn btn-primary btn-sm" href="{% url 'edit lineup' event.id%}" role="button">Edit Lineup</a>
</li>
{% endfor %}
</ol>

View File

@@ -25,7 +25,7 @@ def edit(request, id=0):
# ...
# redirect to a new URL:
new_event, did_create = Event.objects.update_or_create(pk=id, defaults=form.cleaned_data)
return render(request, 'success.html', {'call_back':'players list'})
return render(request, 'success.html', {'call_back':'schedule'})
# if a GET (or any other method) we'll create a blank form
else: