Users table styling.

pull/129/head
Halil İbrahim Kalkan 7 years ago
parent a028bfcc4b
commit f3bc06687f

@ -1,22 +1,34 @@
@model IReadOnlyList<Volo.Abp.Identity.IdentityUserDto>
@section styles
{
<link rel="stylesheet" type="text/css" href="~/libs/_identity/datatables/datatables.min.css" />
@section styles {
<!-- TODO: Use minified on production, normal in development -->
<link rel="stylesheet" type="text/css" href="~/modules/identity/libs/datatables/datatables.min.css" />
<link rel="stylesheet" type="text/css" href="~/modules/identity/views/users/index.css" />
}
@section scripts
{
<script type="text/javascript" src="~/libs/_identity/datatables/datatables.min.js"></script>
@section scripts {
<script type="text/javascript" src="~/modules/identity/libs/datatables/datatables.min.js"></script>
<script type="text/javascript" src="~/modules/identity/views/users/index.js"></script>
}
<h2>Users</h2>
<ul class="ticket-list">
<table id="IdentityUsersTable">
<thead>
<tr>
<th>Username</th>
<th>Email Address</th>
<th>Phone Number</th>
</tr>
</thead>
<tbody>
@foreach (var user in Model)
{
<li data-entity-id="@user.Id">
@user.UserName / @user.Email
</li>
<tr>
<td>@user.UserName</td>
<td>@user.Email</td>
<td>@(user.PhoneNumber ?? "-")</td>
</tr>
}
</ul>
</tbody>
</table>

@ -11,13 +11,7 @@
<ItemGroup>
<EmbeddedResource Include="Areas\**\*.*" Exclude="bin\**;obj\**;**\*.xproj;packages\**;@(EmbeddedResource)" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="wwwroot\libs\_identity\datatables\datatables.css" />
<EmbeddedResource Include="wwwroot\libs\_identity\datatables\datatables.js" />
<EmbeddedResource Include="wwwroot\libs\_identity\datatables\datatables.min.css" />
<EmbeddedResource Include="wwwroot\libs\_identity\datatables\datatables.min.js" />
<EmbeddedResource Include="wwwroot\**\*.*" Exclude="bin\**;obj\**;**\*.xproj;packages\**;@(EmbeddedResource)" />
</ItemGroup>
<ItemGroup>

@ -0,0 +1,6 @@
[
{
"outputFile": "wwwroot/modules/identity/views/users/index.css",
"inputFile": "wwwroot/modules/identity/views/users/index.less"
}
]

@ -0,0 +1,49 @@
{
"compilers": {
"less": {
"autoPrefix": "",
"cssComb": "none",
"ieCompat": true,
"strictMath": false,
"strictUnits": false,
"relativeUrls": true,
"rootPath": "",
"sourceMapRoot": "",
"sourceMapBasePath": "",
"sourceMap": false
},
"sass": {
"includePath": "",
"indentType": "space",
"indentWidth": 2,
"outputStyle": "nested",
"Precision": 5,
"relativeUrls": true,
"sourceMapRoot": "",
"sourceMap": false
},
"stylus": {
"sourceMap": false
},
"babel": {
"sourceMap": false
},
"coffeescript": {
"bare": false,
"runtimeMode": "node",
"sourceMap": false
}
},
"minifiers": {
"css": {
"enabled": true,
"termSemicolons": true,
"gzip": false
},
"javascript": {
"enabled": true,
"termSemicolons": true,
"gzip": false
}
}
}

@ -0,0 +1,3 @@
$(function() {
$('#IdentityUsersTable').DataTable();
});
Loading…
Cancel
Save