From 94b573d602b21c336160865140366250ac3d011d Mon Sep 17 00:00:00 2001 From: James Tocknell Date: Thu, 1 Dec 2022 12:33:32 +1100 Subject: [PATCH] Add improved UI for invites Signed-off-by: James Tocknell --- views/home.handlebars | 7 ++-- views/invite.handlebars | 60 +++++++++++++++++++++++-------- views/my-invites.handlebars | 70 +++++++++++++++++++++++++------------ 3 files changed, 97 insertions(+), 40 deletions(-) diff --git a/views/home.handlebars b/views/home.handlebars index 822fc7d5..dc726bdf 100644 --- a/views/home.handlebars +++ b/views/home.handlebars @@ -21,10 +21,11 @@
  • {{ this }}
  • {{/each}} + - diff --git a/views/invite.handlebars b/views/invite.handlebars index 8e2860b2..71e3dd7a 100644 --- a/views/invite.handlebars +++ b/views/invite.handlebars @@ -1,14 +1,46 @@ -

    Invite User to Role in Project

    -

    Note that only admins of teams and the system admin can add users to -roles.

    -

    -

    - - - - - - - -
    -

    + +
    +
    +
    +
    +
    +
    + Invite Users +
    +
    + If you wish to invite users to specific roles in a notebook, fill in the form below. Note that only admins of teams and the system admin can add users to roles. + + +
    +
    + + +
    Add the email address of the user you wish to invite.
    +
    +
    + + +
    Notebooks names must be formatted as lowercase with underscores, i.e., CSIRO-geochemistry should be entered as csiro_geochemistry
    +
    +
    + + +
    Add a single role here. Roles include: admin (user can see all records) and team (user can only see their own records). Check the notebook builder for all available roles and associated permissions set up for your notebook.
    +
    + + + +
    + +
    +
    +
    +
    +
    diff --git a/views/my-invites.handlebars b/views/my-invites.handlebars index f670c65f..6d5d6c59 100644 --- a/views/my-invites.handlebars +++ b/views/my-invites.handlebars @@ -1,23 +1,47 @@ -
    Here are your invites:
    - - - - - - - - - - - -{{#each invites}} - - - - - - - -{{/each}} - -
    InviterProjectRoleAcceptReject
    {{ this.requesting_user }}{{ this.project_id }}{{ this.role }}Accept inviteReject invite
    + +
    +
    +
    +
    +
    +
    + My Invites +
    +
    + + + + + + + + + + + + + + + +
    InviterNotebook RoleAction
    test.usermoderator +
    + + +
    +
    + + +
    +
    +
    +
    +