#6: Add ability to create whole-day events
All checks were successful
Jenkins Production Deployment
All checks were successful
Jenkins Production Deployment
This commit is contained in:
parent
effb0efb6d
commit
aa0d03c86a
|
@ -8,13 +8,16 @@
|
||||||
<td>
|
<td>
|
||||||
<input type="text" [(ngModel)]="event!.description">
|
<input type="text" [(ngModel)]="event!.description">
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" [(ngModel)]="event!.wholeDay">
|
||||||
|
</td>
|
||||||
<td class="{{showDateError || requiredFieldsMissing? 'has-error' : ''}}">
|
<td class="{{showDateError || requiredFieldsMissing? 'has-error' : ''}}">
|
||||||
<input type="date" [(ngModel)]="newStartDate" (change)="setStartDateTime()">
|
<input type="date" [(ngModel)]="newStartDate" (change)="setStartDateTime()">
|
||||||
<input type="time" [(ngModel)]="newStartTime" (change)="setStartDateTime()">
|
<input type="time" [(ngModel)]="newStartTime" (change)="setStartDateTime()" *ngIf="!this.event!.wholeDay">
|
||||||
</td>
|
</td>
|
||||||
<td class="{{showDateError || requiredFieldsMissing? 'has-error' : ''}}">
|
<td class="{{showDateError || requiredFieldsMissing? 'has-error' : ''}}">
|
||||||
<input type="date" [(ngModel)]="newEndDate" (change)="setEndDateTime()">
|
<input type="date" [(ngModel)]="newEndDate" (change)="setEndDateTime()">
|
||||||
<input type="time" [(ngModel)]="newEndTime" (change)="setEndDateTime()">
|
<input type="time" [(ngModel)]="newEndTime" (change)="setEndDateTime()" *ngIf="!this.event!.wholeDay">
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" [(ngModel)]="event!.location">
|
<input type="text" [(ngModel)]="event!.location">
|
||||||
|
@ -45,13 +48,16 @@
|
||||||
<td>
|
<td>
|
||||||
{{event?.description}}
|
{{event?.description}}
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type="checkbox" [(ngModel)]="event!.wholeDay" disabled>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="date" [value]="newStartDate" readonly>
|
<input type="date" [value]="newStartDate" readonly>
|
||||||
<input type="time" [value]="newStartTime" readonly>
|
<input type="time" [value]="newStartTime" readonly *ngIf="!this.event!.wholeDay">
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="date" [value]="newEndDate" readonly>
|
<input type="date" [value]="newEndDate" readonly>
|
||||||
<input type="time" [value]="newEndTime" readonly>
|
<input type="time" [value]="newEndTime" readonly *ngIf="!this.event!.wholeDay">
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{event?.location}}
|
{{event?.location}}
|
||||||
|
|
|
@ -63,7 +63,6 @@ export class EventComponent implements OnInit {
|
||||||
this.showCreateError = true;
|
this.showCreateError = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Update existing event
|
// Update existing event
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<th>Calendar</th>
|
<th>Calendar</th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
|
<th>Whole Day</th>
|
||||||
<th>Start</th>
|
<th>Start</th>
|
||||||
<th>End</th>
|
<th>End</th>
|
||||||
<th>Location</th>
|
<th>Location</th>
|
||||||
|
|
|
@ -10,4 +10,5 @@ export interface Event {
|
||||||
location: string;
|
location: string;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
url: string;
|
url: string;
|
||||||
|
wholeDay: boolean;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user