|
@ -22,15 +22,15 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label for="phonebook-select">Phonebook</label> |
|
|
<label for="phonebook-select">Phonebook</label> |
|
|
<select class="form-control" [(ngModel)]="newCampaign.phonebookId" id="phonebook-select"> |
|
|
|
|
|
<option></option> |
|
|
|
|
|
|
|
|
<select class="form-control" (change)="updatePreviews()" [(ngModel)]="newCampaign.phonebookId" id="phonebook-select"> |
|
|
|
|
|
<option [ngValue]="0"></option> |
|
|
<option *ngFor="let phonebook of phonebookService.phonebooks" [ngValue]="phonebook.id">{{phonebook.name}}: Size {{phonebook.size}}</option> |
|
|
<option *ngFor="let phonebook of phonebookService.phonebooks" [ngValue]="phonebook.id">{{phonebook.name}}: Size {{phonebook.size}}</option> |
|
|
</select> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label for="text-template-select">Text Template</label> |
|
|
<label for="text-template-select">Text Template</label> |
|
|
<select class="form-control" [(ngModel)]="newCampaign.textTemplateId" id="text-template-select"> |
|
|
|
|
|
<option></option> |
|
|
|
|
|
|
|
|
<select class="form-control" (change)="updatePreviews()" [(ngModel)]="newCampaign.textTemplateId" id="text-template-select"> |
|
|
|
|
|
<option [ngValue]="0"></option> |
|
|
<option *ngFor="let textTemplate of textTemplateService.textTemplates" [ngValue]="textTemplate.id">{{textTemplate.name}}</option> |
|
|
<option *ngFor="let textTemplate of textTemplateService.textTemplates" [ngValue]="textTemplate.id">{{textTemplate.name}}</option> |
|
|
</select> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
@ -39,7 +39,14 @@ |
|
|
<div class="col-12 d-flex"> |
|
|
<div class="col-12 d-flex"> |
|
|
<button type="button" (click)="submitNewCampaignRun()" class="btn btn-primary mr-2">Start</button> |
|
|
<button type="button" (click)="submitNewCampaignRun()" class="btn btn-primary mr-2">Start</button> |
|
|
<button type="button" (click)="submitNewCampaign()" class="btn btn-secondary ml-2">Save</button> |
|
|
<button type="button" (click)="submitNewCampaign()" class="btn btn-secondary ml-2">Save</button> |
|
|
<button type="button" *ngIf="router.url !== '/campaign/new'" (click)="askDelete()" class="btn btn-danger ml-auto" data-toggle="modal" data-target="#completeModal">Delete</button> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="form-group mt-4"> |
|
|
|
|
|
<label for="template-preview" class="pr-2 mt-auto mb-auto">Template</label> |
|
|
|
|
|
<textarea class="form-control flex" [(ngModel)]="templateStr" id="template-preview" rows="4" disabled></textarea> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group mt-2"> |
|
|
|
|
|
<label for="new-text-preview" class="pr-2 mt-auto mb-auto">Preview (First Entry)</label> |
|
|
|
|
|
<textarea class="form-control flex" [(ngModel)]="previewStr" id="new-text-preview" rows="4" disabled></textarea> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|