{% extends "base.html" %} {% from "macros.html" import modal_editor, modal_editor_open %} {% block title %}PySkat - Series{% endblock %} {% block head %} {% endblock %} {% block content %}

Series

{{ modal_editor_open("add-series", "Add New Series", "success") }} {% call modal_editor("add-series", url_for("series.add"), "Add New Series", submit_label="Add", submit_color="success") %}
{% endcall %}
{% for s in series %} {% endfor %}
ID Name Date Remarks Actions
{{ s.id }} {{ s.name }} {{ s.date.isoformat(sep=" ", timespec="minutes") }} {{ s.remarks }}
{% if session.current_series == s.id %} {% else %} {% endif %} View Tables {{ modal_editor_open("edit-series-{}".format(s.id), "Edit", "warning") }} {{ modal_editor_open("remove-series-{}".format(s.id), "Remove", "danger") }}
{% call modal_editor("edit-series-{}".format(s.id), url_for("series.update", id=s.id), "Edit Series", "Edit", "warning") %}
{% endcall %} {% call modal_editor("remove-series-{}".format(s.id), url_for("series.remove", id=s.id), "Remove Series", "Remove", "danger") %} Really remove the series {{- s.name -}} with the ID {{- s.id -}}? {% endcall %}
{% for s in series %}
{% endfor %} {% endblock %}