Get users for service to show on the manage team page.

Calls api endpoint /service/<service_id>/users to retrieve all users associated with the service
This commit is contained in:
Rebecca Law
2016-02-23 17:51:09 +00:00
parent bcf21f5ab2
commit 2905d11fe4
5 changed files with 31 additions and 6 deletions

View File

@@ -26,13 +26,13 @@ Manage users GOV.UK Notify
users, caption='Active', **table_options
) %}
{% call field() %}
{{ current_user.name }}
{{ item.name }}
{% endcall %}
{{ boolean_field(item.permission_send_messages) }}
{{ boolean_field(item.permission_manage_service) }}
{{ boolean_field(item.permission_manage_api_keys) }}
{% call field(align='right') %}
<a href="{{ url_for('.edit_user', service_id=service_id, user_id=0)}}">Change</a>
<a href="{{ url_for('.edit_user', service_id=service_id, user_id=item.id)}}">Change</a>
{% endcall %}
{% endcall %}