Отдел клиентов

Версия 1.1 от root_xwiki на 2025/10/29 08:41

= Отдел работы с клиентами =

Добро пожаловать в раздел инструкций отдела работы с клиентами. Ниже представлены все доступные инструкции:

== Инструкции отдела ==

{{velocity}}
#set($currentSpace = $doc.space)
#set($query = "select doc.fullName from XWikiDocument as doc where doc.space like '${currentSpace}.%' and doc.name = 'WebHome' order by doc.title")
#set($childPages = $services.query.hql($query).execute())

#if($childPages && $childPages.size() > 0)
  {{html clean="false"}}
  <div class="row justify-content-start">
  #foreach($childPageFullName in $childPages)
    #set($childDoc = $xwiki.getDocument($childPageFullName))
    #set($childTitle = $childDoc.getPlainTitle())
    #set($childURL = $childDoc.getURL())
   
    <div class="col-md-6 col-lg-4 mb-3">
      <div class="instruction-card card shadow-sm border-0 rounded-3">
        <div class="card-accent-success"></div>
        <div class="card-body p-3 text-center d-flex flex-column">
          <div class="icon-wrapper mb-2 mx-auto rounded-circle bg-success bg-opacity-10">
            <img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjMjhhNzQ1IiBkPSJNMjU2IDQ4YTIwOCAyMDggMCAxIDEgMCA0MTYgMjA4IDIwOCAwIDEgMSAwLTQxNnptMCA0NjRBMjU2IDI1NiAwIDEgMCAyNTYgMGEyNTYgMjU2IDAgMSAwIDAgNTEyek0zNjkgMjA5YzkuNC05LjQgOS40LTI0LjYgMC0zMy45cy0yNC42LTkuNC0zMy45IDBsLTExMSAxMTEtNDctNDdjLTkuNC05LjQtMjQuNi05LjQtMzMuOSAwcy05LjQgMjQuNiAwIDMzLjlsNjQgNjRjOS40IDkuNCAyNC42IDkuNCAzMy45IDBMMzY5IDIwOXoiLz48L3N2Zz4=" alt="Галочка" style="width: 32px; height: 32px;">
          </div>
          <h5 class="card-title mb-2" style="font-size: 1.05rem; font-weight: 600; color: #333; line-height: 1.3;">$childTitle</h5>
          <p class="card-text text-muted mb-3 flex-grow-1" style="font-size: 0.85rem; line-height: 1.4;">Работа с клиентами</p>
          <a href="$childURL" class="btn btn-success btn-sm rounded-pill" style="padding: 0.4rem 1.2rem; font-size: 0.9rem;">Открыть</a>
        </div>
      </div>
    </div>
  #end
  </div>
 
  <style>
    .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; }
    .instruction-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(40,167,69,0.2) !important; }
    .card-accent-success { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #28a745, #218838); }
    .icon-wrapper { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(40,167,69,0.15); }
    .bg-success { background-color: rgba(40,167,69,0.1) !important; }
    .btn-success { background-color: #28a745; border-color: #28a745; color: white; transition: all 0.3s; }
    .btn-success:hover { background-color: #218838; transform: scale(1.05); }
    .card-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
    .row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
    .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 12px; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 12px; }
    .mb-3 { margin-bottom: 1rem; }
    @media (max-width: 1200px) { .col-lg-4 { flex: 0 0 50%; max-width: 50%; } }
    @media (max-width: 768px) { .col-lg-4, .col-md-6 { flex: 0 0 100%; max-width: 100%; } .instruction-card { min-height: 180px; } }
  </style>
  {{/html}}
#else
  {{info}}В этом разделе пока нет инструкций. Создайте новую страницу через кнопку **Создать**.{{/info}}
#end
{{/velocity}}

== Добавить новую инструкцию ==

Для создания новой инструкции нажмите **Создать** в меню выше и выберите родительское пространство **"Отдел работы с клиентами"**.