Content
View differences
Updated by Parimal Satyal over 1 year ago
**Current situation**
* Currently we have two menu items:
* Generate PDF
* Download PDF
* The difference between both features is difficult to explain and to understand.
**Acceptance criteria**
* The "Download PDF" menu item is removed.
* We support multiple templates to generates PDF, e.g. contract, [business letter](https://community.openproject.org/wp/60437).
* Templates are defined as YAML files manually uploaded by administrators.
* The Generate PDF option is retained. It triggers a modal with different export options.
* The footer of the modal has two options:
* Download (primary)
* Cancel (secondary)
* The first option is a dropdown with label "Template".
* The list of "Template", the user gets to select from these options depends on which templates have been enabled for the present type in the admin settings.
* The first option is selected by default.
default:
* Possible templates options (for the moment) are:
* Attributes and description (the template which is currently used by the "Download PDF" action)
* Contract
* [Business letter](https://community.openproject.org/wp/60437) <mention class="mention" data-id="60437" data-type="work_package" data-text="#60437">#60437</mention> (the development of this templates is out of scope for this feature)
* _\[open\] Each of these options also has an associated description to help users understand what they mean. These appear as the caption mean_
* _(This is open because descriptions might not be available in a standard drop-down, need to the dropdown, depending on the selection. see if we can use an Action list instead)._
* Additional options remain as they are today, but have changes in layout, name and guideline text compared to the current dialog (see [mockup](https://www.figma.com/design/E8rnFXuNGRJ4qrFOmbsr0J/Generate-PDF?node-id=0-1)): [mockup](https://www.figma.com/design/E8rnFXuNGRJ4qrFOmbsr0J/Generate-PDF?node-id=0-1)) ie.:
* Hyphenation
* Paper size
* Language and hyphenation
* Additional header text
* Footer text
* Each The "Attributes and description" template brings is default for the above mentioned options, along with paper size.
* In Administration → Work packages → Types → _{Type}_ Hyphenation is on by default in this template
* The new "Attributes and description" template also get export options:
* There is a new tab called "Generate PDF" Hyphenation
* In this tab, there is a list of all available templates (in a dragabble box component) Paper size
* Header right
* Footer center
* Each template has an enable/disable toggle to enable or disable that template brings default for the present type
above mentioned options
* The order For each work package type a default template can be rearranged by dragging the items up or down
defined.
* The first one This is considered the default selection global setting in the 'Generate PDF' dialog for that type
Administration → Work packages → Types → {Type}
* This is explained in For each work package type indiviual templates can be activated and deactivated (it does not really make sense to create a short text at the top of the page contract from a bug report)
* Currently we have two menu items:
* Generate PDF
* Download PDF
* The difference between both features is difficult to explain and to understand.
**Acceptance criteria**
* The "Download PDF" menu item is removed.
* We support multiple templates to generates PDF, e.g. contract, [business letter](https://community.openproject.org/wp/60437).
* Templates are defined as YAML files manually uploaded by administrators.
* The Generate PDF option is retained. It triggers a modal with different export options.
* The footer of the modal has two options:
* Download (primary)
* Cancel (secondary)
* The first option is a dropdown with label "Template".
* The list of
* The first option is selected by default.
* Attributes and description (the template which is currently used by the "Download PDF" action)
* _(This is open because descriptions might not be available in a standard drop-down, need
* Additional options
* Hyphenation
*
*
* Additional header text
* Footer text
* Each
* The new "Attributes and description" template also get export options:
* There is a new tab called "Generate PDF"
* In this tab, there is a list of all available templates (in a dragabble box component)
*
* Footer center
*