From 88715646ba810e1e248f755977272604c841033d Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Wed, 27 Jul 2016 14:54:18 +0200 Subject: [PATCH] Show user fields is_committee and is_active in list view. (Fixes #2217) New icon for is_committee and is_active. Check is_committee field for csv import. --- openslides/users/static/js/users/site.js | 11 +++++++++++ .../static/templates/users/user-import.html | 2 +- .../users/static/templates/users/user-list.html | 17 ++++++++++++++++- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/openslides/users/static/js/users/site.js b/openslides/users/static/js/users/site.js index 33ec7c037..4dbebc663 100644 --- a/openslides/users/static/js/users/site.js +++ b/openslides/users/static/js/users/site.js @@ -785,6 +785,17 @@ angular.module('OpenSlidesApp.users.site', ['OpenSlidesApp.users']) } else { user.is_active = false; } + // is committee + if (user.is_committee) { + user.is_committee = user.is_committee.replace(quotionRe, '$1'); + if (user.is_committee == '1') { + user.is_committee = true; + } else { + user.is_committee = false; + } + } else { + user.is_committee = false; + } $scope.users.push(user); }); }); diff --git a/openslides/users/static/templates/users/user-import.html b/openslides/users/static/templates/users/user-import.html index 835e6d617..e1335879a 100644 --- a/openslides/users/static/templates/users/user-import.html +++ b/openslides/users/static/templates/users/user-import.html @@ -92,7 +92,7 @@ Structure level Groups Comment - Is active + Is active Is committee diff --git a/openslides/users/static/templates/users/user-list.html b/openslides/users/static/templates/users/user-list.html index 7716c7ab5..f9d3cfdef 100644 --- a/openslides/users/static/templates/users/user-list.html +++ b/openslides/users/static/templates/users/user-list.html @@ -137,25 +137,34 @@ + + + Name + + Structure level + + Groups + + Present - {{ user.get_short_name() }} + + + + {{ user.get_short_name() }} +
{{ user.comment }}