mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 14:17:16 +00:00
chg: [orgs list] show numbers of users
This commit is contained in:
parent
6509b5d732
commit
cc7e67d5ed
2 changed files with 3 additions and 1 deletions
|
@ -309,7 +309,7 @@ def check_acl_edit_level(obj, user_org, user_id, user_role, new_level):
|
|||
|
||||
def api_get_orgs_meta():
|
||||
meta = {'orgs': []}
|
||||
options = {'date_created', 'description', 'name'}
|
||||
options = {'date_created', 'description', 'name', 'nb_users'}
|
||||
for org_uuid in get_orgs():
|
||||
org = Organisation(org_uuid)
|
||||
meta['orgs'].append(org.get_meta(options=options))
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<th>uuid</th>
|
||||
<th>Description</th>
|
||||
<th>Created at</th>
|
||||
<th>Nb Users</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -49,6 +50,7 @@
|
|||
{{org['date_created']}}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{org['nb_users']}}</td>
|
||||
<td>
|
||||
<div class="d-flex justify-content-start">
|
||||
{# <a class="btn btn-outline-primary ml-3 px-1 py-0" href="{{ url_for('settings_b.edit_user', org_uuid=org['uuid']) }}">#}
|
||||
|
|
Loading…
Reference in a new issue