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.
57 lines
2.4 KiB
57 lines
2.4 KiB
<settings-menu></settings-menu>
|
|
<div class="small-middle-container">
|
|
<wiki></wiki>
|
|
<fieldset>
|
|
<legend>Mass Email</legend>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<input type="text" class="form-control form-control-custom " id="subject" name="subject" placeholder="Subject" [(ngModel)]="subject" [ngClass]="{'form-error': missingSubject}">
|
|
<small *ngIf="missingSubject" class="error-text">Hey! We need a subject!</small>
|
|
</div>
|
|
|
|
<div class="form-group" >
|
|
<textarea rows="10" type="text" class="form-control-custom form-control" id="themeContent" name="themeContent" [(ngModel)]="message" placeholder="This supports HTML"></textarea>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="logo" class="control-label">Message Preview</label>
|
|
<br/>
|
|
<small>May appear differently on email clients</small>
|
|
<hr/>
|
|
<div [innerHTML]="message"></div>
|
|
<hr/>
|
|
</div>
|
|
<small>This will send out the Mass email BCC'ing all of the selected users rather than sending individual messages</small>
|
|
<div class="md-form-field">
|
|
<mat-slide-toggle [(ngModel)]="bcc">BCC</mat-slide-toggle>
|
|
</div>
|
|
<br>
|
|
<br>
|
|
<div class="form-group">
|
|
<div>
|
|
<button type="submit" id="save" (click)="send()" class="mat-focus-indicator btn-spacing mat-raised-button mat-button-base mat-accent">Send</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<!--Users Section-->
|
|
<label class="control-label">Recipients with Email Addresses</label>
|
|
<div class="form-group">
|
|
<div class="md-form-field">
|
|
<mat-slide-toggle (change)="selectAllUsers($event)">Select All</mat-slide-toggle>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group" *ngFor="let u of users">
|
|
<div class="md-form-field">
|
|
<mat-slide-toggle id="user{{u.user.id}}" [(ngModel)]="u.selected">{{u.user.userName}} ({{u.user.emailAddress}})</mat-slide-toggle>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</fieldset>
|
|
</div>
|