|
56 | 56 | </select> |
57 | 57 | </div> |
58 | 58 |
|
59 | | - {% if app.user.isBetaEnabled %} |
60 | | - <div class="form-group"> |
61 | | - <label for="option-color-scheme"> |
62 | | - {{ t('Interface theme') }} |
63 | | - </label> |
| 59 | + <div class="form-group"> |
| 60 | + <label for="option-color-scheme"> |
| 61 | + {{ t('Interface theme') }} |
| 62 | + </label> |
| 63 | + |
| 64 | + {% if form.isInvalid('option_color_scheme') %} |
| 65 | + <p id="option-color-scheme-error" class="form-group__error"> |
| 66 | + {{ t('Error:') }} |
| 67 | + {{ form.error('option_color_scheme') }} |
| 68 | + </p> |
| 69 | + {% endif %} |
64 | 70 |
|
| 71 | + <select |
| 72 | + id="option-color-scheme" |
| 73 | + name="option_color_scheme" |
65 | 74 | {% if form.isInvalid('option_color_scheme') %} |
66 | | - <p id="option-color-scheme-error" class="form-group__error"> |
67 | | - {{ t('Error:') }} |
68 | | - {{ form.error('option_color_scheme') }} |
69 | | - </p> |
| 75 | + aria-errormessage="option-color-scheme-error" |
| 76 | + aria-invalid="true" |
70 | 77 | {% endif %} |
| 78 | + > |
| 79 | + {% for color_scheme_value, color_scheme_label in form.colorSchemeValues %} |
| 80 | + <option |
| 81 | + value="{{ color_scheme_value }}" |
| 82 | + {{ color_scheme_value === form.option_color_scheme ? 'selected' : '' }} |
| 83 | + > |
| 84 | + {{ color_scheme_label }} |
| 85 | + </option> |
| 86 | + {% endfor %} |
| 87 | + </select> |
| 88 | + </div> |
71 | 89 |
|
72 | | - <select |
73 | | - id="option-color-scheme" |
74 | | - name="option_color_scheme" |
75 | | - {% if form.isInvalid('option_color_scheme') %} |
76 | | - aria-errormessage="option-color-scheme-error" |
77 | | - aria-invalid="true" |
78 | | - {% endif %} |
79 | | - > |
80 | | - {% for color_scheme_value, color_scheme_label in form.colorSchemeValues %} |
81 | | - <option |
82 | | - value="{{ color_scheme_value }}" |
83 | | - {{ color_scheme_value === form.option_color_scheme ? 'selected' : '' }} |
84 | | - > |
85 | | - {{ color_scheme_label }} |
86 | | - </option> |
87 | | - {% endfor %} |
88 | | - </select> |
89 | | - </div> |
90 | | - |
91 | | - <div class="form-group"> |
92 | | - <label for="option-font-family"> |
93 | | - {{ t('Font family') }} |
94 | | - </label> |
| 90 | + <div class="form-group"> |
| 91 | + <label for="option-font-family"> |
| 92 | + {{ t('Font family') }} |
| 93 | + </label> |
95 | 94 |
|
| 95 | + {% if form.isInvalid('option_font_family') %} |
| 96 | + <p id="option-font-family-error" class="form-group__error"> |
| 97 | + {{ t('Error:') }} |
| 98 | + {{ form.error('option_font_family') }} |
| 99 | + </p> |
| 100 | + {% endif %} |
| 101 | + |
| 102 | + <select |
| 103 | + id="option-font-family" |
| 104 | + name="option_font_family" |
96 | 105 | {% if form.isInvalid('option_font_family') %} |
97 | | - <p id="option-font-family-error" class="form-group__error"> |
98 | | - {{ t('Error:') }} |
99 | | - {{ form.error('option_font_family') }} |
100 | | - </p> |
| 106 | + aria-errormessage="option-font-family-error" |
| 107 | + aria-invalid="true" |
101 | 108 | {% endif %} |
| 109 | + > |
| 110 | + {% for font_family_value, font_family_label in form.fontFamilyValues %} |
| 111 | + <option |
| 112 | + value="{{ font_family_value }}" |
| 113 | + {{ font_family_value === form.option_font_family ? 'selected' : '' }} |
| 114 | + > |
| 115 | + {{ font_family_label }} |
| 116 | + </option> |
| 117 | + {% endfor %} |
| 118 | + </select> |
| 119 | + </div> |
102 | 120 |
|
103 | | - <select |
104 | | - id="option-font-family" |
105 | | - name="option_font_family" |
106 | | - {% if form.isInvalid('option_font_family') %} |
107 | | - aria-errormessage="option-font-family-error" |
108 | | - aria-invalid="true" |
109 | | - {% endif %} |
110 | | - > |
111 | | - {% for font_family_value, font_family_label in form.fontFamilyValues %} |
112 | | - <option |
113 | | - value="{{ font_family_value }}" |
114 | | - {{ font_family_value === form.option_font_family ? 'selected' : '' }} |
115 | | - > |
116 | | - {{ font_family_label }} |
117 | | - </option> |
118 | | - {% endfor %} |
119 | | - </select> |
120 | | - </div> |
121 | | - |
122 | | - <div class="form-group"> |
123 | | - <label for="option-text-size"> |
124 | | - {{ t('Text size') }} |
125 | | - </label> |
| 121 | + <div class="form-group"> |
| 122 | + <label for="option-text-size"> |
| 123 | + {{ t('Text size') }} |
| 124 | + </label> |
126 | 125 |
|
| 126 | + {% if form.isInvalid('option_text_size') %} |
| 127 | + <p id="option-text-size-error" class="form-group__error"> |
| 128 | + {{ t('Error:') }} |
| 129 | + {{ form.error('option_text_size') }} |
| 130 | + </p> |
| 131 | + {% endif %} |
| 132 | + |
| 133 | + <select |
| 134 | + id="option-text-size" |
| 135 | + name="option_text_size" |
127 | 136 | {% if form.isInvalid('option_text_size') %} |
128 | | - <p id="option-text-size-error" class="form-group__error"> |
129 | | - {{ t('Error:') }} |
130 | | - {{ form.error('option_text_size') }} |
131 | | - </p> |
| 137 | + aria-errormessage="option-text-size-error" |
| 138 | + aria-invalid="true" |
132 | 139 | {% endif %} |
133 | | - |
134 | | - <select |
135 | | - id="option-text-size" |
136 | | - name="option_text_size" |
137 | | - {% if form.isInvalid('option_text_size') %} |
138 | | - aria-errormessage="option-text-size-error" |
139 | | - aria-invalid="true" |
140 | | - {% endif %} |
141 | | - > |
142 | | - {% for text_size_value, text_size_label in form.textSizeValues %} |
143 | | - <option |
144 | | - value="{{ text_size_value }}" |
145 | | - {{ text_size_value === form.option_text_size ? 'selected' : '' }} |
146 | | - > |
147 | | - {{ text_size_label }} |
148 | | - </option> |
149 | | - {% endfor %} |
150 | | - </select> |
151 | | - </div> |
152 | | - {% endif %} |
| 140 | + > |
| 141 | + {% for text_size_value, text_size_label in form.textSizeValues %} |
| 142 | + <option |
| 143 | + value="{{ text_size_value }}" |
| 144 | + {{ text_size_value === form.option_text_size ? 'selected' : '' }} |
| 145 | + > |
| 146 | + {{ text_size_label }} |
| 147 | + </option> |
| 148 | + {% endfor %} |
| 149 | + </select> |
| 150 | + </div> |
153 | 151 |
|
154 | 152 | <div> |
155 | 153 | <input |
|
0 commit comments