104 lines
3.6 KiB
Plaintext
104 lines
3.6 KiB
Plaintext
@page
|
|
@model EveryThing.Pages.CodeTableEmployees.IndexModel
|
|
|
|
@{
|
|
ViewData["Title"] = "Zaposleni";
|
|
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">Zaposleni /</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["InactiveEmployees"]> <span>Neaktivni zaposleni</span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
|
|
<h6 class="card-header">
|
|
Seznam zaposlenih
|
|
</h6>
|
|
|
|
<table class="table card-table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Employee[0].FirstName)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Employee[0].LastName)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Employee[0].BirthDate)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Employee[0].Telephone)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Employee[0].MobileTelephone)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Employee[0].Email)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.Employee)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.LastName)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.LastName)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.BirthDate)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Telephone)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.MobileTelephone)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Email)
|
|
</td>
|
|
<td>
|
|
<a asp-page="./Edit" asp-route-id="@item.IdEmployee">Edit</a> | <a asp-page="./Details" asp-route-id="@item.IdEmployee">Details</a> | <a asp-page="./Delete" asp-route-id="@item.IdEmployee">Delete</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="card-footer py-3 text-right">
|
|
<a asp-page="Create" class="btn btn-primary">Vnos delavca</a>
|
|
</div>
|
|
</div>
|
|
|