MOBILE-4470 group: Improve Group selector look and feel
parent
cacc36d336
commit
f42ab61f59
|
@ -1,15 +1,19 @@
|
||||||
<ng-container *ngIf="groupInfo && groupInfo.groups.length > 0 && (groupInfo.separateGroups || groupInfo.visibleGroups)">
|
<ng-container *ngIf="groupInfo && groupInfo.groups.length > 0 && (groupInfo.separateGroups || groupInfo.visibleGroups)">
|
||||||
<ion-card class="core-info-card" *ngIf="multipleGroupsMessage && groupInfo.groups && groupInfo.groups.length > 1">
|
<ion-card class="core-info-card" *ngIf="multipleGroupsMessage && groupInfo.groups && groupInfo.groups.length > 1">
|
||||||
<ion-item>
|
<ion-item class="ion-text-wrap">
|
||||||
<ion-icon name="fas-circle-question" slot="start" aria-hidden="true" />
|
<ion-icon name="fas-circle-question" slot="start" aria-hidden="true" />
|
||||||
<ion-label>{{ multipleGroupsMessage }}</ion-label>
|
<ion-label>
|
||||||
|
<p class="item-label">{{ multipleGroupsMessage }}</p>
|
||||||
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-card>
|
</ion-card>
|
||||||
|
|
||||||
<ion-item class="ion-text-wrap core-group-selector">
|
<ion-item class="ion-text-wrap core-group-selector" lines="full">
|
||||||
<ion-select [label]="(groupInfo.separateGroups ? 'core.groupsseparate': 'core.groupsvisible') | translate" [(ngModel)]=" selected"
|
<ion-icon name="fas-user-group" slot="start" aria-hidden="true" />
|
||||||
(ionChange)="selectedChange.emit(selected)" interface="action-sheet" [cancelText]="'core.cancel' | translate"
|
<ion-select [(ngModel)]=" selected" (ionChange)="selectedChange.emit(selected)" interface="action-sheet"
|
||||||
[interfaceOptions]="{header: 'core.group' | translate}">
|
[cancelText]="'core.cancel' | translate" [interfaceOptions]="{header: 'core.group' | translate}">
|
||||||
|
<p class="item-heading" slot="label">{{ (groupInfo.separateGroups ? 'core.groupsseparate': 'core.groupsvisible') | translate }}
|
||||||
|
</p>
|
||||||
<ion-select-option *ngFor="let group of groupInfo.groups" [value]=" group.id">
|
<ion-select-option *ngFor="let group of groupInfo.groups" [value]=" group.id">
|
||||||
<core-format-text [text]="group.name" contextLevel="course" [contextInstanceId]="courseId" [wsNotFiltered]="true" />
|
<core-format-text [text]="group.name" contextLevel="course" [contextInstanceId]="courseId" [wsNotFiltered]="true" />
|
||||||
</ion-select-option>
|
</ion-select-option>
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
.core-group-selector ion-icon {
|
||||||
|
--webkit-margin-end: 16px;
|
||||||
|
margin-inline-end: 16px;
|
||||||
|
}
|
|
@ -27,6 +27,7 @@ import { CoreGroupInfo } from '@services/groups';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'core-group-selector',
|
selector: 'core-group-selector',
|
||||||
templateUrl: 'group-selector.html',
|
templateUrl: 'group-selector.html',
|
||||||
|
styleUrl: 'group-selector.scss',
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
})
|
})
|
||||||
export class CoreGroupSelectorComponent {
|
export class CoreGroupSelectorComponent {
|
||||||
|
|
Loading…
Reference in New Issue