Browse Source

Better styling for the table (grid lines etc.)

pull/129/head
alirıza adıyahşi 9 years ago
parent
commit
c0302ed9e4
  1. 33
      src/Volo.Abp.Identity.Web/Areas/Identity/Views/Users/Index.cshtml
  2. 4
      src/Volo.Abp.Identity.Web/wwwroot/modules/identity/views/users/index.css
  3. 8
      src/Volo.Abp.Identity.Web/wwwroot/modules/identity/views/users/index.js
  4. 4
      src/Volo.Abp.Identity.Web/wwwroot/modules/identity/views/users/index.less
  5. 2
      src/Volo.Abp.Identity.Web/wwwroot/modules/identity/views/users/index.min.css

33
src/Volo.Abp.Identity.Web/Areas/Identity/Views/Users/Index.cshtml

@ -9,19 +9,15 @@
<script type="text/javascript" src="~/modules/identity/views/users/index.js"></script> <script type="text/javascript" src="~/modules/identity/views/users/index.js"></script>
} }
<h2>Users</h2> <div class="row">
<div class="col-md-6">
<!-- Button trigger modal --> <h2>Users</h2>
<button type="button" class="btn btn-primary create-user" data-toggle="modal"> </div>
Create User <div class="col-md-6 text-right">
</button> <!-- Button trigger modal -->
<button type="button" class="btn btn-primary create-user" data-toggle="modal">
<!-- Modal --> Create User
<div class="modal fade" id="createUpdateUserModal" tabindex="-1" role="dialog" aria-labelledby="userModalLabel" aria-hidden="true"> </button>
<div class="modal-dialog" role="document">
<div class="modal-content">
</div>
</div> </div>
</div> </div>
@ -34,4 +30,13 @@
<th>Phone Number</th> <th>Phone Number</th>
</tr> </tr>
</thead> </thead>
</table> </table>
<!-- Modal -->
<div class="modal fade" id="createUpdateUserModal" tabindex="-1" role="dialog" aria-labelledby="userModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
</div>
</div>
</div>

4
src/Volo.Abp.Identity.Web/wwwroot/modules/identity/views/users/index.css

@ -1,4 +1,8 @@
.dataTable { .dataTable {
width: 100% !important; width: 100% !important;
border-spacing: 0 !important; border-spacing: 0 !important;
}
.table td,
.table th {
padding: 8px 10px;
} }

8
src/Volo.Abp.Identity.Web/wwwroot/modules/identity/views/users/index.js

@ -2,8 +2,11 @@
var _identityUserAppService = volo.abp.identity.identityUser; var _identityUserAppService = volo.abp.identity.identityUser;
var dataTable = $('#IdentityUsersTable').DataTable({ var dataTable = $('#IdentityUsersTable').DataTable({
processing: true, paging: true,
serverSide: true, serverSide: true,
processing: true,
responsive: true,
order: [[1, "asc"]],
ajax: function (requestData, callback, settings) { ajax: function (requestData, callback, settings) {
var inputFilter = {}; var inputFilter = {};
@ -38,7 +41,6 @@
}); });
} }
}, },
responsive: true,
columnDefs: [ columnDefs: [
{ {
targets: 0, targets: 0,
@ -48,7 +50,7 @@
defaultContent: '', defaultContent: '',
render: function (list, type, record, meta) { render: function (list, type, record, meta) {
return '<div class="dropdown">' + return '<div class="dropdown">' +
'<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">' + '<button class="btn btn-primary btn-sm dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">' +
'Actions' + 'Actions' +
'</button>' + '</button>' +
'<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">' + '<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">' +

4
src/Volo.Abp.Identity.Web/wwwroot/modules/identity/views/users/index.less

@ -2,3 +2,7 @@
width: 100% !important; width: 100% !important;
border-spacing: 0 !important; border-spacing: 0 !important;
} }
.table td, .table th {
padding: 8px 10px;
}

2
src/Volo.Abp.Identity.Web/wwwroot/modules/identity/views/users/index.min.css

@ -1 +1 @@
.dataTable{width:100% !important;border-spacing:0 !important;} .dataTable{width:100% !important;border-spacing:0 !important;}.table td,.table th{padding:8px 10px;}
Loading…
Cancel
Save