UMB-CS-682-Team-03 / tracker

0 stars 0 forks source link

Improve the default titles on popup windows. #81

Closed rouilj closed 5 months ago

rouilj commented 5 months ago

The current popup windows use the label of the link that invokes them. So a link (list) will result in a popup named (link) - issue1 - classhelper by default. While the link can be changed by giving arguments to the classhelp() method, usually the default of (list) is used.

This can be improved in the default case (where data-popup-title is not set) by:

  1. using the property argument (props.formProperty) if present
  2. using the classname that is shown in the popup (props.apiClassName) along with "Info on" to indicate it's a readonly popup

So you get titles like:

for the windows.

If the formProperty or apiClassName isn't descriptive enough the admin can use a data-popup-title.