Purpose
Open Learning Management → Educational blocks (/educational/blocks). This catalog defines blocks that are added to semesters of a study plan, such as general education, practice or extracurricular elective blocks. A block's calculation type and coefficient determine the formulas used by the plan editor.
Create a block
Prepare the educational degree catalog and identify the appropriate calculation type. Click Add and complete the form.
| Field | Example | Rule and purpose |
|---|---|---|
| Name | General education subjects | Translations in relevant languages, up to 255 characters each |
| Educational degree | Bachelor | One or more degrees for which the block is available |
| Calculation option | Hour | An existing calculation type |
| Classifier | GEN | Optional short identifier, up to five characters in the form |
| Coefficient | 30 | Required integer used in total workload calculations |
| Module | Off | Module flag shown in the plan's block selector |
| Final work | Off | When enabled, helps identify the graduating department in the course assessment criteria export |
| Facultative | Off | When enabled, the block's credits are excluded from the plan's credit total |
- Save and find the block by name or classifier.
- Open a study plan of the corresponding degree, configure semester boundaries and add the block.
- In the plan's block form, separately select required and/or elective groups, then add their subjects.
- Check the coefficient, row totals and semester totals. The same block cannot be selected twice in one semester.
Calculation behavior
The editor uses calculation type IDs. Display names can be edited independently. The standard catalog contains Hour, Day and Week.
- Hour type (ID 1): total workload equals credits × coefficient. Contact hours are the sum of period hours by teaching type. Independent work equals total workload minus contact hours and extracurricular components, with a minimum of zero.
- Day and week types (IDs 2 and 3): credits are entered on the row, total workload equals credits × coefficient, and contact hours total zero. Independent work equals workload minus components, with a minimum of zero.
- For hour types, when credits have not been manually changed, the editor rounds the summed weekly teaching values up to an integer.
Example. For an hour block, set coefficient 30, credits 3, contact hours 45 and extracurricular components 6. Total workload is 90 and independent work is 39. A facultative block may still show credits on a subject row while its credit total is excluded from the semester total.
After changing the catalog, reopen affected plans and verify formulas, credit totals and generated reports. The display name of a calculation option and its ID serve different purposes.
Calculation option settings
The settings button opens /educational-settings, the child action “Calculation Options” (lm-calculation-options). The list supports editing existing names. It has no create or delete actions for the calculation types themselves.
- Edit Hour, Day or Week.
- Fill the relevant translation tabs and save. The server updates the provided non-empty translations of the existing record.
- The server removes English (
en) translations from the update payload. For example, Russian and Armenian names can be updated while the original English name remains. Submitting an English-only translation fails the non-empty translation-array requirement. - Return to the blocks list and check the updated label. Renaming does not change the formula, type or ID.
Search, delete and restore
Search matches translated names and classifiers. The server exposes filters by block type, module flag and final-work flag. Editing replaces the set of selected degrees and preserves existing translations in other languages.
Deleting a block with linked study plan rows fails with educational_block_links_check. Find the plans using it first. An unused block can be soft-deleted and restored from deleted items. After restoration, verify the list and its availability for the relevant degree.
Permissions and scopes
| Action | Permission |
|---|---|
| View list | educational-blocks.index |
| Create and edit | educational-blocks.store, educational-blocks.update |
| Delete | educational-blocks.destroy |
| View deleted items and restore | educational-blocks.deleted-items, educational-blocks.restore |
| Read and edit calculation options | educational-block-types.index, educational-block-types.update |
The list module is educational-blocks. Listing, creating and editing also require educational-degrees.index and educational-block-types.index in the interface. Neither block catalog nor calculation-option routes declare faculty or profession scopes. Administrators grant shared catalog editing separately from study plan editing.
Troubleshooting
- Missing block in a plan: check degree, read permission and whether the block already exists in that semester.
- Name cannot be saved: check translations and duplicate names for the selected type and overlapping educational degrees.
- Invalid classifier: the abbreviated value in the form must be at most five characters.
- Credit total is smaller than visible rows: check facultative flags and subject selection settings.
- Settings unavailable: check calculation-option read access and the separate update permission.
Implementation references
- EducationalBlocksDescriptor.ts
- index.tsx
- EditEducationalSettingsModal.tsx
- formulas.ts
- editorSlice.ts
- BlockModal.tsx
- permissionActionMap.json
- api.php
- EducationalBlockRequest.php
- IndexEducationalBlockRequest.php
- EducationalBlockController.php
- api.php
- EducationalBlockTypeRequest.php
- EducationalBlockTypeController.php
- EducationalBlockTypeSeeder.php
- CourseAssessmentCriteriaService.php