{% extends "base.html" %} {% block title %}Preferences — {{ service_name }}{% endblock %} {% block content %}

Preferences

Account Information

{{ change_user_form.csrf_token() }}
{% if change_user_form.name.errors %} Please enter your name. {% endif %}
{% if change_user_form.email.errors %} Please enter your email address. {% endif %}
https://orcid.org/
{% if change_user_form.orcid.errors %} Please enter your ORCID iD or leave this field blank. {% endif %}
{% if change_user_form.affiliation.errors %} Please enter your affiliation or leave this field blank. {% endif %}

Authentication Methods

{% for authentication in authentications %} {% endfor %}
Username / E-Mail Authentication Method
{{authentication.login['login']}} {{ {'ldap': 'LDAP', 'email': 'Email', 'other': 'Other'}[authentication.type.name.lower()] }}
{{ authentication_method_form.csrf_token() }} {% if error %} {{error}} {%endif%} {% if authentications|length > 1 %} {% if confirmed_authentication_methods > 1 %} {% if authentication.type.name.lower() != 'ldap' %} {% endif %} {% else %} {% if authentication.confirmed %} {% if authentication.type.name.lower() != 'ldap' %} {% endif %} {% else %} {% endif %} {% endif %} {% else %} {% if authentication.confirmed and authentication.type.name.lower() != 'ldap' %} {% endif %} {% endif %}

API Tokens

Note: API tokens are an authentication method for use with the HTTP API.

{% if api_tokens %} {% for authentication in api_tokens %} {% endfor %} {% endif %}
Description
{{ authentication.login['description'] }} View Log
{{ authentication_method_form.csrf_token() }}

Notification Settings

Note: {{ service_name }} will notify you about various events. By default, these notifications will be sent using the {{ service_name }} notification system, but you can also chose to receive them via email or decide to ignore some notification types.

{{ notification_mode_form.csrf_token }} {% set notification_types = { NotificationType.ANNOUNCEMENT: ("Announcements", False), NotificationType.ASSIGNED_AS_RESPONSIBLE_USER: ("Becoming responsible for an object", True), NotificationType.INVITED_TO_GROUP: ("Being invited to a group", False), NotificationType.INVITED_TO_PROJECT: ("Being invited to a project", False), NotificationType.RECEIVED_OBJECT_PERMISSIONS_REQUEST: ("Receiving object permission requests", False), NotificationType.INSTRUMENT_LOG_ENTRY_CREATED: ("Receiving a new instrument log entry", True), NotificationType.INSTRUMENT_LOG_ENTRY_EDITED: ("Receiving an edit to an instrument log", True), NotificationType.REFERENCED_BY_OBJECT_METADATA: ("Being referenced in object metadata", True), NotificationType.OTHER: ("Other", False) } %} {% for notification_type in notification_types %} {% set notification_description = notification_types[notification_type][0] %} {% set notification_can_be_ignored = notification_types[notification_type][1] %} {% for notification_mode in [NotificationMode.IGNORE, NotificationMode.WEBAPP, NotificationMode.EMAIL] %} {% endfor %} {% endfor %}
Notification Type Ignore Web Email
{{ notification_description }} {% if notification_mode != NotificationMode.IGNORE or notification_can_be_ignored %} {% endif %}
{% if not current_user.is_readonly %}

Default Permissions

Note: These permissions will be used for samples, measurements and simulations that you create in the future. To change the permissions for an already existing object, please use the Edit preferences button on the object's site.

{{ default_permissions_form.csrf_token }} {% for possible_permissions in [Permissions.GRANT] %} {% endfor %} {% for possible_permissions in [Permissions.GRANT] %} {% endfor %} {% for possible_permissions in [Permissions.NONE, Permissions.READ] %} {% endfor %} {% if default_permissions_form.project_permissions | length > 0 %} {% endif %} {% for project_permissions_form in default_permissions_form.project_permissions %} {% set project_id = project_permissions_form.project_id.data | int %} {% set project = get_project(project_id) %} {% for possible_permissions in [Permissions.NONE, Permissions.READ, Permissions.WRITE, Permissions.GRANT] %} {% endfor %} {% endfor %} {% if default_permissions_form.group_permissions | length > 0 %} {% endif %} {% for group_permissions_form in default_permissions_form.group_permissions %} {% set group_id = group_permissions_form.group_id.data | int %} {% set group = get_group(group_id) %} {% for possible_permissions in [Permissions.NONE, Permissions.READ, Permissions.WRITE, Permissions.GRANT] %} {% endfor %} {% endfor %} {% if default_permissions_form.user_permissions | length > 0 %} {% endif %} {% for user_permissions_form in default_permissions_form.user_permissions %} {% set user_id = user_permissions_form.user_id.data | int %} {% set user = get_user(user_id) %} {% set permissions = user_permissions.get(user_id, Permissions.NONE) %} {% if user.id == current_user.id %} {% endif %} {% for possible_permissions in [Permissions.NONE, Permissions.READ, Permissions.WRITE, Permissions.GRANT] %} {% endfor %} {% endfor %}
Special Groups None Read Write Grant
Administrators
Instrument Scientists
Everyone
Projects
{{ project.name }} {{ project_permissions_form.csrf_token }}
Groups
{{ group.name }} {{ group_permissions_form.csrf_token }}
Users
{{ user.name }} {{ user_permissions_form.csrf_token }}
{% if users %}

Add User

{{ add_user_permissions_form.csrf_token }} {% for possible_permissions in [Permissions.NONE, Permissions.READ, Permissions.WRITE, Permissions.GRANT] %} {% endfor %}
User None Read Write Grant
{% endif %} {% if groups %}

Add Group

{{ add_group_permissions_form.csrf_token }} {% for possible_permissions in [Permissions.NONE, Permissions.READ, Permissions.WRITE, Permissions.GRANT] %} {% endfor %}
Group None Read Write Grant
{% endif %} {% if projects %}

Add Project

{{ add_project_permissions_form.csrf_token }} {% for possible_permissions in [Permissions.NONE, Permissions.READ, Permissions.WRITE, Permissions.GRANT] %} {% endfor %}
Project None Read Write Grant
{% endif %} {% endif %}

Other Settings

{{ other_settings_form.csrf_token }}
{% if user.is_admin %}

Administrator Settings

{% endif %}
{% for authentication in authentications %} {% endfor %} {% if created_api_token %} {% endif %} {% endblock %} {% block scripts %} {{ super() }} {% if created_api_token %} {% endif %} {% if create_api_token_form.description.errors %} {% endif %} {% endblock %} {% block stylesheets %} {{ super() }} {% endblock %}