diff --git a/gms-ui/src/components/Paginator.vue b/gms-ui/src/components/Paginator.vue index 32c89da70eea1f298136b6dfa4aad2961432ac47..9ca8a739e2a80806d6a88f4102208f8040420444 100644 --- a/gms-ui/src/components/Paginator.vue +++ b/gms-ui/src/components/Paginator.vue @@ -7,7 +7,7 @@ <div class="col-md-4"> <b-row> <b-col sm="5"> - <label for="page-size">Page size:</label> + <label for="page-size" class="mt-2">Page size:</label> </b-col> <b-col sm="6"> <b-form-select id="page-size" v-model="paginatorInput.paginatorPageSize" :options="pageSizeOptions" v-on:change="changePageSize"></b-form-select> diff --git a/gms-ui/src/components/TopMenu.vue b/gms-ui/src/components/TopMenu.vue index a5db75c6c0091407f50160ac66378c7e7b73c142..1d92647b143783247a86d2e6bc14f8db81ad99f6 100644 --- a/gms-ui/src/components/TopMenu.vue +++ b/gms-ui/src/components/TopMenu.vue @@ -11,7 +11,7 @@ <b-navbar-nav class="ml-auto"> <b-nav-item href="help/index.html" target="blank_" class="mr-4">Help</b-nav-item> <b-nav-form> - <b-form-input size="sm" class="mr-sm-2" placeholder="Search" v-model="input.genericSearch.filter" @keydown.native.enter.prevent="genericSearch"></b-form-input> + <b-form-input size="sm" class="mr-sm-2" placeholder="Search" v-model.trim="input.genericSearch.filter" @keydown.native.enter.prevent="genericSearch"></b-form-input> <b-button size="sm" class="my-2 my-sm-0" type="button" v-on:click="genericSearch()">Search</b-button> </b-nav-form> <b-nav-item-dropdown :text="user" right v-if="user"> diff --git a/gms-ui/src/components/modals/AddGroupModal.vue b/gms-ui/src/components/modals/AddGroupModal.vue index ecdbe400e8089ae2250e8ed7767d3415baa844c0..4de7848561b5cc703b9604667066b960ac2a4c72 100644 --- a/gms-ui/src/components/modals/AddGroupModal.vue +++ b/gms-ui/src/components/modals/AddGroupModal.vue @@ -5,7 +5,7 @@ <b-form-input v-model="newGroupName" id="new-group-name-input" ref="newGroupNameInput" class="w-75" aria-describedby="new-group-name-input-feedback" :state="newGroupNameState" v-on:input="resetError" @keydown.native.enter="addGroup"> </b-form-input> <b-form-invalid-feedback id="new-group-name-input-feedback" class="text-right">{{newGroupNameError}}</b-form-invalid-feedback> - <b-form-checkbox class="mt-3 ml-3" v-model="leaf">is leaf</b-form-checkbox> + <b-form-checkbox class="mt-3 ml-3" v-model="allowChildGroups">allow child groups</b-form-checkbox> </b-form> </b-modal> </template> @@ -27,13 +27,13 @@ export default { return { newGroupName: '', newGroupNameError: '', - leaf: true + allowChildGroups: false }; }, methods: { resetModal: function() { this.newGroupName = null; - this.leaf = true; + this.allowChildGroups = false; this.resetError(); }, afterShow: function() { @@ -49,7 +49,7 @@ export default { if (!this.newGroupName) { this.newGroupNameError = "Group name is required"; } else { - client.addGroup(this.newGroupName, this.leaf, this.$store.state.input) + client.addGroup(this.newGroupName, !this.allowChildGroups, this.$store.state.input) .then(res => { this.$store.commit('updateGroupsPanel', res); this.$bvModal.hide('add-group-modal'); diff --git a/gms-ui/src/components/modals/EditGroupModal.vue b/gms-ui/src/components/modals/EditGroupModal.vue index bfd117c527284cbdfa2f1ec3b6f09b2e1d1f9c70..8c3d2deba58bdecf140f34022d3ee4c4329c02c8 100644 --- a/gms-ui/src/components/modals/EditGroupModal.vue +++ b/gms-ui/src/components/modals/EditGroupModal.vue @@ -5,7 +5,7 @@ <b-form-input v-model="newGroupName" id="new-group-name-input" class="w-75" aria-describedby="new-group-name-input-feedback" :state="newGroupNameState" v-on:input="resetError"> </b-form-input> <b-form-invalid-feedback id="new-group-name-input-feedback" class="text-right">{{newGroupNameError}}</b-form-invalid-feedback> - <b-form-checkbox class="mt-3 ml-3" v-model="leaf">is leaf</b-form-checkbox> + <b-form-checkbox class="mt-3 ml-3" v-model="allowChildGroups">allow child groups</b-form-checkbox> </b-form> </b-modal> </template> @@ -29,7 +29,7 @@ export default { oldGroupName: '', newGroupName: '', newGroupNameError: '', - leaf: false + allowChildGroups: false }; }, methods: { @@ -39,7 +39,7 @@ export default { openEditGroupModal: function(group) { this.newGroupName = group.groupName; this.groupId = group.groupId; - this.leaf = group.leaf; + this.allowChildGroups = !group.leaf; this.$bvModal.show('edit-group-modal'); }, updateGroup: function(event) { @@ -56,7 +56,7 @@ export default { return; } - client.updateGroup(this.groupId, this.newGroupName, this.leaf, this.$store.state.input) + client.updateGroup(this.groupId, this.newGroupName, !this.allowChildGroups, this.$store.state.input) .then(res => { this.$store.commit('updateGroupsPanel', res); this.$bvModal.hide('edit-group-modal'); diff --git a/gms/src/main/resources/static/help/help-admin.html b/gms/src/main/resources/static/help/help-admin.html index 093446d5b07012a309b9e922a0ba8cfa9afc1f69..b8ef5ade6c37e63ba3979f7fef7e47b01849fdce 100644 --- a/gms/src/main/resources/static/help/help-admin.html +++ b/gms/src/main/resources/static/help/help-admin.html @@ -54,9 +54,9 @@ <img src="img/gms-admin-add-group-modal.jpg" alt="" class="mb-3" /> </p> - <p>If you select the "is leaf" checkbox, the group will be a leaf of the tree: this means that - it will not be possible to create sub-groups inside it. You can change this setting in any moment - clicking on the "Edit group" button (pencil icon <img src="img/pencil-icon.jpg" alt="" />).</p> + <p>If you select the "allow child groups" checkbox it will be possible to create sub-groups inside it. + You can change this setting in any moment clicking on the "Edit group" button (pencil icon + <img src="img/pencil-icon.jpg" alt="" />).</p> <p>You can delete groups using trash icons (<img src="img/trash-icon.jpg" alt="" />). A dialog will ask for confirming the operation before deleting the group.</p> diff --git a/gms/src/main/resources/static/help/help-pi.html b/gms/src/main/resources/static/help/help-pi.html index 1cd7633c30103ebaa9457644264723baba275c7a..cd08622e2ba6a2d43c156af0b7d20cf1bc0586c3 100644 --- a/gms/src/main/resources/static/help/help-pi.html +++ b/gms/src/main/resources/static/help/help-pi.html @@ -36,6 +36,10 @@ If multiple users need to manage memberships of the same group you can ask administrators to enable them. </p> + <p><strong>IMPORTANT</strong>: A user is searchable after he/she has performed the first login on one + of our services. Check <a href="https://sso.ia2.inaf.it/" target="blank_">SSO help page</a> + for more information about IA2 authentication.</p> + <p>You can delete memberships using the trash icons (<img src="img/trash-icon.jpg" alt="" />). <h2 class="mt-4">Seeing information about users</h2> diff --git a/gms/src/main/resources/static/help/img/gms-admin-add-group-modal.jpg b/gms/src/main/resources/static/help/img/gms-admin-add-group-modal.jpg index f5de71d6482bf01c5c6caa2a6349cb774c294ad3..46aa423daef602764a37a6d611e70a9ccbd221fa 100644 Binary files a/gms/src/main/resources/static/help/img/gms-admin-add-group-modal.jpg and b/gms/src/main/resources/static/help/img/gms-admin-add-group-modal.jpg differ