Amélioration UX nouveaux tags
This commit is contained in:
parent
102fbdb880
commit
6a5ef67811
@ -285,7 +285,7 @@ class EventForm(GroupFormMixin, ModelForm):
|
|||||||
"Create new labels (sparingly). Note: by starting your tag with the characters “TW:”, you"
|
"Create new labels (sparingly). Note: by starting your tag with the characters “TW:”, you"
|
||||||
"ll create a “trigger warning” tag, and the associated events will be announced as such."
|
"ll create a “trigger warning” tag, and the associated events will be announced as such."
|
||||||
),
|
),
|
||||||
widget=DynamicArrayWidget(),
|
widget=DynamicArrayWidgetTags(),
|
||||||
required=False,
|
required=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -489,7 +489,7 @@ class EventModerateForm(ModelForm):
|
|||||||
"Create new labels (sparingly). Note: by starting your tag with the characters “TW:”, you"
|
"Create new labels (sparingly). Note: by starting your tag with the characters “TW:”, you"
|
||||||
"ll create a “trigger warning” tag, and the associated events will be announced as such."
|
"ll create a “trigger warning” tag, and the associated events will be announced as such."
|
||||||
),
|
),
|
||||||
widget=DynamicArrayWidget(),
|
widget=DynamicArrayWidgetTags(),
|
||||||
required=False,
|
required=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,16 +1,18 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load utils_extra %}
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
<div class="related-widget-wrapper">
|
<div class="related-widget-wrapper">
|
||||||
<div class="dynamic-array-widget">
|
<div class="dynamic-array-widget">
|
||||||
<ul>
|
<ul>
|
||||||
{% for subwidget in widget.subwidgets %}
|
{% for subwidget in widget.subwidgets %}
|
||||||
<li {% if widget.is_none %}data-isNone="true" class="array-item hidden"{% else %}class="array-item"{% endif %}>
|
<li {% if widget.is_none %}data-isNone="true"{% endif %}
|
||||||
|
class="array-item">
|
||||||
{% with widget=subwidget %}
|
{% with widget=subwidget %}
|
||||||
{% include widget.template_name %}
|
{% include widget.template_name %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
<div class="remove">
|
<div class="remove">
|
||||||
<div class="inline-deletelink"></div>
|
<div class="inline-deletelink">{% picto_from_name "x-circle" %}</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
<div class="dynamic-array-widget">
|
<div class="dynamic-array-widget">
|
||||||
<ul>
|
<ul>
|
||||||
{% for subwidget in widget.subwidgets %}
|
{% for subwidget in widget.subwidgets %}
|
||||||
<li {% if widget.is_none %}data-isNone="true" class="array-item"{% else %}class="array-item"{% endif %}>
|
<li {% if widget.is_none %}data-isNone="true"{% endif %}
|
||||||
|
class="array-item">
|
||||||
{% with widget=subwidget %}
|
{% with widget=subwidget %}
|
||||||
{% include widget.template_name %}
|
{% include widget.template_name %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user