website need a customs page to control users assigned roles
Budget: £10 – £15 GBP
We are looking for Drupal expert to create a permissions module that allows a user with a specific role 'User Admin' to be allowed to administer users on the site. It is estimated this work will take 7-10 hours to complete.
We do not want to use 'Administrator' role as that would then allow the users to modify the site and other settings.
The module will allow specific permissions to be controlled, and allow specific management tasks.
The permissions will be store inline with current Drupal standards.
There are 2 types of user type Standard and Suppier,
Supplier is only permitted 'Supplier' role, supplier does not have any other permissions.
Standard User is allowed a specific permissions only, keep that list in a specific custom table 'custom_user_roles' with a single field unique indexed 'allowed_roles'
It will be 2 pages/views.
1st page, the layout will be with a button 'Create New' and search box with button 'Search'
Below that a Dropdown of how many items to show in the table, 25,50,100,200
and next to that a page navigation with 'First' 'Previous' 'Current' 'Next' 'Last' 'Goto Page'
Below that is a table, with sortable header fields.The columns are expected to be:
id,user_name,email,user type,status(active/blocked), actions
id = user id
username = user name
email = email
usertype = 'Standard' or 'Supplier'
status = active / blocked
Unblock (if current Blocked) or Block (if currently Active)
Reset PW
Change Roles
For whatever is clicked, a dialog is displayed
title'Question'
messaage 'Do you want to {action_name} ?'
buttons 'Yes' 'No'
if yes is select the action is done and page updated
if the select either 'Create New' button at top of page 1 or 'yes' for change roles, then this is page 2
Form is dynamic and changes on selection of the radio button.
The layout will be 3 sections, header, centre, footer.
header is simple radio button with two options, if option is 'Change Roles'
1) 'Standard User'
2) 'Suppier'
The centre will display input request for
Username - text input (populated with current selected users username)
Email address - text input with validation for email (populated with selected users current email)
below that will be a series of check boxes to allow changing of role (with current already ticked) the list will be from table 'custom_user_roles' and the last will be manually added role 'supplier' unchecked, (disabled/greyed out)
unless the selected user is Supplier. if supplier then show all the rest disabled/greyed out with only supplier checked but read only.
the footer will contain 2 buttons 'Back' 'Save Changes' Save Changes is disabled unless a change is detected, then becomes active.
when save is clicked, display a dialog
title'Question'
messaage 'Do you want to save changes ?'
buttons 'Yes' 'No'
if yes is selected the action is done and user returned to page 1
note when saving,
if user is supplier then run query to delete any of the Standard User roles fo that selected user
if user is standard then run a query to delete supplier role from that users roles.
Coding must be neat and well documented/commented
You will need to advise on configuring this to main menu
Whoever is award and successfully complets this will be offered further work to create more modules.
We do not want to use 'Administrator' role as that would then allow the users to modify the site and other settings.
The module will allow specific permissions to be controlled, and allow specific management tasks.
The permissions will be store inline with current Drupal standards.
There are 2 types of user type Standard and Suppier,
Supplier is only permitted 'Supplier' role, supplier does not have any other permissions.
Standard User is allowed a specific permissions only, keep that list in a specific custom table 'custom_user_roles' with a single field unique indexed 'allowed_roles'
It will be 2 pages/views.
1st page, the layout will be with a button 'Create New' and search box with button 'Search'
Below that a Dropdown of how many items to show in the table, 25,50,100,200
and next to that a page navigation with 'First' 'Previous' 'Current' 'Next' 'Last' 'Goto Page'
Below that is a table, with sortable header fields.The columns are expected to be:
id,user_name,email,user type,status(active/blocked), actions
id = user id
username = user name
email = email
usertype = 'Standard' or 'Supplier'
status = active / blocked
Unblock (if current Blocked) or Block (if currently Active)
Reset PW
Change Roles
For whatever is clicked, a dialog is displayed
title'Question'
messaage 'Do you want to {action_name} ?'
buttons 'Yes' 'No'
if yes is select the action is done and page updated
if the select either 'Create New' button at top of page 1 or 'yes' for change roles, then this is page 2
Form is dynamic and changes on selection of the radio button.
The layout will be 3 sections, header, centre, footer.
header is simple radio button with two options, if option is 'Change Roles'
1) 'Standard User'
2) 'Suppier'
The centre will display input request for
Username - text input (populated with current selected users username)
Email address - text input with validation for email (populated with selected users current email)
below that will be a series of check boxes to allow changing of role (with current already ticked) the list will be from table 'custom_user_roles' and the last will be manually added role 'supplier' unchecked, (disabled/greyed out)
unless the selected user is Supplier. if supplier then show all the rest disabled/greyed out with only supplier checked but read only.
the footer will contain 2 buttons 'Back' 'Save Changes' Save Changes is disabled unless a change is detected, then becomes active.
when save is clicked, display a dialog
title'Question'
messaage 'Do you want to save changes ?'
buttons 'Yes' 'No'
if yes is selected the action is done and user returned to page 1
note when saving,
if user is supplier then run query to delete any of the Standard User roles fo that selected user
if user is standard then run a query to delete supplier role from that users roles.
Coding must be neat and well documented/commented
You will need to advise on configuring this to main menu
Whoever is award and successfully complets this will be offered further work to create more modules.
Related categories:
Drupal