[ticket/17151] Make textarea id optional

PHPBB3-17151
This commit is contained in:
rxu 2024-05-25 11:22:03 +07:00
parent 3597c15100
commit 463848dc08
No known key found for this signature in database
GPG key ID: 955F0567380E586A
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{% apply replace({"\n\t": ' ', "\t": '', "\n": ''}) %}
{% apply replace({"\n\t": ' ', "\t": '', "\n": ''}) %}
<input
{% if CLASS %}class="{{ CLASS }}" {% endif %}
{% if ID %}id="{{ ID }}" {% endif %}

View file

@ -1,4 +1,4 @@
{% apply replace({"\n\t": ' ', "\t": '', "\n": ''}) %}
{% apply replace({"\n\t": ' ', "\t": '', "\n": ''}) %}
<select
{% if CLASS %}class="{{ CLASS }}" {% endif %}
{% if ID %}id="{{ ID }}" {% endif %}

View file

@ -1,7 +1,7 @@
{% apply replace({"\n": ' ', '\t': ''}) %}
{% apply replace({"\n": ' ', '\t': ''}) %}
<textarea
{% if CLASS %}class="{{ CLASS }}" {% endif %}
id="{{ ID }}"
{% if ID %}id="{{ ID }}" {% endif %}
{% for attribute, attribute_value in DATA %}
data-{{ attribute|e }}="{{ attribute_value|e('html_attr') }}"
{% endfor %}