mirror of https://github.com/Ombi-app/Ombi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.8 KiB
68 lines
2.8 KiB
|
|
<settings-menu></settings-menu>
|
|
<div *ngIf="form" class="small-middle-container">
|
|
<fieldset>
|
|
<legend>Gotify Notifications</legend>
|
|
<div class="col-md-6">
|
|
<form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)">
|
|
|
|
<div class="form-group">
|
|
<mat-checkbox id="enable" formControlName="enabled">Enabled</mat-checkbox>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<mat-form-field>
|
|
<mat-label>Base URL</mat-label>
|
|
<input matInput type="text" id="baseUrl" name="baseUrl" [ngClass]="{'form-error': form.get('baseUrl').hasError('required')}" formControlName="baseUrl" pTooltip="Enter the URL of your gotify server.">
|
|
</mat-form-field>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<mat-form-field>
|
|
<mat-label>Application Token</mat-label>
|
|
<input matInput type="text" id="applicationToken" name="applicationToken" [ngClass]="{'form-error': form.get('applicationToken').hasError('required')}" formControlName="applicationToken" pTooltip="Enter your Application token from Gotify.">
|
|
</mat-form-field>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<mat-form-field>
|
|
<mat-label>Priority</mat-label>
|
|
|
|
<mat-select id="priority" name="priority" formControlName="priority" pTooltip="The priority you want your gotify notifications sent as.">
|
|
<mat-option value="4">Normal</mat-option>
|
|
<mat-option value="8">High</mat-option>
|
|
<mat-option value="2">Low</mat-option>
|
|
<mat-option value="0">Lowest</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
<div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
<div>
|
|
<button [disabled]="form.invalid" mat-raised-button type="button" (click)="test(form)">
|
|
Test
|
|
<div id="spinner"></div>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
<div>
|
|
<button [disabled]="form.invalid" mat-raised-button type="submit" id="save">Submit</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-6">
|
|
<notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|