{% ckan_extends %} {% block form %}
{{ h.csrf_input() }}
{% if not user %} {{ _('If you wish to add an existing user, search for their username below.') }} {% endif %}
{% if user %} {% else %} {% endif %}
{% if c.userobj.sysadmin %} {% if not user %}
{{ _('or') }}
{{ _('If you wish to invite a new user, enter their email address.') }}
{% endif %} {% endif %}
{% set format_attrs = {'data-module': 'autocomplete'} %} {{ form.select('role', label=_('Role'), options=c.roles, selected=c.user_role, error='', attrs=format_attrs) }}
{% if user %} {% set locale = h.dump_json({'content': _('Are you sure you want to delete this member?')}) %} {{ _('Delete') }} {% else %} {% endif %}
{% endblock %}