mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 13:44:12 +02:00
[ticket/17100] Use twig functions for form elements
PHPBB3-17100
This commit is contained in:
15
phpBB/styles/all/template/macros/forms/input.twig
Normal file
15
phpBB/styles/all/template/macros/forms/input.twig
Normal file
@@ -0,0 +1,15 @@
|
||||
{% apply replace({"\n": ' ', "\t": ''}) %}
|
||||
<input
|
||||
{% if ID %}id="{{ ID }}" {% endif %}
|
||||
type="{{ TYPE }}"
|
||||
name="{{ NAME }}"
|
||||
{% if SIZE %}size="{{ SIZE }}" {% endif %}
|
||||
{% if MAXLENGTH %}maxlength="{{ MAXLENGTH }}" {% endif %}
|
||||
{% if MIN %}min="{{ MIN }}" {% endif %}
|
||||
{% if MAX %}max="{{ MAX }}" {% endif %}
|
||||
{% if STEP %}step="{{ STEP }}" {% endif %}
|
||||
{% if TYPE == 'password' %}autocomplete="off" {% endif %}
|
||||
{% if CHECKED %}checked="checked" {% endif %}
|
||||
{% if CLASS %}class="{{ CLASS }}" {% endif %}
|
||||
value="{{ VALUE }}">
|
||||
{% endapply %}
|
Reference in New Issue
Block a user