110 lines
4.1 KiB
Plaintext
110 lines
4.1 KiB
Plaintext
@page
|
|
@model EveryThing.Pages.CodeTablePartners.IndexModel
|
|
|
|
@{
|
|
ViewData["Title"] = "Partnerji";
|
|
Layout = "~/Pages/Layouts/_Layout.cshtml";
|
|
}
|
|
|
|
<h4 class="d-flex justify-content-between align-items-center w-100 font-weight-bold py-1 mb-4">
|
|
<span>
|
|
<span class="text-muted font-weight-light">Partnerji /</span> Pregled
|
|
</span>
|
|
</h4>
|
|
|
|
<div class="row">
|
|
<div class="col-12 mb-2 text-right">
|
|
<form method="get">
|
|
<div class="btn-group">
|
|
<input class="form-control" type="text" name="searchString" value="@ViewData["SearchString"]" placeholder="Iskanje..." autocomplete="off">
|
|
<button type="submit" class="btn btn-secondary" aria-label="Osveži" title="Osveži">
|
|
<i class="opacity-75 ion ion-md-refresh"></i>
|
|
</button>
|
|
<div class="btn-group" title="Columns">
|
|
<button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-label="Nastavitve" title="Nastavitve">
|
|
<i class="opacity-75 ion ion-md-apps"></i>
|
|
<span class="caret"></span>
|
|
</button>
|
|
<div class="dropdown-menu dropdown-menu-right">
|
|
<label class="dropdown-item">
|
|
<input type="checkbox" name="inactiveEmployees" @ViewData["InactivePartners"]> <span>Neaktivni partnerji</span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
|
|
<h6 class="card-header">
|
|
Seznam partnerjev
|
|
</h6>
|
|
|
|
<table class="table card-table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Partner[0].Title)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Partner[0].Street)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Partner[0].Post)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Partner[0].IdCountryFk)
|
|
</th>
|
|
<th style="width: 140px;">
|
|
@Html.DisplayNameFor(model => model.Partner[0].TaxNumber)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Partner[0].Email)
|
|
</th>
|
|
<th style="width: 80px;"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.Partner)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Title)
|
|
@if (!item.Active)
|
|
{<span class='badge badge-danger'>Neaktivno</span>}
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Street) @Html.DisplayFor(modelItem => item.HouseNumber)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.PostNumber) @Html.DisplayFor(modelItem => item.Post)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Country.Title)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.TaxNumber)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Email)
|
|
</td>
|
|
<td class="text-right">
|
|
<a class="btn btn-xs icon-btn btn-outline-secondary borderless" asp-page="Edit" asp-route-id="@item.IdPartner" data-toggle="tooltip" data-placement="top" title="Urejanje" data-state="secondary"><i class="fas fa-pencil-alt"></i></a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="card-footer py-3 text-right">
|
|
<a asp-page="Create" class="btn btn-primary">Vnos partnerja</a>
|
|
</div>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
<script>
|
|
$('[data-toggle="tooltip"]').tooltip({container: 'table'});
|
|
</script>
|
|
} |