]> git.agnieray.net Git - galette.git/blobdiff - galette/templates/default/pages/configuration_titles.html.twig
Add required attribute on input fields
[galette.git] / galette / templates / default / pages / configuration_titles.html.twig
index c2e31a00f0ca3489c3b761a230b0986a1b6ec41a..14beb5c50405dd5bc5630a0a24b9f15a630d88a5 100644 (file)
                             </span>
                         </td>
                         <td class="left" data-title="{{ _T("Short form") }}">
-                            <input size="20" type="text" name="short_label"/>
+                            <div class="required field">
+                                <label for="short_label" class="displaynone">{{ _T("Short form") }}</label>
+                                <input size="20" type="text" name="short_label" required="required"/>
+                            </div>
                         </td>
                         <td class="left" data-title="{{ _T("Long form") }}">
-                            <input size="20" type="text" name="long_label"/>
+                            <div class="required field">
+                                <label for="long_label" class="displaynone">{{ _T("Long form") }}</label>
+                                <input size="20" type="text" name="long_label" required="required"/>
+                            </div>
                         </td>
                         <td class="center actions_row">
                             <input type="hidden" name="new" value="1" />