Enhance constraint display in rota detail view with default value indication and improved layout
This commit is contained in:
@@ -176,7 +176,14 @@ def rota_detail(request, rota_id):
|
||||
desc = available_constraints_rich.get(k, {}).get("description")
|
||||
except Exception:
|
||||
desc = None
|
||||
configured_constraints[k] = {"value": v, "pretty": pretty, "typed": (k in available_constraints_rich), "description": desc}
|
||||
default_val = available_constraints_rich.get(k, {}).get("default")
|
||||
configured_constraints[k] = {
|
||||
"value": v,
|
||||
"pretty": pretty,
|
||||
"typed": (k in available_constraints_rich),
|
||||
"description": desc,
|
||||
"default": default_val,
|
||||
}
|
||||
except Exception:
|
||||
configured_constraints = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user