partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit a671c8ce1c9456061b69217c64342f06d40009db
parent 5cc25f731ed03cd2aa9ff54d9b52db67b05f294f
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed,  9 Dec 2015 16:07:12 +0100

Display the user's active flag within the users grid

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/User/UserGrid.js | 31++++++++++++++++++++++---------
1 file changed, 22 insertions(+), 9 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/User/UserGrid.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/User/UserGrid.js @@ -2,18 +2,31 @@ Ext.define('PartKeepr.UserGrid', { extend: 'PartKeepr.EditorGrid', alias: 'widget.UserGrid', columns: [ - {header: i18n("User"), dataIndex: 'username', flex: 1}, { - header: i18n("Provider"), renderer: function (value, metaData, record) - { - if (record.getProvider() !== null) { - return record.getProvider().get("type"); - } else { - return ""; - } + header: i18n("User"), + dataIndex: 'username', + flex: 1 + }, { + header: i18n("Provider"), + renderer: function (value, metaData, record) + { + if (record.getProvider() !== null) { + return record.getProvider().get("type"); + } else { + return ""; + } - }, flex: 1 + }, + flex: 1 + }, + { + header: i18n("Active"), + xtype: 'booleancolumn', + dataIndex: 'active', + trueText: '<span style="vertical-align: top;" class="web-icon accept"/>', + falseText: '<span style="vertical-align: top;" class="web-icon cancel"/>', + flex: 0.5 } ], addButtonText: i18n("Add User"),