{% extends shell('app') %} {% from "media/_picker.html" import media_picker %} {% block title %}{{ _('Edit role') }}{% endblock %} {% block content %} {#- After a refusal the form shows what was typed (submitted). The current logo above the picker is still the stored one. #} {%- set values = submitted or role %}

{{ _('Edit role') }}

{{ _('The description, the logo and the website appear under the section heading on the public team page.') }}

← {{ _('Back to roles') }}
{% with messages = get_flashed_messages(with_categories=true) %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endwith %}
{{ _('Optional. Useful when the role stands for an organisation, such as a university or a partner lab.') }}
{{ _('Optional. Links the logo and shows the address under the description.') }}
{% if role.logo %}
{{ _('Current logo') }}
{% endif %} {{ media_picker("logo", values.logo, media, value_attr="url") }}
{{ _('Pick a logo from the media library. Upload new logos in /admin/media.') }}
{% endblock %}