Files

38 lines
1.6 KiB
HTML

{% extends "base.html" %}
{% block title %}Mein Profil · Fil-A-Management{% endblock %}
{% block content %}
<div class="page-heading"><div><h1>Mein Profil</h1><p class="muted">Verwalte dein Konto, deine Drucker und deine Freigaben.</p></div></div>
<form method="post" class="split profile-settings">
{% csrf_token %}
<section class="panel form-panel">
<h2>Persönliche Angaben</h2>
<p>Benutzername <strong>{{ user.username }}</strong></p>
{{ form.non_field_errors }}
{% for field in form %}
<div class="field">{{ field.label_tag }}{{ field }}{{ field.errors }}</div>
{% endfor %}
<a class="button secondary" href="{% url 'password_change' %}">Passwort ändern</a>
</section>
<section class="panel form-panel">
<h2>Mit anderen teilen</h2>
<p class="muted">Angemeldete Mitglieder sehen deinen Benutzernamen und die Angaben, die du freigibst.</p>
{{ sharing_form.non_field_errors }}
<div class="sharing-options">
{% for field in sharing_form %}
<label class="sharing-option" for="{{ field.id_for_label }}">{{ field }}<span>{{ field.label }}</span></label>
{{ field.errors }}
{% endfor %}
</div>
<button class="button" type="submit">Profil speichern</button>
</section>
</form>
<section class="panel" id="drucker">
<div class="panel-heading">
<h2>Meine Drucker</h2>
<a class="button" href="{% url 'printer_add' %}">+ Drucker hinzufügen</a>
</div>
{% include "filament/printer_cards.html" with printers=printers editable=True only %}
</section>
{% endblock %}