From 80577d89de49bb0219e98b9528519a209858dd66 Mon Sep 17 00:00:00 2001 From: Michael Bergbauer Date: Sat, 19 Jul 2025 11:32:33 +0200 Subject: [PATCH] Refactoring table into partial file --- member/templates/details.html | 33 ++++---------------- member/templates/partials/account_table.html | 28 +++++++++++++++++ 2 files changed, 34 insertions(+), 27 deletions(-) create mode 100644 member/templates/partials/account_table.html diff --git a/member/templates/details.html b/member/templates/details.html index 9455db7..9d509af 100644 --- a/member/templates/details.html +++ b/member/templates/details.html @@ -1,6 +1,6 @@ {% extends "master.html" %} {% load static %} -{% load svg %} + {% block title %} @@ -10,34 +10,13 @@ {% block content %}

{{ mymember.vorname }} {{ mymember.nachname }}

- +

Geburtsdatum: {{ mymember.geburtsdatum }}

- - - - - - - - - - - {% for x in accounts %} - - - - - - - {% endfor %} - - - - -
NameRolleAktivAktionen
{{ x.username }}{{ x.rolle }}{% if x.aktiv %}{% inline_svg 'icons/uxwing/check.svg' 'icon' %}{% endif %}
- Konto hinzufügen -
+
+

Accounts

+ {% include "partials/account_table.html" %} +

Back to Members

diff --git a/member/templates/partials/account_table.html b/member/templates/partials/account_table.html new file mode 100644 index 0000000..ea449c8 --- /dev/null +++ b/member/templates/partials/account_table.html @@ -0,0 +1,28 @@ +{% load static %} +{% load svg %} + + + + + + + + + + + + {% for x in accounts %} + + + + + + + {% endfor %} + + + + +
NameRolleAktivAktionen
{{ x.username }}{{ x.rolle }}{% if x.aktiv %}{% inline_svg 'icons/uxwing/check.svg' 'icon' %}{% endif %}
+ Konto hinzufügen +
\ No newline at end of file