MOre !wip

This commit is contained in:
Jamie 2018-02-02 13:28:51 +00:00
commit e840f828e7
2 changed files with 40 additions and 16 deletions

View file

@ -44,6 +44,7 @@ export enum NotificationType {
RequestDeclined,
ItemAddedToFaultQueue,
WelcomeEmail,
IssueResolved,
}
export interface IDiscordNotifcationSettings extends INotificationSettings {

View file

@ -1,17 +1,39 @@

<settings-menu></settings-menu>
<settings-menu>
</settings-menu>
<div *ngIf="form">
<fieldset>
<legend>Mobile Notifications</legend>
<div class="col-md-6">
<form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)">
<div class="row">
<div *ngIf="userList" class="col-md-8">
<table class="table table-striped table-hover table-responsive table-condensed">
<thead>
<tr>
<th>
<a>Username/Alias</a>
</th>
<th>
<a>Mobile Devices Registered</a>
</th>
<div *ngFor="let user of userList">
<span>{{user.username}} - {{user.devices}}</span>
</tr>
</thead>
<tbody>
<tr *ngFor="let user of userList">
<td>
{{user.username}}
</td>
<td>
{{user.devices}}
</td>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="form-group">
<div>
<button [disabled]="form.invalid" type="button" (click)="test(form)" class="btn btn-primary-outline">
@ -28,6 +50,7 @@
<button [disabled]="form.invalid" type="submit" id="save" class="btn btn-primary-outline">Submit</button>
</div>
</div>
</div>
</form>
</div>