{% macro render_field(f) %} {% if f.type == "BooleanField" %}
{% else %}
{{ f.label }}{% if f.flags.required %} *{% endif %} {{ f(class="form-control", id=f.id, placeholder=f.label.text, **kwargs) | safe }} {% endif %} {% if f.errors %} {% endif %}
{% endmacro %} {% macro orcid_url(user, full_url=False, target="_blank") -%} {%- if user.orcid -%} ORCID iD{{user|orcid if full_url else config.ORCID_BASE_URL.split('/', 2)[2] + user.orcid}} {%- else %} {% endif -%} {%- endmacro %} {% macro image(filename) -%}{{url_for('static', filename='images/' + filename)}}{%- endmacro -%}