]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/share/staff-banner.component.ts
LP2045292 Color contrast for AngularJS patron bills
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / share / staff-banner.component.ts
1 import {Component, OnInit, Input} from '@angular/core';
2
3 @Component({
4     selector: 'eg-staff-banner',
5     template: `
6     <eg-title i18n-prefix [prefix]="bannerText"></eg-title>
7
8     <div class="lead alert alert-primary text-center pt-1 pb-1"
9       [ngClass]="bannerStyle ? bannerStyle : 'alert-primary'">
10       <h1>
11         <i class="material-icons align-middle text-left" aria-hidden="true" *ngIf="bannerIcon">{{bannerIcon}}</i>
12         <span i18n>{{bannerText}}</span>
13       </h1>
14     </div>
15     `
16 })
17
18 export class StaffBannerComponent {
19     @Input() public bannerText: string;
20     @Input() public bannerIcon: string;
21     @Input() public bannerStyle: string;
22 }
23
24