Fix little errors
This commit is contained in:
@ -33,7 +33,7 @@
|
||||
});
|
||||
</script>
|
||||
<header class="hero">
|
||||
<a class="hero-body is-flex is-flex-direction-column has-text-black" href="{% url 'home' %}">
|
||||
<a class="hero-body is-flex is-flex-direction-column has-text-black" href="{% url 'news' %}">
|
||||
<span class="title is-2 mx-auto">Konkurs Matematyczny</span>
|
||||
<span class="subtitle is-4 mx-auto">o Puchar Dyrektora V Liceum Ogólnokształcącego w Bielsku-Białej</span>
|
||||
</a>
|
||||
@ -50,6 +50,7 @@
|
||||
<div id="navbar" class="navbar-menu">
|
||||
<div class="navbar-start">
|
||||
<a class="navbar-item {{ news_page }}" href="{% url 'news' %}">Aktualności</a>
|
||||
<a class="navbar-item {{ aboutcontest_page }}" href="{% url 'aboutcontest' %}">O konkursie</a>
|
||||
<a class="navbar-item {{ rules_page }}" href="{% url 'rules' %}">Regulamin</a>
|
||||
<a class="navbar-item {{ tests_page }}" href="{% url 'tests' %}">Zadania</a>
|
||||
<a class="navbar-item {{ scores_page }}" href="{% url 'scores' %}">Wyniki</a>
|
||||
|
@ -7,13 +7,14 @@
|
||||
<ul class="pagination-list">
|
||||
{% for edition in editions %}
|
||||
<li>
|
||||
<a class="pagination-link {% if edition.year == year %}is-current{% endif %}"
|
||||
{% if edition.year != year %}href="{% url 'scores' edition.year %}"{% endif %}
|
||||
<a class="pagination-link {% if edition.year == year %}is-current"{% elif edition.scores_available %}" href="{% url 'scores' edition.year %}"{% endif %}"
|
||||
{% if not edition.scores_available %}disabled{% endif%}
|
||||
>{{ edition.roman }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% if scores_available %}
|
||||
<div class="hero has-text-centered">
|
||||
<span class="title my-6">Klasyfikacja indywidualna</span>
|
||||
<table class="hero-body table is-striped is-narrow is-hoverable is-fullwidth">
|
||||
@ -75,4 +76,9 @@
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="hero has-text-centered">
|
||||
<span class="title my-6">Wyniki niedostępne</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
@ -3,14 +3,14 @@
|
||||
<url>
|
||||
<loc>https://puchar.lo5.bielsko.pl</loc>
|
||||
<priority>1.0</priority>
|
||||
<changefreq>yearly</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://puchar.lo5.bielsko.pl/aktualnosci</loc>
|
||||
<priority>0.9</priority>
|
||||
<lastmod>{{ latest.created_at | date:"Y-m-d" }}</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://puchar.lo5.bielsko.pl/konkurs</loc>
|
||||
<priority>0.9</priority>
|
||||
<changefreq>yearly</changefreq>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://puchar.lo5.bielsko.pl/regulamin</loc>
|
||||
<priority>0.8</priority>
|
||||
|
@ -15,7 +15,7 @@
|
||||
{% csrf_token %}
|
||||
{{ form | crispy }}
|
||||
<div class="buttons mx-auto my-3">
|
||||
<button class="button is-success" type="submit">Zaktualizuj</button>
|
||||
<button class="button is-info" type="submit">Zaktualizuj</button>
|
||||
<a class="button is-link" href="{% url 'password_change' %}" target="_blank" rel="noopener noreferrer">Zmień hasło</a>
|
||||
</div>
|
||||
</form>
|
||||
|
@ -6,7 +6,13 @@
|
||||
{% block tab %}
|
||||
<form class="is-flex is-flex-direction-column" method="POST">
|
||||
<div class="my-6 has-text-centered is-flex is-flex-direction-column">
|
||||
<span class="title">Zgłoś uczniów</span>
|
||||
<span class="title">
|
||||
{% if students %}
|
||||
Edytuj zgłoszenie
|
||||
{% else %}
|
||||
Zgłoś uczniów
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
{% csrf_token %}
|
||||
{{ formset.management_form | crispy }}
|
||||
@ -17,6 +23,11 @@
|
||||
<div class="column is-2">{{ form.grade | as_crispy_field }}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<button class="button is-success mx-auto" type="submit">Zgłoś</button>
|
||||
|
||||
{% if students %}
|
||||
<button class="button is-info mx-auto" type="submit">Edytuj</button>
|
||||
{% else %}
|
||||
<button class="button is-link mx-auto" type="submit">Zgłoś</button>
|
||||
{% endif %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user