72 lines
2.3 KiB
HTML
72 lines
2.3 KiB
HTML
<div class="generic-page">
|
|
<div class="title">Manage Applications</div>
|
|
<div class="fill-all">
|
|
<burger-property>
|
|
<name>Applications</name>
|
|
<description>Availlable applications for this SSO</description>
|
|
|
|
<body>
|
|
<table class="table-model">
|
|
<tr>
|
|
<th>id</th>
|
|
<th>name</th>
|
|
<th>Description</th>
|
|
<th>redirect</th>
|
|
<th>TTL (minutes)</th>
|
|
<th>Notification</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
@for (application of applications; track application.id;) {
|
|
<tr>
|
|
<td>{{application.id}}</td>
|
|
<td>{{application.name}}</td>
|
|
<td>{{application.description}}</td>
|
|
<td>{{application.redirect}}</td>
|
|
<td>{{application.ttl}}</td>
|
|
<td>{{application.notification}}</td>
|
|
<td>
|
|
<button class="square-button login color-shadow-black"
|
|
(click)="onEditApplication($event, application)" type="submit">
|
|
<i class="material-icons">edit</i>
|
|
</button>
|
|
<button class="square-button login color-shadow-black"
|
|
(click)="onEditRightApplication($event, application)" type="submit">
|
|
<i class="material-icons">admin_panel_settings</i>
|
|
</button>
|
|
@if(application.id !== 0) {
|
|
<button class="square-button login color-button-cancel color-shadow-black"
|
|
(click)="onRemoveApplication($event, application)"
|
|
type="submit">
|
|
<i class="material-icons">delete_forever</i>
|
|
</button>
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
</body>
|
|
</burger-property>
|
|
</div>
|
|
<div class="clear"><br /></div>
|
|
<div style="padding-top:15px;">
|
|
<burger-property>
|
|
<name>Create new application</name>
|
|
<description>Add a new application on the server</description>
|
|
|
|
<body>
|
|
<app-render-form [values]="createApplicationMenu" (deltaValues)="onCreateValueDeltaValues($event)"
|
|
(changeState)="onCreateValueState($event)"></app-render-form>
|
|
</body>
|
|
<footer>
|
|
<button class="button login color-button-validate color-shadow-black" id="create-button"
|
|
[disabled]="validateButtonCreateApplicationDisabled !== 0" (click)="onCreateApplication()"
|
|
type="submit">
|
|
Create application
|
|
</button>
|
|
</footer>
|
|
</burger-property>
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<delete-confirm [comment]="confirmDeleteComment" (callback)="deleteConfirmed()"></delete-confirm> |