Initial commit

This commit is contained in:
2024-08-27 20:33:44 +02:00
commit 1f1832267d
14794 changed files with 1599592 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
{% load wagtailadmin_tags i18n %}
{% comment %}
Either the chosen or unchosen div will be shown, depending on the presence
of the 'blank' class on the container.
{% endcomment %}
{% fragment as title_id %}{{ attrs.id }}-title{% endfragment %}
<div id="{{ attrs.id }}-chooser" class="chooser {% block chooser_class %}{% if classname %}{{ classname }}{% endif %}{% endblock %} {% if not value %}blank{% endif %}" {% block chooser_attributes %}{% if chooser_url %}data-chooser-url="{{ chooser_url }}"{% endif %}{% endblock %}>
<div class="chosen">
{% block chosen_icon %}
<div class="chooser__preview" role="presentation">
{% if icon %}{% icon name=icon classname="default" %}{% endif %}
</div>
{% endblock chosen_icon %}
{% block chosen_state_view %}
<div class="chooser__title" data-chooser-title id="{{ title_id }}">{{ display_title }}</div>
{% endblock %}
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=_("Actions") toggle_describedby=title_id hide_on_click=True %}
<button type="button" data-chooser-action-choose aria-describedby="{{ title_id }}">
{% icon name="resubmit" %}
{{ widget.choose_another_text }}
</button>
{% if widget.show_edit_link %}
{% block edit_link %}
<a data-chooser-edit-link href="{% block edit_chosen_item_url %}{{ edit_url }}{% endblock %}" aria-describedby="{{ title_id }}" {% if not edit_url %}hidden{% endif %} target="_blank" rel="noreferrer">
{% icon name="edit" %}
{{ widget.link_to_chosen_text }}
</a>
{% endblock %}
{% endif %}
{% if not widget.is_required and widget.show_clear_link %}
<button type="button" data-chooser-action-clear aria-describedby="{{ title_id }}">
{% icon name="bin" %}
{{ widget.clear_choice_text }}
</button>
{% endif %}
{% enddropdown %}
</div>
<div class="unchosen">
<button type="button" data-chooser-action-choose class="button button-small button-secondary chooser__choose-button">
{% block unchosen_icon %}{% icon name=icon|default:"plus-inverse" %}{% endblock unchosen_icon %}
{{ widget.choose_one_text }}
</button>
</div>
</div>
{{ original_field_html }}

View File

@@ -0,0 +1 @@
{% include 'django/forms/widgets/date.html' %}<script>initDateChooser("{{ widget.attrs.id|escapejs }}", {{ widget.config_json|safe }});</script>

View File

@@ -0,0 +1,3 @@
<div class="daterange_field">
{% for widget in widget.subwidgets %}{% include widget.template_name %}{% endfor %}
</div>

View File

@@ -0,0 +1 @@
{% include 'django/forms/widgets/datetime.html' %}<script>initDateTimeChooser("{{ widget.attrs.id|escapejs }}", {{ widget.config_json|safe }});</script>

View File

@@ -0,0 +1 @@
{% include 'django/forms/widgets/hidden.html' %}

View File

@@ -0,0 +1,7 @@
{% load wagtailadmin_tags %}
<label class="switch">
{% include "django/forms/widgets/input.html" %}
<span class="switch__toggle">
{% icon name="check" classname="switch__icon" %}
</span>
</label>

View File

@@ -0,0 +1,2 @@
{% include 'django/forms/widgets/text.html' %}
<p class="help">{{ widget.help_text }}</p>

View File

@@ -0,0 +1 @@
{% include 'django/forms/widgets/time.html' %}<script>initTimeChooser("{{ widget.attrs.id|escapejs }}", {{ widget.config_json|safe }});</script>