open-learning-exchange/planet

View on GitHub
src/app/shared/dialogs/dialogs-prompt.component.html

Summary

Maintainability
Test Coverage
<mat-dialog-content>
  <p *ngIf="showMainParagraph" i18n>
    Are you sure you want to {data.changeType, select, accept {accept} reject {reject} delete {delete} leave {leave} remove {remove} leader {give leadership to}}
      the {data.amount, select, single
      {following {data.type, select,
        community {community}
        nation {nation}
        course {course}
        resource {resource}
        meetup {meetup}
        user {member}
        change {change}
        team {team}
        task {task}
        certification {certification}
        event {event}
        transaction {transaction}
        link {link}
        report {report}}?
      }
      many
      {selected {{data.count}} {data.type, select,
        community {communities}
        nation {nations}
        course {courses}
        resource {resources}
        meetup {meetups}
        event {events}}?
      }
    }
  </p>
  <p [innerHTML]=data.extraMessage></p>
  <b>{{data.displayName}}</b>
  <b *ngIf="data.displayDates">{{data.displayDates.startDate | date : 'mediumDate' : isDateUtc ? '+0000' : undefined }} - {{data.displayDates.endDate | date: 'mediumDate' : isDateUtc ? '+0000' : undefined }}</b>
  <ng-container *ngFor="let label of labels; last as last">
    <p><b><planet-label [label]="label.field"></planet-label>: {{label.value}}</b></p>
  </ng-container>
</mat-dialog-content>
<mat-dialog-actions>
  <button mat-raised-button mat-dialog-close *ngIf="cancelable" i18n>Cancel</button>
  <button color="primary" mat-raised-button (click)="ok()" [planetSubmit]="spinnerOn" i18n>OK</button>
</mat-dialog-actions>