geosolutions-it / geonode-rndt

Geonode-RNDT is a Django App to let GeoNode be able to expose the metadata compliant to the RNDT standard
BSD 2-Clause "Simplified" License
1 stars 1 forks source link

Constraints: GUI - make constraints optional (GeoNode) #16

Open etj opened 3 years ago

etj commented 3 years ago

Since we need a different GUI control for the constraints, we need to make the constraints controls disableable:

GeoNode - restrictions

If possible, re-layout the page in order to fill up the available space with the input controls left.

etj commented 3 years ago

As a first step, it's enough to disable the constraints editing controls. We'll add the re-layout in a second stage.

mattiagiupponi commented 3 years ago

As decided together, the changes are in the RNDT app instead of Geonode thanks to the template override. To disable the controls is enough to expose DISABLE_LAYER_CONSTRAINTS as an environment variable as True. If True (default) -> The constraints are not visible on the UI. if False -> the constraints are visible in the UI