Add status type filters

This commit is contained in:
Joachim
2021-11-22 00:25:47 +01:00
parent 8a6f78cfff
commit a0093a8a2e
6 changed files with 100 additions and 3 deletions

View File

@ -16,6 +16,27 @@
</ul>
</div>
<details class="mb-5" {% if settings_saved %}open{% endif %}>
<summary>
<span class="has-text-weight-bold">What to display?</span>
{% if settings_saved %}
<span class="tag is-success is-light ml-2">Saved!</span>
{% endif %}
</summary>
<form class="level" method="post" action="/{{ tab.key }}">
{% csrf_token %}
<div class="level-left">
{{ feed_status_types_form }}
</div>
<div class="level-right">
<button class="button is-small is-primary is-outlined" type="submit">
Submit
</button>
</div>
</form>
</details>
{# announcements and system messages #}
{% if not activities.number > 1 %}
<a href="{{ request.path }}" class="transition-y is-hidden notification is-primary is-block" data-poll-wrapper>

View File

@ -0,0 +1,11 @@
{% with id=widget.attrs.id %}
<div{% if id %} id="{{ id }}"{% endif %} class="field">
<div class="control">
{% for group, options, index in widget.optgroups %}
{% for option in options %}
{% include option.template_name with widget=option %}
{% endfor %}
{% endfor %}
</div>
</div>
{% endwith %}

View File

@ -0,0 +1,4 @@
<label{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %}>
{% include "django/forms/widgets/input.html" %}
{{ widget.label }}
</label>