format
This commit is contained in:
parent
cfd3c6200f
commit
6d329eb980
@ -35,7 +35,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="bg-white dark:bg-primary-900 text-black dark:text-white rounded-md block shadow mt-5"
|
<div class="bg-white dark:bg-primary-900 text-black dark:text-white rounded-md block shadow mt-5"
|
||||||
role="alert">
|
role="alert">
|
||||||
<h2 class="h2">Mitgliedschaft
|
<h2 class="h2">
|
||||||
|
Mitgliedschaft
|
||||||
<br />
|
<br />
|
||||||
<small class="inline-block text-xs text-gray-500 dark:text-gray-100 ">
|
<small class="inline-block text-xs text-gray-500 dark:text-gray-100 ">
|
||||||
{% if "SchnupperInterest" in member %}
|
{% if "SchnupperInterest" in member %}
|
||||||
@ -55,7 +56,6 @@
|
|||||||
</small>
|
</small>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="mx-2 divide-y divide-gray-200 dark:divide-primary-600">
|
<div class="mx-2 divide-y divide-gray-200 dark:divide-primary-600">
|
||||||
|
|
||||||
{% if is_clubmember %}
|
{% if is_clubmember %}
|
||||||
<div class="py-3 grid gap-3">
|
<div class="py-3 grid gap-3">
|
||||||
<form action="/admin/user/{{ user.id }}/change-member-since" method="post">
|
<form action="/admin/user/{{ user.id }}/change-member-since" method="post">
|
||||||
@ -67,15 +67,13 @@
|
|||||||
<form action="/admin/user/{{ user.id }}/change-address" method="post">
|
<form action="/admin/user/{{ user.id }}/change-address" method="post">
|
||||||
{{ macros::inputgroup(label='Adresse', name='address', type="text", value=user.address, readonly=not allowed_to_edit) }}
|
{{ macros::inputgroup(label='Adresse', name='address', type="text", value=user.address, readonly=not allowed_to_edit) }}
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form action="/admin/user/{{ user.id }}/change-family" method="post">
|
<form action="/admin/user/{{ user.id }}/change-family" method="post">
|
||||||
{{ macros::selectgroup(label="Familie", data=families, name='family_id', selected_id=user.family_id, display=['names'], default="Keine Familie", new_last_entry='Neue Familie anlegen', readonly=not allowed_to_edit) }}
|
{{ macros::selectgroup(label="Familie", data=families, name='family_id', selected_id=user.family_id, display=['names'], default="Keine Familie", new_last_entry='Neue Familie anlegen', readonly=not allowed_to_edit) }}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="py-3">
|
<div class="py-3">
|
||||||
{% if user.membership_pdf %}
|
{% if user.membership_pdf %}
|
||||||
<a href="/admin/user/{{ user.id }}/membership"
|
<a href="/admin/user/{{ user.id }}/membership" class="link link-primary">Beitrittserklärung herunterladen</a>
|
||||||
class="link link-primary">Beitrittserklärung herunterladen</a>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
⚠️ Aktuell gibt's keine Beitrittserklärung 😢
|
⚠️ Aktuell gibt's keine Beitrittserklärung 😢
|
||||||
{% if allowed_to_edit %}
|
{% if allowed_to_edit %}
|
||||||
@ -109,8 +107,9 @@
|
|||||||
{% for log in logbook %}
|
{% for log in logbook %}
|
||||||
{{ log::show_old(log=log, state="completed", only_ones=false, index=loop.index, allowed_to_edit=false) }}
|
{{ log::show_old(log=log, state="completed", only_ones=false, index=loop.index, allowed_to_edit=false) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
<button type="button"
|
||||||
<button type="button" onclick="document.getElementById('call-for-action').showModal()" class="btn btn-primary">Zu Vereinsmitglied umwandeln</button>
|
onclick="document.getElementById('call-for-action').showModal()"
|
||||||
|
class="btn btn-primary">Zu Vereinsmitglied umwandeln</button>
|
||||||
</div>
|
</div>
|
||||||
<dialog id="call-for-action"
|
<dialog id="call-for-action"
|
||||||
class="max-w-screen-sm w-full dark:bg-primary-600 dark:text-white rounded-md"
|
class="max-w-screen-sm w-full dark:bg-primary-600 dark:text-white rounded-md"
|
||||||
@ -131,7 +130,8 @@
|
|||||||
<div class="mt-8">
|
<div class="mt-8">
|
||||||
<form action="/admin/user/{{ user.id }}/scheckbook-to-regular"
|
<form action="/admin/user/{{ user.id }}/scheckbook-to-regular"
|
||||||
method="post"
|
method="post"
|
||||||
enctype="multipart/form-data" class="grid gap-3">
|
enctype="multipart/form-data"
|
||||||
|
class="grid gap-3">
|
||||||
Type: Select -> normales Mitglied, förderndes Mitglied, unterstützendes Mitglied
|
Type: Select -> normales Mitglied, förderndes Mitglied, unterstützendes Mitglied
|
||||||
{{ macros::input(label='Mitglied seit', name='member_since', type="date", value=now() | date(), required=true) }}
|
{{ macros::input(label='Mitglied seit', name='member_since', type="date", value=now() | date(), required=true) }}
|
||||||
{{ macros::input(label='Geburtsdatum', name='birthdate', type="date", value=user.birthdate, required=true) }}
|
{{ macros::input(label='Geburtsdatum', name='birthdate', type="date", value=user.birthdate, required=true) }}
|
||||||
@ -165,7 +165,9 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
{{ role.name }}
|
{{ role.name }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</strong><br/><small>{{ role.desc }}</small>
|
</strong>
|
||||||
|
<br />
|
||||||
|
<small>{{ role.desc }}</small>
|
||||||
</span>
|
</span>
|
||||||
{% if allowed_to_edit %}
|
{% if allowed_to_edit %}
|
||||||
<a href="/admin/user/{{ user.id }}/remove-role/{{ role.id }}"
|
<a href="/admin/user/{{ user.id }}/remove-role/{{ role.id }}"
|
||||||
|
@ -177,7 +177,6 @@ function setChoiceByLabel(choicesInstance, label) {
|
|||||||
{% if readonly %}readonly{% endif %} />
|
{% if readonly %}readonly{% endif %} />
|
||||||
</div>
|
</div>
|
||||||
{% endmacro input %}
|
{% endmacro input %}
|
||||||
|
|
||||||
{% macro inputgroup(label, name, type, required=false, class='', value='', min='', hide_label=false, id='', autofocus=false, wrapper_class='', pattern='', readonly=false, accept='') %}
|
{% macro inputgroup(label, name, type, required=false, class='', value='', min='', hide_label=false, id='', autofocus=false, wrapper_class='', pattern='', readonly=false, accept='') %}
|
||||||
<div class="{{ wrapper_class }}">
|
<div class="{{ wrapper_class }}">
|
||||||
<label for="{{ name }}"
|
<label for="{{ name }}"
|
||||||
@ -200,8 +199,12 @@ function setChoiceByLabel(choicesInstance, label) {
|
|||||||
readonly />
|
readonly />
|
||||||
{% if allowed_to_edit %}
|
{% if allowed_to_edit %}
|
||||||
<button type="button" class="btn btn-dark rounded-l-none-important edit-js">{% include "includes/pencil" %}</button>
|
<button type="button" class="btn btn-dark rounded-l-none-important edit-js">{% include "includes/pencil" %}</button>
|
||||||
<input value="x" type="reset" class="edit-js btn btn-alert btn-hidden rounded-none-important"/>
|
<input value="x"
|
||||||
<input value="💾" type="submit" class="btn btn-primary btn-hidden rounded-l-none-important" />
|
type="reset"
|
||||||
|
class="edit-js btn btn-alert btn-hidden rounded-none-important" />
|
||||||
|
<input value="💾"
|
||||||
|
type="submit"
|
||||||
|
class="btn btn-primary btn-hidden rounded-l-none-important" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -242,13 +245,16 @@ function setChoiceByLabel(choicesInstance, label) {
|
|||||||
</select>
|
</select>
|
||||||
{% if allowed_to_edit %}
|
{% if allowed_to_edit %}
|
||||||
<button type="button" class="btn btn-dark rounded-l-none-important edit-js">{% include "includes/pencil" %}</button>
|
<button type="button" class="btn btn-dark rounded-l-none-important edit-js">{% include "includes/pencil" %}</button>
|
||||||
<input value="x" type="reset" class="edit-js btn btn-alert btn-hidden rounded-none-important"/>
|
<input value="x"
|
||||||
<input value="💾" type="submit" class="btn btn-primary btn-hidden rounded-l-none-important" />
|
type="reset"
|
||||||
|
class="edit-js btn btn-alert btn-hidden rounded-none-important" />
|
||||||
|
<input value="💾"
|
||||||
|
type="submit"
|
||||||
|
class="btn btn-primary btn-hidden rounded-l-none-important" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endmacro selectgroup %}
|
{% endmacro selectgroup %}
|
||||||
|
|
||||||
{% macro checkbox(label, name, id='', checked=false, class='', disabled=false, readonly=false) %}
|
{% macro checkbox(label, name, id='', checked=false, class='', disabled=false, readonly=false) %}
|
||||||
<label for="{{ name }}{{ id }}"
|
<label for="{{ name }}{{ id }}"
|
||||||
class="flex items-center cursor-pointer text-black dark:text-white hover:text-gray-900 dark:hover:text-gray-100 {{ class }}">
|
class="flex items-center cursor-pointer text-black dark:text-white hover:text-gray-900 dark:hover:text-gray-100 {{ class }}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user