MOBILE-3814 style: Use chips on course completion statuses
parent
5c29cd3a05
commit
f7c5f572eb
|
@ -3,24 +3,27 @@
|
||||||
|
|
||||||
<ng-container *ngIf="completion.istrackeduser">
|
<ng-container *ngIf="completion.istrackeduser">
|
||||||
<ng-container *ngFor="let rule of details">
|
<ng-container *ngFor="let rule of details">
|
||||||
<ion-badge *ngIf="rule.statuscomplete" color="success" role="listitem" [attr.aria-label]="rule.accessibleDescription">
|
<ion-chip *ngIf="rule.statuscomplete" color="success" role="listitem" [attr.aria-label]="rule.accessibleDescription">
|
||||||
<strong>{{ 'core.course.completion_automatic:done' | translate }}</strong> {{ rule.rulevalue.description }}
|
<ion-label><strong>{{ 'core.course.completion_automatic:done' | translate }}</strong> {{ rule.rulevalue.description }}
|
||||||
</ion-badge>
|
</ion-label>
|
||||||
|
</ion-chip>
|
||||||
|
|
||||||
<ion-badge *ngIf="rule.statuscompletefail" color="danger" role="listitem" [attr.aria-label]="rule.accessibleDescription">
|
<ion-chip *ngIf="rule.statuscompletefail" color="danger" role="listitem" [attr.aria-label]="rule.accessibleDescription">
|
||||||
<strong>{{ 'core.course.completion_automatic:failed' | translate }}</strong> {{ rule.rulevalue.description }}
|
<ion-label><strong>{{ 'core.course.completion_automatic:failed' | translate }}</strong> {{ rule.rulevalue.description }}
|
||||||
</ion-badge>
|
</ion-label>
|
||||||
|
</ion-chip>
|
||||||
|
|
||||||
<ion-badge *ngIf="rule.statusincomplete" color="medium" role="listitem" [attr.aria-label]="rule.accessibleDescription">
|
<ion-chip *ngIf="rule.statusincomplete" color="medium" role="listitem" [attr.aria-label]="rule.accessibleDescription">
|
||||||
<strong>{{ 'core.course.completion_automatic:todo' | translate }}</strong> {{ rule.rulevalue.description }}
|
<ion-label><strong>{{ 'core.course.completion_automatic:todo' | translate }}</strong> {{ rule.rulevalue.description }}
|
||||||
</ion-badge>
|
</ion-label>
|
||||||
|
</ion-chip>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<ng-container *ngIf="!completion.istrackeduser">
|
<ng-container *ngIf="!completion.istrackeduser">
|
||||||
<ion-badge *ngFor="let rule of details" color="light" role="listitem">
|
<ion-chip *ngFor="let rule of details" color="light" role="listitem">
|
||||||
{{ rule.rulevalue.description }}
|
<ion-label>{{ rule.rulevalue.description }}</ion-label>
|
||||||
</ion-badge>
|
</ion-chip>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -842,6 +842,10 @@ ion-select-popover ion-item.core-select-option-title {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ion-chip {
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
ion-searchbar {
|
ion-searchbar {
|
||||||
.searchbar-search-icon.ios {
|
.searchbar-search-icon.ios {
|
||||||
top: 4px;
|
top: 4px;
|
||||||
|
|
Loading…
Reference in New Issue