mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 09:46:46 +02:00
[ticket/17151] Adjust form macros to adhere to coding guidelines
PHPBB3-17151
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
{% apply replace({"\n": ' ', "\t": ''}) %}
|
||||
<input
|
||||
{% if CLASS %}class="{{ CLASS }}" {% endif %}
|
||||
{% if ID %}id="{{ ID }}" {% endif %}
|
||||
{% for attribute, attribute_value in DATA %}
|
||||
data-{{ attribute|e }}="{{ attribute_value|e('html_attr') }}"
|
||||
{% endfor %}
|
||||
type="{{ TYPE }}"
|
||||
name="{{ NAME }}"
|
||||
{% if SIZE %}size="{{ SIZE }}" {% endif %}
|
||||
@@ -10,9 +14,5 @@
|
||||
{% if STEP %}step="{{ STEP }}" {% endif %}
|
||||
{% if TYPE == 'password' %}autocomplete="off" {% endif %}
|
||||
{% if CHECKED %}checked="checked" {% endif %}
|
||||
{% if CLASS %}class="{{ CLASS }}" {% endif %}
|
||||
{% for attribute, attribute_value in DATA %}
|
||||
data-{{ attribute|e }}="{{ attribute_value|e('html_attr') }}"
|
||||
{% endfor %}
|
||||
value="{{ VALUE }}">
|
||||
{% endapply %}
|
||||
|
Reference in New Issue
Block a user