2020-05-28 08:42:36 +00:00
|
|
|
<main class="container">
|
|
|
|
<div id="organizations-block" class="my-3 p-3 bg-white rounded shadow">
|
2020-09-19 20:19:55 +00:00
|
|
|
<h6 class="border-bottom pb-2 mb-3">Organizations</h6>
|
2020-05-28 08:42:36 +00:00
|
|
|
|
2020-06-03 18:37:31 +00:00
|
|
|
<div class="table-responsive-xl small">
|
2020-09-19 20:19:55 +00:00
|
|
|
<table id="orgs-table" class="table table-sm table-striped table-hover">
|
2020-06-03 18:37:31 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2020-09-19 20:19:55 +00:00
|
|
|
<th>Organization</th>
|
2020-06-03 18:37:31 +00:00
|
|
|
<th>Users</th>
|
|
|
|
<th>Items</th>
|
|
|
|
<th>Attachments</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#each organizations}}
|
|
|
|
<tr>
|
|
|
|
<td>
|
2020-09-19 20:19:55 +00:00
|
|
|
<img class="mr-2 float-left rounded identicon" data-src="{{Id}}">
|
|
|
|
<div class="float-left">
|
|
|
|
<strong>{{Name}}</strong>
|
|
|
|
<span class="mr-2">({{BillingEmail}})</span>
|
|
|
|
<span class="d-block">
|
|
|
|
<span class="badge badge-success">{{Id}}</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
2020-06-03 18:37:31 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span class="d-block">{{user_count}}</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span class="d-block">{{cipher_count}}</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span class="d-block"><strong>Amount:</strong> {{attachment_count}}</span>
|
|
|
|
{{#if attachment_count}}
|
|
|
|
<span class="d-block"><strong>Size:</strong> {{attachment_size}}</span>
|
2020-05-28 08:42:36 +00:00
|
|
|
{{/if}}
|
2020-06-03 18:37:31 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-05-28 08:42:36 +00:00
|
|
|
</div>
|
2020-09-19 20:19:55 +00:00
|
|
|
|
2020-05-28 08:42:36 +00:00
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
2020-09-19 20:19:55 +00:00
|
|
|
<link rel="stylesheet" href="{{urlpath}}/bwrs_static/datatables.css" />
|
|
|
|
<script src="{{urlpath}}/bwrs_static/jquery-3.5.1.slim.js"></script>
|
|
|
|
<script src="{{urlpath}}/bwrs_static/datatables.js"></script>
|
2020-05-28 08:42:36 +00:00
|
|
|
<script>
|
|
|
|
document.querySelectorAll("img.identicon").forEach(function (e, i) {
|
|
|
|
e.src = identicon(e.dataset.src);
|
|
|
|
});
|
2020-09-19 20:19:55 +00:00
|
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", function(event) {
|
|
|
|
$('#orgs-table').DataTable({
|
|
|
|
"responsive": true,
|
|
|
|
"lengthMenu": [ [-1, 5, 10, 25, 50], ["All", 5, 10, 25, 50] ],
|
|
|
|
"pageLength": -1, // Default show all
|
|
|
|
});
|
|
|
|
});
|
2020-05-28 08:42:36 +00:00
|
|
|
</script>
|