# Graduation document templates ## Purpose Open **Graduation → Graduation document templates** (`/graduation/document-templates`). Each template is a document type, for example Diploma or Diploma supplement. It does not create student records. Use the template when [issuing a graduation document](/en/docs/graduation-documents). This is a separate library from [reference templates](/en/docs/reference-templates) and [export templates](/en/docs/export-templates). Similar editor controls do not make the libraries interchangeable. ## List The table shows name, paper format and status (active/inactive). Choose Add for a new editor or open an existing row. The settings gear opens the [header/footer library](/en/docs/graduation-document-template-partials). Prepare reusable headers and signature sections before editing the body if needed. ## Preparation 1. Open the new [template editor](/en/docs/graduation-document-template-editor). 2. Add a name in the required languages: RU «Приложение к диплому», EN “Diploma supplement”, HY «Դիպլոմի հավելված». The server requires at least one translation, name up to 255 characters; description is optional. 3. Choose A3, A4, A5 or Letter, and portrait or landscape. The server defaults to A4 portrait. 4. Select optional header/footer of the correct type, and complete the body, data bindings and manual fields. 5. Disable Enabled while preparing it and save. After checking the layout, enable and save again. Saving a template does not issue a document. A new template defaults to is_enabled=true, so explicitly disable unfinished templates. Enabled is the operational availability switch; there is no separate approval, version or publication status. ## Edit, deactivate and delete Template edits apply to future issuance and explicit snapshot regeneration (reprint/sync). They do not automatically update previously issued documents. For a significantly revised approved form, consider making a separate template with a clear name and disabling the obsolete one. The server blocks deletion when issued records refer to the template (422). Disable an obsolete type instead. An unused template is soft-deleted. Server deleted-list and restore operations exist, but the current table hides the trash action. Do not expect restoration on this screen. ## Permissions and scopes The route requires `graduation-document-templates`. Groups: `GraduationDocumentTemplatesTablePull`, `GraduationDocumentTemplatesCreateAction`, `GraduationDocumentTemplatesEditAction`, `GraduationDocumentTemplatesDeleteAction`, `GraduationDocumentTemplatesRestorePull`, `GraduationDocumentTemplatesRestoreAction`. The gear requires create access. Server reads, variable retrieval and deleted-list retrieval bind to `graduation-document-templates.index`; creation, editing, deletion and restoration bind to `graduation-document-templates.store`. Templates have no special Faculty/Profession/Department scopes: this is an institution-wide library, not personal documents. Headers and footers have separate permission modules. See [role permissions](/en/docs/role-permissions). ## Troubleshooting If a template is missing at issuance, verify that it is saved and enabled and that the role can read templates. If saving fails, check the translated name, body layout, variables and selected partial kinds. If deletion fails, check linked issued documents; do not remove those documents just to clean up a template. ## Implementation references - [GraduationDocumentTemplatesDescriptor.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Graduation/GraduationDocuments/GraduationDocumentTemplatesDescriptor.tsx) - [index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Graduation/GraduationDocuments/GraduationDocumentTemplates/container/index.tsx) - [GraduationDocumentTemplatesService.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Graduation/GraduationDocuments/GraduationDocumentTemplatesService.ts) - [GraduationTemplateSettings.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Graduation/GraduationDocuments/GraduationDocumentTemplates/GraduationTemplateSettings.tsx) - [api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/GraduationDocuments/routes/api.php) - [GraduationDocumentTemplateController.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/GraduationDocuments/Http/Controllers/GraduationDocumentTemplateController.php) - [IndexGraduationDocumentTemplateRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/GraduationDocuments/Http/Requests/IndexGraduationDocumentTemplateRequest.php) - [StoreGraduationDocumentTemplateRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/GraduationDocuments/Http/Requests/StoreGraduationDocumentTemplateRequest.php) - [GraduationDocumentTemplateService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/GraduationDocuments/Services/GraduationDocumentTemplateService.php)