32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
<button class="button is-link is-light" hx-put="/users/{{ u.id }}/{%- if u.locked -%}un{%- endif -%}lock"
|
|
hx-target="closest div" hx-swap="innerHTML">
|
|
<svg class="icon">
|
|
<use href="/static/feather-sprite.svg#{%- if u.locked -%}un{%- endif -%}lock" />
|
|
</svg>
|
|
<span>{%- if u.locked -%}Entsperren{%- else -%}Sperren{%- endif -%}</span>
|
|
</button>
|
|
|
|
<a class="button is-primary is-light" hx-boost="true" href="/users/edit/{{ u.id }}">
|
|
<svg class="icon">
|
|
<use href="/static/feather-sprite.svg#edit" />
|
|
</svg>
|
|
<span>Bearbeiten</span>
|
|
</a>
|
|
|
|
<button id="user-{{ u.id }}-delete" class="button is-danger is-light" {{ !u.locked|cond_show("disabled") }}
|
|
hx-delete="/users/{{ u.id }}" hx-target="closest tr" hx-swap="delete" hx-trigger="confirmed">
|
|
<svg class="icon">
|
|
<use href="/static/feather-sprite.svg#x-circle" />
|
|
</svg>
|
|
<span>Löschen</span>
|
|
</button>
|
|
|
|
{% if u.password.is_none() && u.salt.is_none() && u.last_login.is_none() %}
|
|
<button class="button is-warning is-light" hx-post="/users/{{ u.id }}/resend-registration">
|
|
<svg class="icon">
|
|
<use href="/static/feather-sprite.svg#send" />
|
|
</svg>
|
|
<span>Registrierungsmail erneut senden</span>
|
|
</button>
|
|
{% endif %}
|