Skip to content

Add interventions and tickets lists to WebPortal (controllers, models, templates, i18n, setup)#28

Open
mapiolca wants to merge 1 commit intopatch-8from
2026-03-19-add-support-for-intervention-slips-and-tickets
Open

Add interventions and tickets lists to WebPortal (controllers, models, templates, i18n, setup)#28
mapiolca wants to merge 1 commit intopatch-8from
2026-03-19-add-support-for-intervention-slips-and-tickets

Conversation

@mapiolca
Copy link
Copy Markdown
Owner

Motivation

  • Provide customers access to their interventions and tickets from the public WebPortal and allow administrators to enable/disable those list pages via configuration.
  • Reuse WebPortal list infrastructure to display intervention and ticket records with appropriate columns, actions and localized labels.

Description

  • Added localized language entries for interventions and tickets in website.lang for en_US, fr_FR, de_DE, es_ES, and it_IT.
  • Introduced two new controllers FicheinterListController and TicketListController under htdocs/webportal/controllers/ and registered their routes in Context::initController via ficheinterlist and ticketlist definitions.
  • Added two WebPortal model wrappers WebPortalFicheinter and WebPortalTicket under htdocs/webportal/class/ to expose limited field sets and status labels for lists.
  • Extended FormListWebPortal (htdocs/webportal/class/html.formlistwebportal.class.php) to support intervention-related download_link/signature_link behavior and to render ticket consultation links and assigned-user display.
  • Updated WebPortal templates list-titles.tpl.php, list-lines.tpl.php, and list-filters.tpl.php to include a consultation_link column when present.
  • Added menu entries for interventions and tickets in htdocs/public/webportal/tpl/menu.tpl.php and new setup flags in htdocs/webportal/admin/setup.php to enable access via WEBPORTAL_FICHEINTER_LIST_ACCESS and WEBPORTAL_TICKET_LIST_ACCESS.

Testing

  • No automated tests were executed as part of this change.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant