15 feature custom templates
Cédric Bonhomme edited this page 2018-03-14 10:15:22 +01:00

Presentation

Allow an administrator of a MONARC front office instance to set custom templates for deliveries.

The default behavior must be to use the templates bundled with MONARC or the ones provided by the back office.

  • the administrator of a front office won't be able to delete templates provided by the back office (or the default templates bundled with MONARC);
  • the administrator of a front office will be able to upload custom templates directly on the front office;
  • to go further it should also be considered to allow several templates per languages per category of deliverable. This do not add to much complexity on the back end (models) of MONARC. But the user interface to manage the templates in the front office should stay usable and friendly;
  • by default maximum 3 templates per category (without the defaults templates);
  • custom templates will be available for the whole front office;

Major changes required

  • update the models (zm-client);
  • actually controllers (ApiDeliveriesModelsController) are in zm-backoffice and are using the service DeliveriesModelsService from zm-core. The controllers should also be moved or duplicated;
  • add a view in the front office for the management of templates (.docx):
    • ideally: ng-backoffice (deliveries_models.kb_mgmt.html and create.deliverymodel.html) → ng-anr (with some tests if we are in BO or FO)
    • → almost the same page than the page actually used in the back office but with the possibility to manage several deliverables per category (maybe thanks to tabs);