Skip to content

Commit 9d4164d

Browse files
authored
chore: textarea input fix (#2500)
1 parent ed1fd4b commit 9d4164d

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

templates/erp/includes/ctas.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ <h2 class="text-center">{% translate "Voulez-vous améliorer la qualité des inf
1717
</button>
1818
</form>
1919
</li>
20-
<li>
21-
<a class="fr-btn fr-btn--secondary text-center"
22-
href="{% url 'claim' erp_slug=erp.slug %}">{% translate "Revendiquer l'établissement en tant que gestionnaire" %}</a>
23-
</li>
20+
<!-- <li>
21+
<a class="fr-btn fr-btn--secondary text-center" href="{% url 'claim' erp_slug=erp.slug %}">{% translate "Revendiquer l'établissement en tant que gestionnaire" %}</a>
22+
</li> -->
2423
<li>
2524
<a class="fr-btn fr-btn--secondary text-center"
2625
href="{% url 'contact_topic_erp' topic='signalement' erp_slug=erp.slug %}">{% translate "Signaler un problème ou une erreur" %}</a>

templates/fields/textarea.html

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,9 @@
88
{{ field.label }}
99
<span class="fr-hint-text">{{ field.help_text|safe }}</span>
1010
</label>
11-
<textarea type="{{ field.field.widget.input_type }}"
12-
name="{{ field.name }}"
13-
id="{{ field.id_for_label }}"
14-
class="fr-input"
15-
rows="10"
16-
{% if field.errors %}aria-describedby="{{ field.id_for_label }}-erorr-message"{% endif %}
17-
{% if field.value is not None %}value="{{ field.value }}"{% endif %}></textarea>
11+
{{ field|addclass:"fr-input" }}
1812
{% for error in field.errors %}
19-
<div id="{{ field.id_for_label }}-erorr-message"
20-
class="fr-messages-group"
21-
aria-live="polite">
22-
<div class="fr-message fr-message--error">{{ error }}</div>
23-
</div>
13+
<div class="fr-message fr-message--error fr-mt-1w" role="alert">{{ error }}</div>
2414
{% endfor %}
2515
</div>
2616
</div>

0 commit comments

Comments
 (0)