cbrain icon indicating copy to clipboard operation
cbrain copied to clipboard

DataProviders: restriction panels: new toggles and defaults

Open prioux opened this issue 4 years ago • 1 comments

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:

  1. a 'toggle all' checkbox at the top of each table
  2. a master 'default' checkbox with a value that will apply to future DPs and remote_resources
  3. 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?

prioux avatar Sep 02 '20 17:09 prioux

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

MontrealSergiy avatar Feb 29 '24 21:02 MontrealSergiy