feat: Style allauth templates

This commit is contained in:
2025-10-21 01:28:31 +02:00
parent 969339a95f
commit 4cab71e8fb
9 changed files with 42 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
{% load allauth %}
{% comment %} djlint:off {% endcomment %}
<div class="control">
<{% if attrs.href %}a href="{{ attrs.href }}"{% else %}button{% endif %}
class="button is-primary"
{% if attrs.form %}form="{{ attrs.form }}"{% endif %}
{% if attrs.id %}id="{{ attrs.id }}"{% endif %}
{% if attrs.name %}name="{{ attrs.name }}"{% endif %}
{% if attrs.value %}value="{{ attrs.value }}"{% endif %}
{% if attrs.type %}type="{{ attrs.type }}"{% endif %}
>
{% slot %}
{% endslot %}
</{% if attrs.href %}a{% else %}button{% endif %}>
</div>

View File

@@ -0,0 +1,5 @@
{% load allauth %}
<div class="field is-grouped">
{% slot %}
{% endslot %}
</div>

View File

@@ -0,0 +1 @@
{{ attrs.form }}

View File

@@ -0,0 +1 @@
{% comment %} djlint:off {% endcomment %}{% load allauth %}<h1 class="title is-1">{% slot %}{% endslot %}</h1>

View File

@@ -0,0 +1 @@
{% comment %} djlint:off {% endcomment %}{% load allauth %}<h2 class="title is-2">{% slot %}{% endslot %}</h2>

View File

@@ -0,0 +1 @@
{% comment %} djlint:off {% endcomment %}{% load allauth %}<p class="content">{% slot %}{% endslot %}</p>

View File

@@ -0,0 +1 @@
{% extends "fellchensammlung/base.html" %}

View File

@@ -28,10 +28,22 @@
<h2 class="title is-2">{% trans 'Profil verwalten' %}</h2> <h2 class="title is-2">{% trans 'Profil verwalten' %}</h2>
<div class="block"><strong>{% translate "E-Mail" %}:</strong> {{ user.email }}</div> <div class="block"><strong>{% translate "E-Mail" %}:</strong> {{ user.email }}</div>
<div class="block"> <div class="block">
<div class="field is-grouped is-grouped-multiline">
<div class="control">
<a class="button is-warning" <a class="button is-warning"
href="{% url 'account_change_password' %}">{% translate "Passwort ändern" %}</a> href="{% url 'account_change_password' %}">{% translate "Passwort ändern" %}</a>
<a class="button is-warning" href="{% url 'account_email' %}">{% translate "E-Mail Adresse ändern" %}</a> </div>
<a class="button is-info" href="{% url 'user-me-export' %}">{% translate "Daten exportieren" %}</a> <div class="control">
<a class="button is-warning"
href="{% url 'account_email' %}">
{% translate "E-Mail Adresse ändern" %}
</a>
</div>
<div class="control">
<a class="button is-info" href="{% url 'user-me-export' %}">
{% translate "Daten exportieren" %}
</a>
</div>
</div> </div>
</div> </div>

View File

@@ -27,7 +27,7 @@
{{ field|add_class:"input" }} {{ field|add_class:"input" }}
{% endif %} {% endif %}
</div> </div>
<div class="help"> <div class="help content">
{{ field.help_text }} {{ field.help_text }}
</div> </div>
<div class="help is-danger"> <div class="help is-danger">