| | | 1 | | @model OzonOrdersWeb.Areas.OneCFresh.ViewModels.OrganizationsViewModel |
| | | 2 | | @{ |
| | 0 | 3 | | ViewData["Title"] = "Организации"; |
| | | 4 | | } |
| | | 5 | | |
| | | 6 | | <div class="d-flex align-items-center gap-2 mb-3"> |
| | | 7 | | <h5 class="mb-0 fw-semibold"> |
| | 0 | 8 | | <i class="bi bi-bank me-2 text-primary"></i>@ViewData["Title"] |
| | | 9 | | </h5> |
| | 0 | 10 | | <span class="badge bg-secondary">@Model.Items.Count</span> |
| | | 11 | | </div> |
| | | 12 | | |
| | 0 | 13 | | @if (TempData["Error"] is string err) |
| | | 14 | | { |
| | 0 | 15 | | <div class="alert alert-danger py-2 small">@err</div> |
| | | 16 | | } |
| | | 17 | | |
| | | 18 | | <div class="table-responsive"> |
| | | 19 | | <table class="table table-sm table-hover onec-table border"> |
| | | 20 | | <thead class="table-light"> |
| | | 21 | | <tr> |
| | | 22 | | <th>Наименование</th> |
| | | 23 | | <th>ИНН</th> |
| | | 24 | | <th>КПП</th> |
| | | 25 | | <th>GUID</th> |
| | | 26 | | <th>Статус</th> |
| | | 27 | | </tr> |
| | | 28 | | </thead> |
| | | 29 | | <tbody> |
| | 0 | 30 | | @foreach (var item in Model.Items) |
| | | 31 | | { |
| | | 32 | | <tr class="@(item.DeletionMark ? "text-muted" : "")"> |
| | 0 | 33 | | <td class="fw-semibold">@item.Description</td> |
| | 0 | 34 | | <td class="font-monospace">@item.Inn</td> |
| | 0 | 35 | | <td class="font-monospace">@item.Kpp</td> |
| | 0 | 36 | | <td class="font-monospace text-muted" style="font-size:.75rem">@item.RefKey.ToString().ToUpper()</td |
| | | 37 | | <td> |
| | 0 | 38 | | @if (item.DeletionMark) |
| | | 39 | | { |
| | | 40 | | <span class="badge badge-deleted">Удалена</span> |
| | | 41 | | } |
| | | 42 | | else |
| | | 43 | | { |
| | | 44 | | <span class="badge bg-success">Активна</span> |
| | | 45 | | } |
| | | 46 | | </td> |
| | | 47 | | </tr> |
| | | 48 | | } |
| | 0 | 49 | | @if (!Model.Items.Any()) |
| | | 50 | | { |
| | | 51 | | <tr><td colspan="5" class="text-center text-muted py-3">Организации не найдены</td></tr> |
| | | 52 | | } |
| | | 53 | | </tbody> |
| | | 54 | | </table> |
| | | 55 | | </div> |