Set up the page
Choose Add in Academic Card Templates or open an existing layout. The address is /students/card-templates/:id, with new for a new form. Enter translated names. Select A4, A5 or Letter, in portrait or landscape. Page settings cover margins, background, spacing and the positions of the header, body and footer. For example, use landscape A4 for results with long subject names and leave space for a signature.
A document can have first, inner and last pages. Each has its own body. Pages sharing a role share headers and footers. First and last pages can inherit these bands from the inner page. Editing a shared header affects inheriting pages. Add, duplicate or reorder pages and assign their roles. Use Undo and Redo to revise changes.
Place content and handle missing values
Select a section, row and cell. Insert a palette block and configure its properties. Grid controls adjust the number and width of columns and merge cells. Use multilingual text for a heading and a variable for a value from the system. An institutional image and a student's photo are separate block types. The media library accepts images up to 5 MiB. Other choices include date, signature, divider, spacer, group, table, performance summary and fields to complete at issue time.
For example, add the full-name variable to the header, fix the block language to Russian and choose the name order. For a trilingual form, add copies with English and Armenian overrides. Variable properties include case, prefix, suffix and a fallback such as blank, dash or underline. Select the document type for a passport number. For a signatory, choose the role and an eligible employee in the student's scope. Check missing photos and translations in the student record.
Set up repetition, tables and totals
A section without a source works for fixed content. For lists, choose enrollments, educational statuses, semester results, retakes or student movements. Single mode renders the section once, while a data table inside can iterate its source. Repeat mode produces one section per record. Grouped mode can collect results by semester or academic year, and movements by type. Row variables are meaningful in their source context. Group totals require grouped mode. Check sorting, filters and minimum rows. With no source records and a zero minimum a section can disappear entirely.
- For example, add a Results section in the body, bind it to semester results and group by semester. Insert a data table, name the columns Subject, Credits and Final result, and bind them to the corresponding row fields. For an ordinary table without per-semester sections, use a single section so the whole table is not repeated for every record.
- Add a credit total. To display a converted grade, select a specific grade scale type. For a twelve-semester transcript, choose the transcript matrix. Its rows can include SGPA, CGPA and percentage. SGPA and CGPA require the chosen scale. Future semesters without results may remain empty.
- To count subjects by performance level, add a performance summary. Choose all enrollments or the current enrollment, select levels and set column order. For a copy number entered at issue time, add an input field. For a fixed choice, use a select field. Configure its label, options or validation, required flag and default.
Test the saved template
Save your work (Ctrl/⌘+S is also available). The local editor draft and the server-saved form are separate. Server preview uses the last saved form. Search for an accessible student by name, select the row, and check the populated data and the PDF. Candidate search returns up to 50 at a time, so narrow the name if necessary. Verify line wrapping, empty rows, credit totals and signature position. Return to the list to activate the form once reviewed. How grades are resolved
The editor uses the card-templates module, read access card-templates.index and a create/update grant bound to card-templates.store. The layout has no organizational scope. Selecting and previewing a student requires academic-card.index and academic-card.show within their faculty, profession or department scopes. Media uploads are bound to template write access.
Implementation references
- frontend-edusystems · cardTemplateEditorAdapter.ts
- frontend-edusystems · editorLayoutAdapter.ts
- frontend-edusystems · index.tsx
- frontend-edusystems · BlockPropertiesForm.tsx
- frontend-edusystems · usePreview.ts
- backend-edusystems · AcademicCard/routes/api.php
- backend-edusystems · CardSectionSource.php
- backend-edusystems · StudentVariableCatalog.php
- backend-edusystems · CardMatrixCatalog.php
- backend-edusystems · CardTemplateMediaController.php
- backend-edusystems · DocumentLayoutValidator.php
- backend-edusystems · CardTemplatePreviewTest.php