1 //- Copyright (c) 2019 AT&T Intellectual Property. #
\r
3 //- Licensed under the Apache License, Version 2.0 (the "License"); #
\r
4 //- you may not use this file except in compliance with the License. #
\r
5 //- You may obtain a copy of the License at #
\r
7 //- http://www.apache.org/licenses/LICENSE-2.0 #
\r
9 //- Unless required by applicable law or agreed to in writing, software #
\r
10 //- distributed under the License is distributed on an "AS IS" BASIS, #
\r
11 //- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
\r
12 //- See the License for the specific language governing permissions and #
\r
13 //- limitations under the License. #
\r
14 //- #############################################################################
\r
17 div(*ngIf = 'type == "warning"')
\r
18 h2(mat-dialog-title)
\r
22 p(style="text-align: center") {{data.message}}
\r
24 button(mat-raised-button, color="primary", aria-label='View', (click) = "okay()") OK
\r
26 div(*ngIf = 'type == "confirmation"')
\r
27 h2(mat-dialog-title)
\r
31 p(style="text-align: center") {{data.message}}
\r
33 button(mat-raised-button, color="primary", aria-label='Yes', (click) = "confirmed()") Yes
\r
34 button(mat-raised-button, color="primary", aria-label='Cancel', (click) = "canceled()") Cancel
\r
36 div(*ngIf = 'type == "userAdmin"')
\r
37 h2(mat-dialog-title)
\r
41 p(style="text-align: center") {{data.message}}
\r
43 button(mat-raised-button, color="primary", aria-label='Yes', (click) = "confirmed()") Admin
\r
44 button(mat-raised-button, color="primary", aria-label='Cancel', (click) = "canceled()") User
\r
46 div(*ngIf = 'type == "alert"')
\r
47 h2(mat-dialog-title)
\r
48 i.fa.fa-times-circle-o
\r
51 p(style="text-align: center") {{data.message}}
\r
53 button.bg-primary.mbtn.text-white.mr-1(mat-raised-button, aria-label='OK', (click) = "okay()") OK
\r
55 div(*ngIf = 'type == "ok"')
\r
56 h2(mat-dialog-title)
\r
60 p(*ngIf="html", [innerHtml]="html")
\r
61 p(*ngIf="!html", style="text-align: center") {{data.message}}
\r
63 button.bg-primary.mbtn.text-white.mr-1(mat-raised-button, aria-label='OK', (click) = "okay()") OK
\r
65 div(*ngIf = 'type == "info"')
\r
66 h2(mat-dialog-title)
\r
69 p(*ngIf="html", [innerHtml]="html")
\r
70 p(*ngIf="!html", style="text-align: center") {{data.message}}
\r
72 button.bg-primary.mbtn.text-white.mr-1(mat-raised-button, aria-label='OK', (click) = "okay()") OK
\r
76 //<h1 mat-dialog-title>Add file</h1>
\r
77 <mat-dialog-content>
\r
79 </mat-dialog-content>
\r
80 <mat-dialog-actions>
\r
81 <button mat-button>Add</button>
\r
82 <button mat-button>Cancel</button>
\r
83 </mat-dialog-actions>
\r