Compare commits
2 Commits
6be947706e
...
240bb3fc25
| Author | SHA1 | Date |
|---|---|---|
|
|
240bb3fc25 | 6 days ago |
|
|
5102e4c295 | 6 days ago |
@ -0,0 +1,66 @@ |
|||||||
|
{% extends "admin/base_site.html" %} |
||||||
|
{% load static %} |
||||||
|
|
||||||
|
{% block extrahead %} |
||||||
|
{{ block.super }} |
||||||
|
{{ form.media }} |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block content %} |
||||||
|
<h1>{{ title }}</h1> |
||||||
|
|
||||||
|
<p>You are about to set the club for the following {{ events|length }} event(s):</p> |
||||||
|
|
||||||
|
<div style="margin: 20px 0; padding: 15px; background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 4px;"> |
||||||
|
<ul style="margin: 0; padding-left: 20px;"> |
||||||
|
{% for event in events %} |
||||||
|
<li> |
||||||
|
<strong>{{ event.name }}</strong> |
||||||
|
{% if event.club %} |
||||||
|
(currently: {{ event.club.name }}) |
||||||
|
{% else %} |
||||||
|
(currently: No club assigned) |
||||||
|
{% endif %} |
||||||
|
</li> |
||||||
|
{% endfor %} |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
|
||||||
|
<form method="post"> |
||||||
|
{% csrf_token %} |
||||||
|
|
||||||
|
<div style="margin: 20px 0;"> |
||||||
|
<div class="form-row"> |
||||||
|
{{ form.club.errors }} |
||||||
|
<div> |
||||||
|
<label for="{{ form.club.id_for_label }}">{{ form.club.label }}:</label> |
||||||
|
<div class="help">{{ form.club.help_text }}</div> |
||||||
|
{{ form.club }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div style="margin-top: 20px;"> |
||||||
|
<input type="submit" name="apply" value="Set Club" class="button default" style=" |
||||||
|
background-color: #417690; |
||||||
|
color: white; |
||||||
|
padding: 10px 20px; |
||||||
|
border: none; |
||||||
|
border-radius: 4px; |
||||||
|
cursor: pointer; |
||||||
|
font-size: 14px; |
||||||
|
margin-right: 10px; |
||||||
|
"/> |
||||||
|
|
||||||
|
<a href="{% url 'admin:tournaments_event_changelist' %}" class="button" style=" |
||||||
|
display: inline-block; |
||||||
|
padding: 10px 20px; |
||||||
|
background-color: #6c757d; |
||||||
|
color: white; |
||||||
|
text-decoration: none; |
||||||
|
border-radius: 4px; |
||||||
|
font-size: 14px; |
||||||
|
">Cancel</a> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
{% endblock %} |
||||||
Loading…
Reference in new issue