diff --git a/Lib/lang.php b/Lib/lang.php index d0dc12a..22fab32 100644 --- a/Lib/lang.php +++ b/Lib/lang.php @@ -127,6 +127,7 @@ 'pl.grouperlite.action.clear' => 'Clear', 'pl.grouperlite.action.add-user' => 'Add', 'pl.grouperlite.action.remove-user' => 'Remove', + 'pl.grouperlite.action.enable-act-as' => 'Enable', 'pl.grouperlite.message.user-not-found-error' => 'Error: User not found.', 'pl.grouperlite.message.user-not-added-error' => 'Error: Unable to add user.', 'pl.grouperlite.message.user-not-removed-error' => 'Error: Unable to remove user.', diff --git a/View/Elements/actAsPeopleAutocomplete.ctp b/View/Elements/actAsPeopleAutocomplete.ctp index 49ee1b7..0bf351e 100644 --- a/View/Elements/actAsPeopleAutocomplete.ctp +++ b/View/Elements/actAsPeopleAutocomplete.ctp @@ -42,6 +42,7 @@ $suffix = Configure::read('debug') > 0 ? '?time=' . time() : ''; }, members: "", email: "", + enableActAs: "", close: "", remove: "", addUser: "", @@ -122,6 +123,7 @@ $suffix = Configure::read('debug') > 0 ? '?time=' . time() : '';
+ action="enableActAs" + icon=""/>
diff --git a/View/GrouperGroups/index.ctp b/View/GrouperGroups/index.ctp index fe539cd..bc80b10 100644 --- a/View/GrouperGroups/index.ctp +++ b/View/GrouperGroups/index.ctp @@ -62,6 +62,7 @@ $suffix = Configure::read('debug') > 0 ? '?time=' . time() : ''; routes, }) + // TODO: Create the provides only once const app = Vue.createApp({ provide: { collapsed: , @@ -168,10 +169,44 @@ $suffix = Configure::read('debug') > 0 ? '?time=' . time() : ''; Find -
-
test
+
+ element('actAsPeopleAutocomplete', + compact('vv_config', + 'vv_coid', + 'vv_is_user_owner', + 'htmlId') + )?> +
+
+ + +
+
+
+ John Doe +
+ +
+ Identifier (I2CollabPN): nickmastoris.mastoris@at.in... +
+
+ +
- John Doe
diff --git a/webroot/css/co-grouper-plugin.css b/webroot/css/co-grouper-plugin.css index 2175744..6e8f27e 100644 --- a/webroot/css/co-grouper-plugin.css +++ b/webroot/css/co-grouper-plugin.css @@ -14,6 +14,10 @@ border-radius: .2rem; } +.btn-fit { + height: fit-content; +} + a { color: var(--primary); } diff --git a/webroot/js/autocomplete.js b/webroot/js/autocomplete.js index a60e81d..da566ce 100644 --- a/webroot/js/autocomplete.js +++ b/webroot/js/autocomplete.js @@ -120,7 +120,7 @@ export default { type="button" @click="performAction()" :disabled="isBtnDisabled"> - + {{ btnTxt }}