diff --git a/ckan/src/ckanext-igsn-theme/ckanext/igsn_theme/templates/organization/member_new.html b/ckan/src/ckanext-igsn-theme/ckanext/igsn_theme/templates/organization/member_new.html new file mode 100644 index 00000000..92105803 --- /dev/null +++ b/ckan/src/ckanext-igsn-theme/ckanext/igsn_theme/templates/organization/member_new.html @@ -0,0 +1,99 @@ +{% 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 not user %} +
+
+ {{ _('or') }} +
+
+
+
+ +

+ {{ _('If you wish to invite a new user, enter their email address.') }} +

+
+ +
+
+
+ {% endif %} +
+ + {% set roles = roles|selectattr("value", "!=" , "member")|list %} + + {% if user and user.name == c.user and user_role == 'admin' %} + {% set format_attrs = {'data-module': 'autocomplete', 'disabled': 'disabled'} %} + {{ form.select('role', label=_('Role'), options=roles, selected=user_role, error='', attrs=format_attrs) }} + {{ form.hidden('role', value=user_role) }} + {% else %} + {% set format_attrs = {'data-module': 'autocomplete'} %} + {{ form.select('role', label=_('Role'), options=roles, selected=user_role, error='', attrs=format_attrs) }} + {% endif %} + +
+ {% if user %} + {{ _('Delete') }} + + {% else %} + + {% endif %} +
+
+ {% endblock %} + + +{% block secondary_content %} + {% if organization %} + {% snippet 'snippets/organization.html', organization=organization %} + {% else %} + {{ super() }} + {% endif %} +
+

+ + {{ _('What are roles?') }} +

+
+ {% trans %} +

Admin: Can add/edit and delete datasets, as well as + manage organization members.

+

Curator: Can add and edit datasets, but not manage + organization members.

+ {% endtrans %} +
+
+{% endblock %}