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