feat: space card containers
This commit is contained in:
parent
13b67c1248
commit
867319fe9a
@ -130,7 +130,8 @@ textarea {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container-cards h1 {
|
.container-cards h1,
|
||||||
|
.container-cards h2 {
|
||||||
width: 100%; /* Make sure heading fills complete line */
|
width: 100%; /* Make sure heading fills complete line */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,8 +153,8 @@ textarea {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.spaced {
|
.spaced > * {
|
||||||
margin-bottom: 30px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************/
|
/*******************************/
|
||||||
|
@ -6,75 +6,78 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ user.get_full_name }}</h1>
|
<h1>{{ user.get_full_name }}</h1>
|
||||||
|
<div class="spaced">
|
||||||
|
|
||||||
<div class="container-cards">
|
|
||||||
<div class="card">
|
|
||||||
<p><strong>{% translate "Username" %}:</strong> {{ user.username }}</p>
|
|
||||||
<p><strong>{% translate "E-Mail" %}:</strong> {{ user.email }}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<h2>{% trans 'Profil verwalten' %}</h2>
|
|
||||||
<div class="container-cards">
|
|
||||||
<div class="container-comment-form">
|
|
||||||
<p>
|
|
||||||
<a class="btn2" href="{% url 'password_change' %}">{% translate "Change password" %}</a>
|
|
||||||
<a class="btn2" href="{% url 'user-me-export' %}">{% translate "Daten exportieren" %}</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if user.id is request.user.id %}
|
|
||||||
<div class="detail-animal-header"><h2>{% trans 'Einstellungen' %}</h2></div>
|
|
||||||
<div class="container-cards">
|
<div class="container-cards">
|
||||||
<form class="card" action="" method="POST">
|
<h2>{% trans 'Daten' %}</h2>
|
||||||
{% csrf_token %}
|
|
||||||
{% if user.email_notifications %}
|
|
||||||
<label class="toggle">
|
|
||||||
<input type="submit" class="toggle-checkbox checked" name="toggle_email_notifications">
|
|
||||||
<div class="toggle-switch round "></div>
|
|
||||||
<span class="slider-label">
|
|
||||||
{% translate 'E-Mail Benachrichtigungen' %}
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
{% else %}
|
|
||||||
<label class="toggle">
|
|
||||||
<input type="submit" class="toggle-checkbox" name="toggle_email_notifications">
|
|
||||||
<div class="toggle-switch round"></div>
|
|
||||||
<span class="slider-label">
|
|
||||||
{% translate 'E-Mail Benachrichtigungen' %}
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
{% endif %}
|
|
||||||
</form>
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
{% if token %}
|
<p><strong>{% translate "Username" %}:</strong> {{ user.username }}</p>
|
||||||
<form action="" method="POST">
|
<p><strong>{% translate "E-Mail" %}:</strong> {{ user.email }}</p>
|
||||||
{% csrf_token %}
|
|
||||||
<p class="text-muted"><strong>{% translate "API token:" %}</strong> {{ token }}</p>
|
|
||||||
<input class="btn" type="submit" name="delete_token"
|
|
||||||
value={% translate "Delete API token" %}>
|
|
||||||
</form>
|
|
||||||
{% else %}
|
|
||||||
<p>{% translate "Kein API-Token vorhanden." %}</p>
|
|
||||||
<form action="" method="POST">
|
|
||||||
{% csrf_token %}
|
|
||||||
<input class="btn" type="submit" name="create_token"
|
|
||||||
value={% translate "Create API token" %}>
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>{% translate 'Benachrichtigungen' %}</h2>
|
|
||||||
{% include "fellchensammlung/lists/list-notifications.html" %}
|
|
||||||
|
|
||||||
<h2>{% translate 'Abonnierte Suchen' %}</h2>
|
<div class="container-cards">
|
||||||
{% include "fellchensammlung/lists/list-search-subscriptions.html" %}
|
<h2>{% trans 'Profil verwalten' %}</h2>
|
||||||
|
<div class="container-comment-form">
|
||||||
|
<p>
|
||||||
|
<a class="btn2" href="{% url 'password_change' %}">{% translate "Change password" %}</a>
|
||||||
|
<a class="btn2" href="{% url 'user-me-export' %}">{% translate "Daten exportieren" %}</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<h2>{% translate 'Meine Vermittlungen' %}</h2>
|
{% if user.id is request.user.id %}
|
||||||
{% include "fellchensammlung/lists/list-adoption-notices.html" %}
|
<div class="detail-animal-header"><h2>{% trans 'Einstellungen' %}</h2></div>
|
||||||
|
<div class="container-cards">
|
||||||
|
<form class="card" action="" method="POST">
|
||||||
|
{% csrf_token %}
|
||||||
|
{% if user.email_notifications %}
|
||||||
|
<label class="toggle">
|
||||||
|
<input type="submit" class="toggle-checkbox checked" name="toggle_email_notifications">
|
||||||
|
<div class="toggle-switch round "></div>
|
||||||
|
<span class="slider-label">
|
||||||
|
{% translate 'E-Mail Benachrichtigungen' %}
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
{% else %}
|
||||||
|
<label class="toggle">
|
||||||
|
<input type="submit" class="toggle-checkbox" name="toggle_email_notifications">
|
||||||
|
<div class="toggle-switch round"></div>
|
||||||
|
<span class="slider-label">
|
||||||
|
{% translate 'E-Mail Benachrichtigungen' %}
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
{% endif %}
|
||||||
|
</form>
|
||||||
|
<div class="card">
|
||||||
|
{% if token %}
|
||||||
|
<form action="" method="POST">
|
||||||
|
{% csrf_token %}
|
||||||
|
<p class="text-muted"><strong>{% translate "API token:" %}</strong> {{ token }}</p>
|
||||||
|
<input class="btn" type="submit" name="delete_token"
|
||||||
|
value={% translate "Delete API token" %}>
|
||||||
|
</form>
|
||||||
|
{% else %}
|
||||||
|
<p>{% translate "Kein API-Token vorhanden." %}</p>
|
||||||
|
<form action="" method="POST">
|
||||||
|
{% csrf_token %}
|
||||||
|
<input class="btn" type="submit" name="create_token"
|
||||||
|
value={% translate "Create API token" %}>
|
||||||
|
</form>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endif %}
|
<h2>{% translate 'Benachrichtigungen' %}</h2>
|
||||||
|
{% include "fellchensammlung/lists/list-notifications.html" %}
|
||||||
|
|
||||||
|
<h2>{% translate 'Abonnierte Suchen' %}</h2>
|
||||||
|
{% include "fellchensammlung/lists/list-search-subscriptions.html" %}
|
||||||
|
|
||||||
|
<h2>{% translate 'Meine Vermittlungen' %}</h2>
|
||||||
|
{% include "fellchensammlung/lists/list-adoption-notices.html" %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user