Download admin/templates/security/_macros.html from azils3/n: direct link, hf CLI and curl.
- Browser
- Download file 704 Bytes
-
https://huggingface.co/spaces/azils3/n/resolve/main/admin/templates/security/_macros.html
- Command line
-
hf download hf://spaces/azils3/n/admin/templates/security/_macros.html
-
curl -L -o _macros.html https://huggingface.co/spaces/azils3/n/resolve/main/admin/templates/security/_macros.html
704 Bytes
| {% macro render_field_with_errors(field) %} | |
| <div class="form-group"> | |
| {{ field.label }} {{ field(class_='form-control', **kwargs)|safe }} | |
| {% if field.errors %} | |
| <ul> | |
| {% for error in field.errors %} | |
| <li>{{ error }}</li> | |
| {% endfor %} | |
| </ul> | |
| {% endif %} | |
| </div> | |
| {% endmacro %} | |
| {% macro render_field(field) %} | |
| <p>{{ field(class_='form-control', **kwargs)|safe }}</p> | |
| {% endmacro %} | |
| {% macro render_checkbox_field(field) -%} | |
| <div class="form-group"> | |
| <div class="checkbox"> | |
| <label style="padding-left: 0px"> | |
| {{ field(type='checkbox', style='margin-left: 0px;', **kwargs) }} {{ field.label }} | |
| </label> | |
| </div> | |
| </div> | |
| {%- endmacro %} | |