DisplayNameHelper kifejlesztése
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
@page
|
||||
@model WorkFlowCheck.Web.Pages.UserAndRole.UserPageModel
|
||||
@using WorkFlowCheck.Common.Helper
|
||||
@using WorkFlowCheck.Common.DTO
|
||||
@{
|
||||
ViewData["Title"] = "Felhasználók";
|
||||
}
|
||||
@@ -15,20 +17,24 @@
|
||||
<thead class="table-primary">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>First Name</th>
|
||||
<th>Last Name</th>
|
||||
<th>User Name</th>
|
||||
<th>E-mail</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName("Active", typeof(UserDTO))</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName("NFCActive", typeof(UserDTO))</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName("FirstName", typeof(UserDTO))</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName("LastName", typeof(UserDTO))</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName("UserName", typeof(UserDTO))</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName("Email", typeof(UserDTO))</th>
|
||||
<th class="text-center">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot class="table-light">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>First Name</th>
|
||||
<th>Last Name</th>
|
||||
<th>User Name</th>
|
||||
<th>E-mail</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName("Active", typeof(UserDTO))</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName("NFCActive", typeof(UserDTO))</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName("FirstName", typeof(UserDTO))</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName("LastName", typeof(UserDTO))</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName("UserName", typeof(UserDTO))</th>
|
||||
<th>@DisplayNameHelper.GetDisplayName("Email", typeof(UserDTO))</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@@ -45,6 +51,26 @@
|
||||
},
|
||||
columns: [
|
||||
{ data: "id" },
|
||||
{
|
||||
data: "active",
|
||||
searchable: false,
|
||||
sortable: false,
|
||||
className: "text-center",
|
||||
render: function ( data, type, row ) {
|
||||
return renderCheckBox(data);
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
data: "nfcActive",
|
||||
searchable: false,
|
||||
sortable: false,
|
||||
className: "text-center",
|
||||
render: function ( data, type, row ) {
|
||||
return renderCheckBox(data);
|
||||
}
|
||||
|
||||
},
|
||||
{ data: "firstName" },
|
||||
{ data: "lastName" },
|
||||
{ data: "userName" },
|
||||
@@ -59,7 +85,7 @@
|
||||
"visible": false
|
||||
},
|
||||
{
|
||||
"targets": 5,
|
||||
"targets": 7,
|
||||
"className": "text-center",
|
||||
"width": "10%"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user