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.
60 lines
2.5 KiB
60 lines
2.5 KiB
|
|
<settings-menu></settings-menu>
|
|
<div *ngIf="form">
|
|
<fieldset>
|
|
<legend>Pushbyllet Notifications</legend>
|
|
<div class="col-md-6">
|
|
<form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)">
|
|
|
|
<div class="form-group">
|
|
<div class="checkbox">
|
|
<input type="checkbox" id="enable" formControlName="enabled">
|
|
<label for="enable">Enabled</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div *ngIf="form.invalid && form.dirty" class="alert alert-danger">
|
|
<div *ngIf="form.get('accessToken').hasError('required')">The Access Token is required</div>
|
|
</div>
|
|
<small>You can find this here: <a href="https://www.pushbullet.com/#settings/account">https://www.pushbullet.com/#settings/account </a></small>
|
|
<div class="form-group">
|
|
<label for="accessToken" class="control-label">Access Token</label>
|
|
<div>
|
|
<input type="text" class="form-control form-control-custom " id="accessToken" name="accessToken" formControlName="accessToken">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="channelTag" class="control-label">Channel Tag</label>
|
|
<div>
|
|
<input type="text" class="form-control form-control-custom " id="channelTag" name="channelTag" formControlName="channelTag" pTooltip="Optional, this is if you want to send a message to everyone subscribed to a channel">
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
<div>
|
|
<button [disabled]="form.invalid" type="button" (click)="test(form)" class="btn btn-primary-outline">
|
|
Test
|
|
<div id="spinner"></div>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
<div>
|
|
<button [disabled]="form.invalid" type="submit" id="save" class="btn btn-primary-outline">Submit</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-6">
|
|
<notification-templates [templates]="templates"></notification-templates>
|
|
</div>
|
|
</fieldset>
|
|
</div> |