|
|
@@ -1,4 +1,5 @@
|
|
|
-<h1>Edit Event Details</h1>
|
|
|
+<h1 *ngIf="isCreateMode">New Event Details</h1>
|
|
|
+<h1 *ngIf="!isCreateMode">Edit Event Details</h1>
|
|
|
<form #eventForm="ngForm" class="vertical-form" (ngSubmit)="updateEvent(eventForm, $event)" *ngIf="event">
|
|
|
<div class="form-field form-field--full-width">
|
|
|
<span class="p-float-label">
|
|
|
@@ -37,7 +38,8 @@
|
|
|
<app-track-picker [(track)]="event.track"></app-track-picker>
|
|
|
</div>
|
|
|
<div class="button-group">
|
|
|
- <button type="submit" pButton>Save</button>
|
|
|
+ <button *ngIf="isCreateMode" type="submit" pButton>Create</button>
|
|
|
+ <button *ngIf="!isCreateMode" type="submit" pButton>Save</button>
|
|
|
<button *ngIf="!isCreateMode" type="button" pButton class="p-button-danger" (click)="deleteEvent()">Delete</button>
|
|
|
</div>
|
|
|
</form>
|