Making a page to manage "team members"

Hello,

In a website I'm developing there's an area to manage team members.

The database table is like:

id,email,can_view,can_update,can_delete

What's the best way to make a page to manage this? I'm not very familiar with the front-end. Is there a way to make a table where I could just tick checkboxes (permissions) and then click the Save button and it saves? Or do I need to make a separate page for updating a certain row? And what about for adding? I was thinking of adding a small form before the table, just to add the new member?

Brian and Ben have videos covering that actions...

In a few words (because I know you like it this way), I would go with:

  1. add new Member
    a collapse (triggered from the "New Member" button) and inside it a serverconnect form connected with an insert_Member api

  2. Update
    On the repeatTable you list the can_view,can_update,can_delete permissions as checkboxes with static value 0 and dmx-value:can_view?1:0
    On each row you have an update button that selects the iser DataDetail and opens a Modal with an update form with the new permissions for the specific user

Wouldn't be better if you set groups with preset permissions and just select a group for each user?

2 Likes

We have a similar UI for managing permissions for a role, and then assign role to the team member.

You can do a similar UI for with checkboxes, with SC to update the individual values on change of checkbox state.
Doing a single submit, after making changes for all members, could be tricky on the server side, but doable.

2 Likes

I think that's the best way to do it.