csse-uoft / ckanext-udc

GNU Affero General Public License v3.0
1 stars 0 forks source link

Add a new long description to JSON configuration #7

Closed bgajdero closed 1 year ago

bgajdero commented 1 year ago

Add a new parameters: "long_description". Limit display to 2048 characters. Display an error on saving the JSON file if text is longer than 2048 characters.

1) On the UI, show a "More..." button to expand the and display the full "long_description" value. Replace "More.." with "Less..."

2) On the UI, show a "Less..." button to hide the full "long_description" value. Replace "Less..." with "More..."

e.g. "title": "Maturity Level 1 (Basic Information)", "long_description": "display this text by the field.", "name": "maturity_level_1", "fields": [{ "name": "theme", "label": "Domain / Topic", "type": "text" }, { "ckanField": "title" } }]

bgajdero commented 1 year ago

Maturity Model Screen v March 08.pdf