Skip to content

Commit

Permalink
Wrap tabs in form element
Browse files Browse the repository at this point in the history
Used method is copied from other templates
inheriting that valitse.html template.

This resolves the problem of orphan form starting tag.
  • Loading branch information
ilesoft committed Dec 20, 2024
1 parent 68d6af5 commit f6097df
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions web/templates/tupa/maaritaValitseTehtava.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{% extends "tupa/valitse.html" %}
{{ block.super }}
{% block sarake %}
{{ sarake }}
<h3>
<a href="uusi/sarja/{{ sarake.id }}/">Lisää uusi tehtävä</a>
</h3>
<h3>
<a href="kopioi/sarjaan/{{ sarake.id }}/">Kopioi tehtäviä tähän sarjaan</a>
</h3>
{% include "tupa/poista.html" %}
{% endblock %}
{% block content %}
<form method="post" action="">
{{ sarake }}
<h3>
<a href="uusi/sarja/{{ sarake.id }}/">Lisää uusi tehtävä</a>
</h3>
<h3>
<a href="kopioi/sarjaan/{{ sarake.id }}/">Kopioi tehtäviä tähän sarjaan</a>
</h3>
{% include "tupa/poista.html" %}
{% endblock %}
{{ block.super }}
</form>
{% endblock %}

0 comments on commit f6097df

Please sign in to comment.