1 {% extends
"base.html" %}
9 <link rel=
"stylesheet" href=
"/static/bower_components/select2/dist/css/select2.min.css">
10 <link rel=
"stylesheet" href=
"/static/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
12 {% block title_header_big %}
15 {% block left_sidebar %}
16 {% include 'osm/osm_project_left_sidebar.html' %}
20 {% block breadcrumb_body %}
22 <li><a href=
"#">Users
</a></li>
25 {% block content_body %}
27 {% include 'modal/user_details.html' %}
28 {% include 'modal/user_create.html' %}
31 <div class=
"col-md-12">
34 <div class=
"box-header with-border">
35 <h3 class=
"box-title">Users
</h3>
36 <div class=
"box-tools">
37 <button type=
"button" class=
"btn btn-default" data-container=
"body"
38 onclick=
"javascript:openModalCreateUser({'projects_list_url': '{% url "projects:projects_list
" %}'})"
39 data-toggle=
"tooltip" data-placement=
"top" title=
"New User">
41 <i class=
"fa fa-plus"></i> Create User
</button>
45 <div class=
"box-body">
46 <table id=
"users_table" class=
"table table-bordered table-striped">
62 <td>{{ s|get:
"username" }}
</td>
63 <td>{{ s|get:
"projects" }}
</td>
64 <td>{{ s|get:
"_id" }}
</td>
65 <td>{{ s|get_sub:
"_admin,modified"|get_date}}
</td>
66 <td>{{ s|get_sub:
"_admin,created"|get_date}}
</td>
70 <div class=
"btn-group">
71 <button type=
"button" class=
"btn btn-default dropdown-toggle"
72 data-toggle=
"dropdown" aria-expanded=
"false">Actions
73 <span class=
"fa fa-caret-down"></span></button>
74 <ul class=
"dropdown-menu">
77 <a href=
"#" onclick=
"javascript:deleteUser('{% url "users:delete
" user_id=s|get:"_id
" %}')" style=
"color:red">
78 <i class=
"fa fa-trash" ></i> Delete
</a>
96 {% block resource_block %}
98 <script src=
"/static/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
99 <script src=
"/static/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
100 <script src=
"/static/bower_components/select2/dist/js/select2.js"></script>
101 <script src=
"/static/src/userhandler/user_list.js"></script>
103 $(document).ready( function () {
104 $('#users_table').DataTable();
112 {% include
"footer.html" %}