Hide the subject when it's not being used

This commit is contained in:
Jamie 2017-11-30 08:04:03 +00:00
parent 237acc9311
commit 1f02c87c8c
8 changed files with 8 additions and 7 deletions

View file

@ -50,7 +50,7 @@
<div class="col-md-6">
<notification-templates [templates]="templates"></notification-templates>
<notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div>
</fieldset>
</div>

View file

@ -66,7 +66,7 @@
<div class="col-md-6">
<notification-templates [templates]="templates"></notification-templates>
<notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div>
</fieldset>
</div>

View file

@ -15,7 +15,7 @@
</div>
</div>
<div class="form-group">
<div class="form-group" *ngIf="showSubject">
<label class="control-label">Subject</label>
<div>
<input type="text" class="form-control form-control-custom" [(ngModel)]="template.subject" value="{{template.subject}}">

View file

@ -8,5 +8,6 @@ import { INotificationTemplates, NotificationType } from "../../interfaces";
})
export class NotificationTemplate {
@Input() public templates: INotificationTemplates[];
@Input() public showSubject = true; // True by default
public NotificationType = NotificationType;
}

View file

@ -51,7 +51,7 @@
<div class="col-md-6">
<notification-templates [templates]="templates"></notification-templates>
<notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div>
</fieldset>
</div>

View file

@ -51,7 +51,7 @@
<div class="col-md-6">
<notification-templates [templates]="templates"></notification-templates>
<notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div>
</fieldset>
</div>

View file

@ -76,7 +76,7 @@
<div class="col-md-6">
<notification-templates [templates]="templates"></notification-templates>
<notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div>
</fieldset>
</div>

View file

@ -60,7 +60,7 @@
<div class="col-md-6">
<notification-templates [templates]="templates"></notification-templates>
<notification-templates [templates]="templates" [showSubject]="false"></notification-templates>
</div>
</fieldset>
</div>