feat: переменная «Структура ИС» (structure) в цикле information_systems

- models.py: поле structure у InformationSystem
- variables.py: {{item.structure}} / {{structure}} в цикле,
  {{is_structure_N}} в индексированных
- ui.py: поле «Структура ИС» на вкладке ИС
This commit is contained in:
2026-08-03 10:56:35 +04:00
parent 577bed22d6
commit 47630dbbfb
3 changed files with 13 additions and 0 deletions
+2
View File
@@ -219,6 +219,7 @@ def _add_is_indexed_vars(replacements: Dict[str, str], isys, idx: int):
'is_users': ', '.join(isys.users_list or []) or '',
'is_pd_count': str(isys.pd_count or ''),
'is_purpose': isys.purpose or '',
'is_structure': getattr(isys, 'structure', '') or '',
}
for f, v in fields.items():
replacements[f'{{{{{f}_{idx}}}}}'] = str(v)
@@ -267,6 +268,7 @@ def _build_loop_data(company: Company, is_list: List) -> Dict[str, List[Dict]]:
'processing_modes': isys.processing_modes or '',
'pd_subjects': '; '.join(isys.pd_subjects_list or []) or '',
'is_purpose': isys.purpose or '',
'structure': getattr(isys, 'structure', '') or '',
})
loops['information_systems'] = items