{% extends "package/read_base.html" %} {% import 'macros/form.html' as form %} {% block head_extras %}{% endblock %} {% block content_primary_nav %} {{ h.build_nav_icon('dataset_read', _('Dataset'), id=c.pkg.name) }} {{ h.build_nav_icon('dataset_activity', _('Activity Stream'), id=c.pkg.name) }} {{ h.build_nav_icon('related_list', _('Related'), id=c.pkg.name) }} {% endblock %} {% block primary_content_inner %} {% block subtitle %}{{ _('Dataset title') }}: {{ c.pkg.title }}{% endblock %} {% set filtered_members = h.filter_system_users(c.members) %}

{{ _('{0} named roles').format(filtered_members|length) }}

{% for usr in filtered_members %} {% endfor %}
{{ _('User') }} {{ _('Role') }}
{{ h.linked_user(usr.user_id, maxlength=20) }} {{ usr.role }} {% set locale = h.dump_json({'content': _('Are you sure you want to delete this member?')}) %}

{% block page_heading %}{{ _('Add a user for role') }}{% endblock %}

{% block form %}
{% set format_attrs = {'data-module': 'autocomplete', 'data-module-source': '/api/2/util/user/autocomplete?q=?'} %} {{ form.input('username', id='field-username', label=_('User'), placeholder=_('Username'), value='', error='', classes=['control-medium'], attrs=format_attrs) }} {% set format_attrs = {'data-module': 'autocomplete'} %} {{ form.select('role', label=_('Role'), options=c.roles, selected=c.user_role, error='', attrs=format_attrs) }}

{{ _('Send invitation') }}

{{ _('Did not find the user you were searching for? Send her or him an email invitation to log in to Etsin.') }}

{{ _('If you want to, you can add your own message to be sent to the person.') }} {{ _('After the person has logged in to the service, she or he can be added to a role.') }}

{{ form.input('email', id='field-email', label=_('Email address'), placeholder=_('john.doe@example.com'), value='', error='', classes=['control-medium'], type='email') }} {{ form.textarea('mail_message', id='field-emailmsg', label=_('Your message'), value='', error='', classes=['control-medium']) }} {% if g.recaptcha_publickey %}
{% endif %}
{% endblock %} {% endblock %} {% block secondary_content %} {% block secondary_help_content %}{% endblock %} {% block info_module %}

{{ _('Modify dataset\'s editors and admins') }}

{% trans %} Here you can add and remove editors of this dataset. You can also add and remove admins, if you have sufficient privileges. {% endtrans %}

{% trans %} If you can not find a user, most likely he or she hasn't logged in yet. Then invite him or her to use this service via email. Note, that the email is just plain email, the service doesn't provide any automation. {% endtrans %}

{% endblock %} {% endblock %}