70 lines
2.5 KiB
HTML
70 lines
2.5 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block title %}Pseudonyme{% endblock title %}
|
|
|
|
{% block head %}
|
|
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='datatables.css') }}">
|
|
{% endblock head %}
|
|
|
|
{% block heading %}Pseudonyme{% endblock heading %}
|
|
|
|
{% block content %}
|
|
|
|
{% include "_icons.svg" %}
|
|
|
|
<table id="pseudonym-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Pseudonym</th>
|
|
<th colspan="2">Aktionen</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for pseudonym in pseudonyme %}
|
|
<tr id="pseudonym-{{ pseudonym['ID'] }}">
|
|
<td title="Pseudonym">{{ pseudonym["Pseudonym"] }}</td>
|
|
<td class="action action-update" data-id="{{ pseudonym['ID'] }}" data-pseudonym="{{pseudonym['Pseudonym'] }}"><a href="#" title="Pseudonym bearbeiten"><svg viewbox="0 0 24 24"><use href="#update" /></svg></a></td>
|
|
<td id="delete-{{ pseudonym['ID'] }}" class="action"><a onclick="return confirm('Eintrag wirklich löschen?');" href="{{ url_for('pseudonym.delete', id=pseudonym['ID']) }}" title="Pseudonym löschen"><svg viewbox="0 0 24 24"><use href="#delete" /></svg></a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<dialog aria-labelledby="dialog-heading" id="pseudonym-modal">
|
|
<article>
|
|
<form id="pseudonym_detail_form" method="post" >
|
|
<header>
|
|
<button aria-label="close" rel="prev" onclick="pseudonym-modal.close()"></button>
|
|
<h1 id="dialog-heading">#</h1>
|
|
</header>
|
|
|
|
<fieldset>
|
|
<article>
|
|
<label>
|
|
<span class="required">Pseudonym</span>
|
|
<input id="form_Pseudonym" name="form_Pseudonym" aria-Label="Pseudonym" placeholder="Pseudonym" required autofocus />
|
|
</label>
|
|
</article>
|
|
</fieldset>
|
|
|
|
<footer class="grid">
|
|
<button id="form_submit" type="submit" formmethod="post" formaction="{{ url_for('pseudonym.create') }}">OK</button>
|
|
<button class="secondary" aria-label="close" formmethod="dialog" formnovalidate>Abbrechen</button>
|
|
</footer>
|
|
</form>
|
|
</article>
|
|
</dialog>
|
|
{% endblock content %}
|
|
|
|
{% block script %}
|
|
<script src="{{ url_for('static', filename='datatables.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
|
<script>
|
|
window.onload = function () {
|
|
initDataTable("pseudonym-table");
|
|
initCreateButton("pseudonym-table", "Pseudonym hinzufügen …");
|
|
initModal("pseudonym-modal", "form_Pseudonym", ["Neues Pseudonym", "Pseudonym bearbeiten"], ["{{ url_for('pseudonym.create') }}", "{{ url_for('pseudonym.update', id=-1) }}"]);
|
|
}
|
|
</script>
|
|
{% endblock script %}
|