launcher.component.html 2.75 KB
Newer Older
1
2


Chris Hines's avatar
Chris Hines committed
3
4
<div  fxFlex style="flex: 1 1 0%; box-sizing: border-box">
<div fxLayout="column" fxLayoutAlign="space-around stretch" style="height: 100%; width: 100%" >
Chris Hines's avatar
Chris Hines committed
5
6
7
<mat-toolbar color="primary">
  <mat-toolbar-row>
    <button mat-icon-button (click)=idSideNav.toggle()><mat-icon>menu</mat-icon></button>
Chris Hines's avatar
Chris Hines committed
8

Chris Hines's avatar
Chris Hines committed
9
10
11
12
    <span>Strudel v2.0</span>
    <span class="fill-horizontal-space"></span>
    </mat-toolbar-row>
  </mat-toolbar>
13
<mat-sidenav-container style="height: 100%; width: 100%">
Chris Hines's avatar
Chris Hines committed
14
  <mat-sidenav #idSideNav mode="side" opened>
Chris Hines's avatar
Chris Hines committed
15
    <mat-accordion>
16
17
18
19
20

<!-- <mat-accordion> -->
    <mat-expansion-panel>
      <mat-expansion-panel-header>
        <mat-panel-title>
21
            Login
22
23
        </mat-panel-title>
        </mat-expansion-panel-header>
24
        <div *ngFor="let sshauthzserver of (authService.loggedOutAuthZ | async)">
25
          <button mat-button (click)=login(sshauthzserver) fxFlex style="text-align: left"> Login to {{ sshauthzserver.name }}</button>
26
27
          <button mat-icon-button *ngIf="sshauthzserver.userdefined === true"><mat-icon>remove</mat-icon></button>
        </div>
28
29
        <div *ngFor="let sshauthzserver of (authService.loggedOutAuthZ | async)">
          <button mat-button (click)=signup(sshauthzserver) style="text-align: left"> Signup for {{ sshauthzserver.name }}</button>
30
        </div>
31
32
        <button mat-button (click) =logout() style="text-align: left">Logout</button>
        <button mat-button (click) ="authService.updateAgentContents()" style="text-align: left">Refresh</button>
33
34
35
36
37
38
39
40
41
42
43
        </mat-expansion-panel>
    <div *ngFor="let id of computeSitesService.appidentities | async">
	<mat-expansion-panel (click)=selectId(id)>
		<mat-expansion-panel-header>
			{{ id.displayName() }}
		</mat-expansion-panel-header>
        <app-strudelapplist [applist]=id.site.appCatalog [identity]="id"></app-strudelapplist>
	</mat-expansion-panel>
	</div>
    <mat-expansion-panel>
        <mat-expansion-panel-header>
44
            Advanced
45
46
        </mat-expansion-panel-header>
        Select an API server
Chris Hines's avatar
Chris Hines committed
47
48
        <mat-select [ngModel]="selectedApiServer" (selectionChange)="backendSelectionService.setApiServer($event.value)">
            <mat-option *ngFor="let apis of backendSelectionService.apiservers|async" [value]="apis">
49
50
51
                {{ apis.name }}
            </mat-option>
        </mat-select>
52
53
54
        <button type="button" mat-button (click)="fileInput.click()">Load Config</button>
        <input hidden (change)="loadConfig($event)" accept=".json" #fileInput type="file" id="file">
        <button mat-button (click)=resetConfig()>Reset Config</button>
55
    </mat-expansion-panel>
Chris Hines's avatar
Chris Hines committed
56
	</mat-accordion>
57
</mat-sidenav>
Chris Hines's avatar
Chris Hines committed
58

Chris Hines's avatar
Chris Hines committed
59
60
61
  <app-joblist [identity]="identitySubject | async"></app-joblist>
  <div fxFlex></div>

Chris Hines's avatar
Chris Hines committed
62
</mat-sidenav-container>
Chris Hines's avatar
Chris Hines committed
63
64
</div>
</div>
Chris Hines's avatar
Chris Hines committed
65
66

<!-- <app-joblist></app-joblist> -->