{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2015-2018 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {% macro render_field(field, icon="", placeholder='', autofocus=False) %}
{%- set extras = dict(autofocus="") if autofocus else dict() %} {{field(class_="form-control", placeholder=placeholder or _(field.label.text | string), **extras)}} {%- if icon %} {%- endif%}
{% endmacro %} {% macro oauth_button(name, next=None) %} {{ _('Sign in with %(title)s', title=config.OAUTHCLIENT_REMOTE_APPS[name]['title']) }} {% endmacro %}