feat: Style allauth templates
This commit is contained in:
		
							
								
								
									
										15
									
								
								src/fellchensammlung/templates/allauth/elements/button.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								src/fellchensammlung/templates/allauth/elements/button.html
									
									
									
									
									
										Normal 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> | ||||||
| @@ -0,0 +1,5 @@ | |||||||
|  | {% load allauth %} | ||||||
|  | <div class="field is-grouped"> | ||||||
|  |     {% slot %} | ||||||
|  |     {% endslot %} | ||||||
|  | </div> | ||||||
| @@ -0,0 +1 @@ | |||||||
|  | {{ attrs.form }} | ||||||
							
								
								
									
										1
									
								
								src/fellchensammlung/templates/allauth/elements/h1.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/fellchensammlung/templates/allauth/elements/h1.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | {% comment %} djlint:off {% endcomment %}{% load allauth %}<h1 class="title is-1">{% slot %}{% endslot %}</h1> | ||||||
							
								
								
									
										1
									
								
								src/fellchensammlung/templates/allauth/elements/h2.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/fellchensammlung/templates/allauth/elements/h2.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | {% comment %} djlint:off {% endcomment %}{% load allauth %}<h2 class="title is-2">{% slot %}{% endslot %}</h2> | ||||||
							
								
								
									
										1
									
								
								src/fellchensammlung/templates/allauth/elements/p.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/fellchensammlung/templates/allauth/elements/p.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | {% comment %} djlint:off {% endcomment %}{% load allauth %}<p class="content">{% slot %}{% endslot %}</p> | ||||||
							
								
								
									
										1
									
								
								src/fellchensammlung/templates/allauth/layouts/base.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/fellchensammlung/templates/allauth/layouts/base.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | {% extends "fellchensammlung/base.html" %} | ||||||
| @@ -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> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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"> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user