# Export template editor ## Purpose and entry Open `/export-templates/editor/:id?kind=header` or `?kind=footer` to edit a particular partial. Adding from the [library](/en/docs/export-templates) uses `new` in place of the ID. The library tab determines the kind, not the editor. To simplify editing, the partial appears as the body of a single preview sheet, but only its sections are saved. It does not define an entire document or the formats of future exports. ## Working with the layout 1. In the template properties, enter a multilingual name, such as «Шапка вуза / University letterhead / Բուհի վերնագիր». At least one nonempty translation is required. Set a background color or image if needed. 2. Insert a row with one, two or three columns. Add blocks from the palette to its cells. 3. Select a block, cell or row in the preview to change properties in the inspector. Duplicate or remove individual elements. The toolbar supports undo and redo. 4. Add and format variables in the text editor. Verify literal translations and preview language. 5. Save. If layout validation fails, correct the indicated elements. Return to the list to activate the newly saved template. The preview in this mode is schematic, not linked to a particular student or learning plan. Real-record preview and version comparison are hidden. Verify final output using a test export. ## Partial elements | Element | Purpose | | --- | --- | | Rich text and variables | Titles, institutional details and labels | | Image | For example an approved logo | | Table | Static grid for institutional details | | Date | Current date with the selected format | | Signature | Signature area | | Divider, spacer, group | Layout and visual separation | | Input and select | Dynamic elements available from the shared editor | A partial has no student or employee subject and its sections cannot bind to datasets (`binding.source = none`). The module's dynamic content table is hidden. Student/employee photos and performance summaries are also unavailable in this export palette. Use a corresponding content export template for data linked to particular records. ## Variables The global partial catalog is deliberately limited because the same partial can serve multiple modules. | Key | Output | | --- | --- | | `university.name` | Institution name | | `university.abbreviation` | Abbreviation | | `university.address` | Address | | `university.website` | Website | | `university.email` | Email address | | `university.phone` | Phone number | | `employee.by_role_scope` | Name of employee selected by role | | `role.name` | Name of the selected role | | `signatory.attribute` | Signatory detail: position, position abbreviation, academic position, department, scientific degree or title | Institution details come from the [institution record](/en/docs/educational-institution). Signatory variables require selecting a role (`role_id`); the signatory detail variable additionally requires an attribute. The role name is translated from the [role catalog](/en/docs/roles), independently of whether an employee is found. Legacy separate signatory attribute keys remain supported for existing templates; the new palette uses the unified setting. ### Signatory Select a role and, if necessary, pin an employee from the available candidates. A global partial has no record subject, so global role assignments matter in ordinary global exports. If an employee is not pinned and a role has several eligible holders, the export form can request a signatory selection. Use the same role and consistent employee selection to ensure the name and attributes refer to the same person. These printed details are not an electronic signature. ## Example Create a three-column header: approved logo on the left, `university.name` and `university.address` in the center, `university.website` and `university.phone` on the right. In a footer, add a date, signature area, Rector role name, the employee variable for that role and a position attribute. Preview every language and check long names and addresses. Save the header and footer separately and activate them in their respective lists. Generate a test PDF and XLSX in the intended operational module and verify the image, text wrapping, institutional details and selected signatory. ## Limits and access Saving requires creation or editing permissions for the corresponding partial kind. Uploading and deleting media requires the appropriate kind's rights. The editor has no organizational scopes. Status is managed in the list, not through a separate publish-version button in the editor. The server validates the partial layout, including allowed variables and binding sources. The global editor creates partials in the `generic` context; other application workflows can create contextual partials. An existing partial's context is immutable because it defines valid variables. Do not insert arbitrary module data keys into a global partial. ## Related guides - [Header and footer library](/en/docs/export-templates) - [Content export templates](/en/docs/content-export-templates) ## Implementation references - [Partial editor entry](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/ExportTemplates/Editor/index.tsx) - [Global partial adapter](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/ExportTemplates/exportPartialAdapter.ts) - [Editor layout mapping](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/ContentExportTemplates/partialTemplateAdapter.ts) - [Editor behavior](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/features/documentBuilder/editor/index.tsx) - [Block palette](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/features/documentBuilder/model/palette.ts) - [Creation validation](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ExportTemplates/Http/Requests/StoreExportPartialRequest.php) - [Variable catalog](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ExportTemplates/Services/ExportVariableCatalog.php) - [Signatory selection](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ExportTemplates/Services/ExportSignatoryPickService.php) - [Layout validation](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ExportTemplates/Services/ExportPartialService.php)