release nouri 0.5.0 shopping rhythm pwa and reminders
This commit is contained in:
@@ -17,6 +17,14 @@
|
||||
Neue Kategorie
|
||||
<input type="text" name="name" placeholder="z. B. Süßes, Vorrat, Unterwegs">
|
||||
</label>
|
||||
<label>
|
||||
Passt eher zu
|
||||
<select name="builder_key">
|
||||
{% for value, label in builder_options %}
|
||||
<option value="{{ value }}">{{ label }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</label>
|
||||
<button type="submit">Kategorie ergänzen</button>
|
||||
</form>
|
||||
</section>
|
||||
@@ -26,8 +34,12 @@
|
||||
<article class="list-row stacked-mobile">
|
||||
<div>
|
||||
<strong>{{ category.name }}</strong>
|
||||
<p class="muted">{% if category.name in default_categories %}Teil der ruhigen Standardauswahl{% else %}Eigene Haushaltskategorie{% endif %}</p>
|
||||
<p class="muted">
|
||||
{% if category.name in default_categories %}Teil der ruhigen Standardauswahl{% else %}Eigene Haushaltskategorie{% endif %}
|
||||
· {{ builder_descriptions[category.builder_key] }}
|
||||
</p>
|
||||
<div class="chip-row">
|
||||
<span class="chip">{{ builder_descriptions[category.builder_key].split('.')[0] }}</span>
|
||||
{% if category.is_active %}
|
||||
<span class="chip status-home">Aktiv</span>
|
||||
{% else %}
|
||||
@@ -36,6 +48,18 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-actions">
|
||||
<form method="post" action="{{ url_for('admin.category_update', category_id=category.id) }}" class="inline-form inline-form-tight">
|
||||
{{ csrf_input() }}
|
||||
<label>
|
||||
<span class="sr-only">Baustein</span>
|
||||
<select name="builder_key">
|
||||
{% for value, label in builder_options %}
|
||||
<option value="{{ value }}" {% if category.builder_key == value %}selected{% endif %}>{{ label }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</label>
|
||||
<button class="ghost-button" type="submit">Zuordnung speichern</button>
|
||||
</form>
|
||||
<form method="post" action="{{ url_for('admin.category_toggle', category_id=category.id) }}">
|
||||
{{ csrf_input() }}
|
||||
<button class="ghost-button" type="submit">
|
||||
|
||||
Reference in New Issue
Block a user