Proof of concept for adding new statements( T406989)

Changes included:

  • Added an “Add information” button below the biography section.
  • The button is conditionally displayed only if there are missing fields.
  • Clicking the button will open a dropdown of missing fields.
  • Selecting a field displays an input box to enter the value.
  • Clicking “Save” button alerts the saved field and resets the UI.
  • Fields like “Date of birth” and “Date of death” automatically use a date input type.
  • Made the UI responsive.
  • Added an event listener for the Enter key so the input gets saved on press.
  • Implemented the missing field logic on the frontend using js and html.

after changes:

  • when there is no missing detail, add information button will not be display.

image

  • in case of missing field value

image image

Edited by Aradhya

Merge request reports

Loading