Script to remove input fields

This commit is contained in:
Mouse Reeve
2022-03-14 11:34:14 -07:00
parent a2f2104a08
commit 35e6dede09
2 changed files with 23 additions and 2 deletions

View File

@ -87,12 +87,16 @@
<label class="label is-sr-only" for="id_add_subject={% if not forloop.first %}-{{forloop.counter}}{% endif %}">
{% trans "Add subject" %}
</label>
<div class="field has-addons">
<div class="field has-addons" id="subject_field_wrapper_{{ forloop.counter }}">
<div class="control is-expanded">
<input id="id_add_subject-{{ forloop.counter }}" type="text" name="subject-" value="{{ subject }}" class="input">
</div>
<div class="control">
<button class="button is-danger is-light" type="button">
<button
class="button is-danger is-light"
type="button"
data-remove="subject_field_wrapper_{{ forloop.counter }}"
>
<span class="icon icon-x" title="{% trans 'Remove' %}">
<span class="is-sr-only">{% trans "Remove" %}</span>
</span>