We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab829cf commit 6f189d2Copy full SHA for 6f189d2
src/bundle/Resources/views/themes/standard/design_system/components/form_label.html.twig
@@ -0,0 +1,28 @@
1
+{% import ibexa_get_template('design-system/macros/html') as html %}
2
+
3
+{% set error = error|default(false) %}
4
+{% set required = required|default(false) %}
5
+{% set title = title|default('') %}
6
+{% set attr = attr|default({}) %}
7
8
+{% set classes =
9
+ ibexa_create_css_class(
10
+ {
11
+ 'ids-form-label': true,
12
+ 'ids-form-label--error': error,
13
+ 'ids-form-label--required': required,
14
+ },
15
+ attr
16
+ )
17
+%}
18
+{% set attr =
19
+ attr|merge({
20
+ class: classes,
21
+ 'html-for': html_for,
22
+ title: title,
23
+ })
24
25
26
+<label {{ html.attributes(attr) }}>
27
+ {{ content|raw }}
28
+</label>
0 commit comments