Changes for page ИТ Отдел

Last modified by Алексей Александрович Иванов on 2025/10/31 08:32

From version 2.1
edited by root_xwiki
on 2025/10/08 08:07
Change comment: There is no comment for this version
To version 45.2
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.root_xwiki
1 +XWiki.it_IvanovAA
Content
... ... @@ -1,43 +1,173 @@
1 -= IT отдел
1 += ИТ Отдел =
2 2  
3 -Добро пожаловать в раздел инструкций IT отдела. Ниже представлены все доступные инструкции:
3 +== Добро пожаловать в раздел инструкций IT отдела. Ниже представлены все доступные инструкции: ==
4 4  
5 -== Инструкции отдела
6 6  
6 +
7 +
8 +== Инструкции отдела ==
9 +
10 +{{html clean="false"}}
11 +<a class="planner-card"
12 + href="https://10.0.1.1/vacation/freedom.html"
13 + target="_blank" rel="noopener">
14 + <div class="planner-card__inner">
15 + <div class="icon-circle icon-orange" aria-hidden="true">
16 + <!-- SVG календарь -->
17 + <svg viewBox="0 0 24 24" width="40" height="40" fill="#fd7e14">
18 + <path d="M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 1 1 2 0v1zm13 6H4v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V8zM6 11h3v3H6v-3zm5 0h3v3h-3v-3zm5 0h3v3h-3v-3z"/>
19 + </svg>
20 + </div>
21 + <div class="planner-card__text">
22 + <div class="planner-card__title">Планировщик отпусков</div>
23 + <div class="planner-card__desc">Открыть freedom_security.html на файловом сервере</div>
24 + </div>
25 + </div>
26 +</a>
27 +
28 +<style>
29 + .planner-card {
30 + display: block; text-decoration: none; color: inherit;
31 + }
32 + .planner-card__inner {
33 + display: flex; align-items: center; gap: 14px;
34 + background: #fff; border: 1px solid #e9ecef; border-radius: 10px;
35 + padding: 16px 18px; box-shadow: 0 2px 4px rgba(0,0,0,.06);
36 + transition: transform .25s, box-shadow .25s, border-color .25s;
37 + }
38 + .planner-card__inner:hover {
39 + transform: translateY(-3px);
40 + box-shadow: 0 10px 22px rgba(253,126,20,.18);
41 + border-color: rgba(253,126,20,.35);
42 + }
43 + .icon-circle {
44 + width: 64px; height: 64px; border-radius: 50%;
45 + display: flex; align-items: center; justify-content: center;
46 + background: rgba(253,126,20,.08); border: 2px solid rgba(253,126,20,.18);
47 + }
48 + .icon-orange { background: rgba(253,126,20,.08); }
49 + .planner-card__text { display: flex; flex-direction: column; }
50 + .planner-card__title { font-weight: 600; font-size: 1.05rem; color: #333; }
51 + .planner-card__desc { color: #6c757d; font-size: .92rem; margin-top: 2px; }
52 +</style>
53 +{{/html}}
54 +
55 +
7 7  {{velocity}}
57 +
58 +## Получаем текущее пространство
8 8  #set($currentSpace = $doc.space)
9 -#set($childPages = $services.query.xwql("where doc.space = '$currentSpace' and doc.name <> 'WebHome' order by doc.title").execute())
10 10  
11 -#if($childPages.size() > 0)
12 - (%class="row"%)
13 - #foreach($childPageRef in $childPages)
14 - #set($childDoc = $xwiki.getDocument($childPageRef))
61 +## Запрос для nested spaces (XWiki 14+: "ИТ Отдел.Active Directory")
62 +#set($query = "select doc.fullName from XWikiDocument as doc where doc.space like '${currentSpace}.%' and doc.name = 'WebHome' order by doc.title")
63 +#set($childPages = $services.query.hql($query).execute())
64 +
65 +## Проверяем, есть ли инструкции
66 +#if($childPages && $childPages.size() > 0)
67 + {{html clean="false"}}
68 + <div class="row justify-content-start">
69 + #foreach($childPageFullName in $childPages)
70 + #set($childDoc = $xwiki.getDocument($childPageFullName))
15 15   #set($childTitle = $childDoc.getPlainTitle())
16 16   #set($childURL = $childDoc.getURL())
17 - #set($childDescription = $childDoc.getObject("XWiki.TagClass").getProperty("tags").value)
18 - #if(!$childDescription || $childDescription == "")
19 - #set($childDescription = "Нажмите для просмотра инструкции")
20 - #end
21 21  
22 - (%class="col-md-6 col-lg-4 mb-4"%)
23 - {{{
24 - <div class="card shadow-sm border-0 rounded-3" style="transition: transform 0.3s;">
25 - <div class="card-body p-4">
26 - <h4>$childTitle</h4>
27 - <p class="text-muted">$childDescription</p>
28 - <a href="$childURL" class="btn btn-primary rounded-pill px-4 py-2">Открыть инструкцию</a>
74 + <div class="col-md-6 col-lg-4 mb-3">
75 + <div class="instruction-card card shadow-sm border-0 rounded-3">
76 + <div class="card-accent"></div>
77 + <div class="card-body p-3 text-center d-flex flex-column">
78 + <div class="icon-wrapper mb-2 mx-auto rounded-circle bg-info bg-opacity-10">
79 + <img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48cGF0aCBmaWxsPSIjMTdhMmI4IiBkPSJNMCAxMjhDMCA5Mi43IDE0LjMgNjQgNDggNjRIMzM2YzMzLjcgMCA0OCAyOC43IDQ4IDY0VjQ0OGMwIDM1LjMtMTQuMyA2NC00OCA2NEg0OGMtMzMuNyAwLTQ4LTI4LjctNDgtNjRWMTI4em0yNTYgMTYwYzAgMTcuNy0xNC4zIDMyLTMyIDMySDk2Yy0xNy43IDAtMzItMTQuMy0zMi0zMnNxMTQuMy0zMiAzMi0zMmhxMTI4YzE3LjcgMCAzMiAxNC4zIDMyIDMydi1tLTMyIDk2YzE3LjcgMCAzMi0xNC4zIDMyLTMycy0xNC4zLTMyLTMyLTMySDk2Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnNxMTQuMyAzMiAzMiAzMmhxMTI4eiIvPjwvc3ZnPg==" alt="Документ" style="width: 32px; height: 32px;">
80 + </div>
81 + <h5 class="card-title mb-2" style="font-size: 1.05rem; font-weight: 600; color: #333; line-height: 1.3;">$childTitle</h5>
82 + <p class="card-text text-muted mb-3 flex-grow-1" style="font-size: 0.85rem; line-height: 1.4;">Инструкция для сотрудников</p>
83 + <a href="$childURL" class="btn btn-info btn-sm rounded-pill" style="padding: 0.4rem 1.2rem; font-size: 0.9rem;">
84 + Открыть
85 + </a>
86 + </div>
29 29   </div>
30 30   </div>
31 - }}}
32 - (%/)
33 33   #end
34 - (%/)
90 + </div>
91 +
92 + <style>
93 + .instruction-card {
94 + transition: transform 0.3s ease, box-shadow 0.3s ease;
95 + background: white;
96 + border: 1px solid #e9ecef;
97 + min-height: 200px;
98 + display: flex;
99 + flex-direction: column;
100 + position: relative;
101 + overflow: hidden;
102 + }
103 + .instruction-card:hover {
104 + transform: translateY(-5px);
105 + box-shadow: 0 8px 20px rgba(23,162,184,0.2) !important;
106 + }
107 + .card-accent {
108 + position: absolute;
109 + top: 0;
110 + left: 0;
111 + width: 100%;
112 + height: 4px;
113 + background: linear-gradient(90deg, #17a2b8, #5bc0de);
114 + }
115 + .icon-wrapper {
116 + width: 50px;
117 + height: 50px;
118 + display: flex;
119 + align-items: center;
120 + justify-content: center;
121 + border: 2px solid rgba(23,162,184,0.15);
122 + }
123 + .card-body {
124 + flex: 1;
125 + display: flex;
126 + flex-direction: column;
127 + justify-content: space-between;
128 + }
129 + .btn-info {
130 + background-color: #17a2b8;
131 + border-color: #17a2b8;
132 + color: white;
133 + transition: all 0.3s;
134 + }
135 + .btn-info:hover {
136 + background-color: #138496;
137 + transform: scale(1.05);
138 + }
139 + .row {
140 + display: flex;
141 + flex-wrap: wrap;
142 + margin: 0 -12px;
143 + }
144 + .col-lg-4 {
145 + flex: 0 0 33.3333%;
146 + max-width: 33.3333%;
147 + padding: 0 12px;
148 + }
149 + .col-md-6 {
150 + flex: 0 0 50%;
151 + max-width: 50%;
152 + padding: 0 12px;
153 + }
154 + .mb-3 {
155 + margin-bottom: 1rem;
156 + }
157 + @media (max-width: 1200px) {
158 + .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
159 + }
160 + @media (max-width: 768px) {
161 + .col-lg-4, .col-md-6 { flex: 0 0 100%; max-width: 100%; }
162 + .instruction-card { min-height: 180px; }
163 + }
164 + </style>
165 + {{/html}}
35 35  #else
36 - <div class="alert alert-info">В этом разделе пока нет инструкций. Создайте новую страницу.</div>
167 + {{info}}В этом разделе пока нет инструкций. Создайте новую страницу через кнопку **Create**.{{/info}}
37 37  #end
38 38  {{/velocity}}
39 39  
40 -== Добавить новую инструкцию
171 +== Добавить новую инструкцию ==
41 41  
42 -Для создания новой инструкции нажмите [[Create>>$xwiki.getURL($doc.documentReference, 'create')]]
43 -
173 +Для создания новой инструкции нажмите **Create** в меню выше и выберите родительское пространство **"ИТ Отдел"**.
image.jpg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.root_xwiki
Size
... ... @@ -1,1 +1,0 @@
1 -40.8 KB
Content
«Компьютерщики» — совет «выключить и снова включить» (1080p).mp4
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.root_xwiki
Size
... ... @@ -1,0 +1,1 @@
1 +48.9 MB
Content
XWiki.XWikiComments[0]
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.root_xwiki
Comment
... ... @@ -1,0 +1,3 @@
1 +Первый :)
2 +
3 +
Date
... ... @@ -1,0 +1,1 @@
1 +2025-10-09 05:48:33.845