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

Session

{{ modal_editor_open("add-session", "Add New Session", "success") }}
{% for s in sessions %} {% endfor %}
ID Name Date Remarks Actions
{{ s.id }} {{ s.name }} {{ s.date.isoformat(sep=" ", timespec="minutes") }} {{ s.remarks }}
{% if current_session_id == s.id %} {% else %} {% endif %} {{ modal_editor_open("edit-session-{}".format(s.id), "Edit", "warning") }} {{ modal_editor_open("delete-session-{}".format(s.id), "Delete", "danger") }}
{% call modal_editor("add-session", "Add New Session", submit_label="Add", submit_color="success") %}
{% endcall %} {% for s in sessions %} {% call modal_editor("edit-session-{}".format(s.id), "Edit Session", "Edit", "warning") %}
{% endcall %} {% call modal_editor("delete-session-{}".format(s.id), "Delete Session", "Delete", "danger") %} Really delete the session {{- s.name -}} with the ID {{- s.id -}}? {% endcall %} {% endfor %} {% endblock %}