cbrain
cbrain copied to clipboard
DataProviders: restriction panels: new toggles and defaults
A data provider's show
page has a few control panels where the admin can decide if files can be moved or copied to other providers, and which remote_resources (BrainPortals and Bourreaux) can synchronize the file contents.
This is done with several large tables of checkboxes.
Add:
- a 'toggle all' checkbox at the top of each table
- a master 'default' checkbox with a value that will apply to future DPs and remote_resources
- HTML label tags on all the names
For 2), this will also require adding support to fetch that default value in the DataProvider class, in methods rr_allowed_syncing?
and dp_allows_copy?
Should the default for the 'default' checkbox 'no' or 'yes?
I think updating all DP once new one added will result in simpler code/logic, but could try go as suggested