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

Players

{{ modal_editor_open("add-player", "Add New Player", "success") }}
{% for p in players %} {% endfor %}
ID Name Is Active Remarks Actions
{{ p.id }} {{ p.name }} {% if p.active %}{% else %}{% endif %} {{ p.remarks }}
{{ modal_editor_open("edit-player-{}".format(p.id), "Edit", "warning") }} {{ modal_editor_open("delete-player-{}".format(p.id), "Delete", "danger") }}
{% call modal_editor("add-player", "Add New Player", submit_label="Add", submit_color="success") %}
{% endcall %} {% for p in players %} {% call modal_editor("edit-player-{}".format(p.id), "Edit Player", "Edit", "warning") %}
{% endcall %} {% call modal_editor("delete-player-{}".format(p.id), "Delete Player", "Delete", "danger") %} Really delete the player {{- p.name -}} with the ID {{- p.id -}}? {% endcall %} {% endfor %} {% endblock %}