Wiki source code of Группа АСУ
Last modified by root_xwiki on 2025/10/29 08:39
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | = Группа АСУ = | ||
| 2 | |||
| 3 | Добро пожаловать в раздел инструкций группы АСУ. Ниже представлены все доступные инструкции: | ||
| 4 | |||
| 5 | == Инструкции отдела == | ||
| 6 | |||
| 7 | {{velocity}} | ||
| 8 | #set($currentSpace = $doc.space) | ||
| 9 | #set($query = "select doc.fullName from XWikiDocument as doc where doc.space like '${currentSpace}.%' and doc.name = 'WebHome' order by doc.title") | ||
| 10 | #set($childPages = $services.query.hql($query).execute()) | ||
| 11 | |||
| 12 | #if($childPages && $childPages.size() > 0) | ||
| 13 | {{html clean="false"}} | ||
| 14 | <div class="row justify-content-start"> | ||
| 15 | #foreach($childPageFullName in $childPages) | ||
| 16 | #set($childDoc = $xwiki.getDocument($childPageFullName)) | ||
| 17 | #set($childTitle = $childDoc.getPlainTitle()) | ||
| 18 | #set($childURL = $childDoc.getURL()) | ||
| 19 | |||
| 20 | <div class="col-md-6 col-lg-4 mb-3"> | ||
| 21 | <div class="instruction-card card shadow-sm border-0 rounded-3"> | ||
| 22 | <div class="card-accent-info"></div> | ||
| 23 | <div class="card-body p-3 text-center d-flex flex-column"> | ||
| 24 | <div class="icon-wrapper mb-2 mx-auto rounded-circle bg-info bg-opacity-10"> | ||
| 25 | <img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48cGF0aCBmaWxsPSIjMTdhMmI4IiBkPSJNNTAuNyA1OC41TDAgMTYwSDIwOFYzMkg5My43Qzc1LjUgMzIgNTguOSA0Mi4zIDUwLjcgNTguNXpNMjQwIDE2MEg0NDhMMzk3LjMgNTguNUMzODkuMSA0Mi4zIDM3Mi41IDMyIDM1NC4zIDMySDI0MFYxNjB6bTIwOCAzMkgwVjQxNmMwIDM1LjMgMjguNyA2NCA2NCA2NEgzODRjMzUuMyAwIDY0LTI4LjcgNjQtNjRWMTkyek02NCAyOTZhMjQgMjQgMCAxIDEgNDggMCAyNCAyNCAwIDEgMS00OCAwem0xMjAtMjRhMjQgMjQgMCAxIDEgMCA0OCAyNCAyNCAwIDEgMSAwLTQ4eiIvPjwvc3ZnPg==" alt="Сервер" style="width: 32px; height: 32px;"> | ||
| 26 | </div> | ||
| 27 | <h5 class="card-title mb-2" style="font-size: 1.05rem; font-weight: 600; color: #333; line-height: 1.3;">$childTitle</h5> | ||
| 28 | <p class="card-text text-muted mb-3 flex-grow-1" style="font-size: 0.85rem; line-height: 1.4;">Автоматизированные системы управления</p> | ||
| 29 | <a href="$childURL" class="btn btn-info btn-sm rounded-pill" style="padding: 0.4rem 1.2rem; font-size: 0.9rem;">Открыть</a> | ||
| 30 | </div> | ||
| 31 | </div> | ||
| 32 | </div> | ||
| 33 | #end | ||
| 34 | </div> | ||
| 35 | |||
| 36 | <style> | ||
| 37 | .instruction-card { transition: transform 0.3s ease, box-shadow 0.3s ease; background: white; border: 1px solid #e9ecef; min-height: 200px; display: flex; flex-direction: column; position: relative; overflow: hidden; } | ||
| 38 | .instruction-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(23,162,184,0.2) !important; } | ||
| 39 | .card-accent-info { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #17a2b8, #138496); } | ||
| 40 | .icon-wrapper { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(23,162,184,0.15); } | ||
| 41 | .bg-info { background-color: rgba(23,162,184,0.1) !important; } | ||
| 42 | .btn-info { background-color: #17a2b8; border-color: #17a2b8; color: white; transition: all 0.3s; } | ||
| 43 | .btn-info:hover { background-color: #138496; transform: scale(1.05); } | ||
| 44 | .card-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; } | ||
| 45 | .row { display: flex; flex-wrap: wrap; margin: 0 -12px; } | ||
| 46 | .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 12px; } | ||
| 47 | .col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 12px; } | ||
| 48 | .mb-3 { margin-bottom: 1rem; } | ||
| 49 | @media (max-width: 1200px) { .col-lg-4 { flex: 0 0 50%; max-width: 50%; } } | ||
| 50 | @media (max-width: 768px) { .col-lg-4, .col-md-6 { flex: 0 0 100%; max-width: 100%; } .instruction-card { min-height: 180px; } } | ||
| 51 | </style> | ||
| 52 | {{/html}} | ||
| 53 | #else | ||
| 54 | {{info}}В этом разделе пока нет инструкций. Создайте новую страницу через кнопку **Создать**.{{/info}} | ||
| 55 | #end | ||
| 56 | {{/velocity}} | ||
| 57 | |||
| 58 | == Добавить новую инструкцию == | ||
| 59 | |||
| 60 | Для создания новой инструкции нажмите **Создать** в меню выше и выберите родительское пространство **"Группа АСУ"**. |