The attribute for="..." for the label does not have to be set. The attributes data-before and data-after can be given the texts for the input fields by means of a message key method #{msgs.[einMessageKey]}.
<!-- FILE --><labelclass="form-control form-control--file"> <inputtype="file"id="inputTypeFileId"name="inputTypeFile"> <spanclass="form-control--file-custom"data-before="[Text für before]"data-after="[Text für after]"></span></label>
Checkboxes
By default, the checkboxes are listed in a horizontal row. The attribute for="..." for the label must be set so that the correct checkbox is selected.
By default, the radio buttons are listed in a horizontal row. The attribute for="..." for the label must be set so that the correct radio button is selected.
The form components listed above can be used in the form groups. The columns (col) are to be used according to the Bootstrap 4 Grid rules. The following examples are designed for two- and three-column form groups.
Form group (three-column)
The attribute for="..." for the label is optional. The label can also be replaced by a <span>...</span>.
Boxes are blue by default and are not collapsible or expandable. The colour and functionality can be changed by supplementary CSS classes. The area module__box-title-actions is optional.
<!-- MODULE BOX COLLAPSABLE --><divclass="module module__box module__box--collapsable"> SAME AS MODULE BOX...</div>
Box (grey)
<!-- MODULE BOX GREY --><divclass="module module__box module__box--gray"> SAME AS MODULE BOX...</div>
Box (white)
<!-- MODULE BOX WHITE --><divclass="module module__box module__box--white"> SAME AS MODULE BOX...</div>
Box (complete)
Applies to all colour options.
<!-- MODULE BOX COMPLETE --><divclass="module module__box module__box--collapsable module__box--white"> SAME AS MODULE BOX...</div>
Buttons
There are several types of buttons, all of which have the CSS class btn as their parent class. The modifications of the buttons are controlled by additional CSS classes. The icons in the buttons can be arbitrarily replaced by an icon from the library of Font Awesome 4.
There is one more special feature for a button. If the CSS class btn--toggle is assigned to a button and a <div /> is set as the next element, this DIV can be expanded and collapsed.
Another special button is activated by the CSS class btn--loader. If this class is assigned, an animated loader is displayed in the clicked button during an AJAX request <f:ajax /> and hidden again after the request is completed.