{% macro entry_required() %} * {%- endmacro %} {% macro info(text) %} {%- endmacro %} {# Renders an input field wrapped in a DIV with mb-3. @param {string} name - Will be used as value for "id" and "name" attributes. @param {string} label - If not empty a "label" element with this text will be rendered. @param {string} [opt.type="text"] - Optional type of the input field. Defaults to "text". @param {bool} [opt.hide_label=false] - If true the label will be hidden. This could be useful for screenreders. Defaults to false. @param {bool} [opt.required_icon=false] - Whether an asterisk should be displayed after the label to indicate that this field is mandatory. Won't be displayed without a label. Defaults to false. @param {string} [opt.info] - If set an additional info icon will be added to the label with the text as tooltip. Won't be displayed without a label. @param {string} [opt.value=""] - Optional value to set. Defaults to empty string. @param {int} [opt.min_length] - Optional "minlength" attribute value. @param {int} [opt.max_length] - Optional "maxlength" attribute value. @param {int|float|string} [opt.min] - Optional "min" attribute value. @param {int|float|string} [opt.max] - Optional "max" attribute value. @param {int|float} [opt.step] - Optional "step" attribute value. @param {string} [opt.autocomplete] - Optional "autocomplete" attribute value. @param {bool} [opt.required=false] - Whether to add the "required" attribute. Defaults to false. @param {bool} [opt.disabled=false] - Whether to add the "disabled" attribute. Defaults to false. @param {bool} [opt.readonly=false] - Whether to add the "readonly" attribute. Defaults to false. #} {% macro input(name, label, opt) %}