Changes on 19-11-2025
This commit is contained in:
@ -77,10 +77,14 @@ public class Event {
|
||||
@Column(name = "is_deleted", nullable = false)
|
||||
private Boolean isDeleted = false;
|
||||
|
||||
// NEW FIELD: Book Seat Link
|
||||
// Registration/Booking Link
|
||||
@Column(name = "book_seat_link", length = 500)
|
||||
private String bookSeatLink;
|
||||
|
||||
// Additional Information Link
|
||||
@Column(name = "learn_more_link", length = 500)
|
||||
private String learnMoreLink;
|
||||
|
||||
@ManyToMany
|
||||
@JoinTable(
|
||||
name = "event_professors",
|
||||
|
||||
@ -119,10 +119,10 @@
|
||||
<input id="email" formControlName="email" class="form-input" placeholder="contact@example.com">
|
||||
</div>
|
||||
|
||||
<!-- NEW FIELD: Book Seat Link -->
|
||||
<!-- Registration/Booking Link -->
|
||||
<div class="form-group">
|
||||
<label for="bookSeatLink">
|
||||
<i class="bi bi-link-45deg"></i>
|
||||
<i class="bi bi-ticket-perforated"></i>
|
||||
Book Seat Registration Link
|
||||
</label>
|
||||
<input id="bookSeatLink"
|
||||
@ -132,6 +132,19 @@
|
||||
<p class="form-hint">Enter the URL where users can register/book seats for this event</p>
|
||||
</div>
|
||||
|
||||
<!-- Learn More Link -->
|
||||
<div class="form-group">
|
||||
<label for="learnMoreLink">
|
||||
<i class="bi bi-info-circle"></i>
|
||||
Learn More Information Link
|
||||
</label>
|
||||
<input id="learnMoreLink"
|
||||
formControlName="learnMoreLink"
|
||||
class="form-input"
|
||||
placeholder="https://example.com/event-details">
|
||||
<p class="form-hint">Enter the URL for additional event information (optional)</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="checkbox-wrapper">
|
||||
<input id="isActive" type="checkbox" formControlName="isActive" class="checkbox-input">
|
||||
@ -196,7 +209,7 @@
|
||||
<div class="card-body">
|
||||
<div formArrayName="highlights">
|
||||
<div *ngFor="let highlight of highlights.controls; let i = index" class="simple-array-item">
|
||||
<input [formControlName]="i" class="form-input" placeholder="Highlight">
|
||||
<input [formControlName]="i" class="form-input" placeholder="Event highlight">
|
||||
<button type="button" class="btn-remove-inline" (click)="removeHighlight(i)">
|
||||
<i class="bi bi-x"></i>
|
||||
</button>
|
||||
@ -212,7 +225,7 @@
|
||||
|
||||
<!-- Right Column -->
|
||||
<div class="form-column">
|
||||
<!-- Main Image Section -->
|
||||
<!-- Main Event Image Section -->
|
||||
<div class="form-card">
|
||||
<div class="card-header">
|
||||
<i class="bi bi-image"></i>
|
||||
@ -305,10 +318,12 @@
|
||||
<h4 class="url-title">Or Add Gallery URLs</h4>
|
||||
<div formArrayName="galleryImages">
|
||||
<div *ngFor="let image of galleryImages.controls; let i = index" class="gallery-url-item">
|
||||
<input [formControlName]="i" class="form-input" placeholder="https://images.unsplash.com/...">
|
||||
<button type="button" class="btn-remove-inline" (click)="removeGalleryImage(i)">
|
||||
<i class="bi bi-x"></i>
|
||||
</button>
|
||||
<div>
|
||||
<input [formControlName]="i" class="form-input" placeholder="https://images.unsplash.com/...">
|
||||
<button type="button" class="btn-remove-inline" (click)="removeGalleryImage(i)">
|
||||
<i class="bi bi-x"></i>
|
||||
</button>
|
||||
</div>
|
||||
<!-- Thumbnail Preview -->
|
||||
<div class="gallery-thumbnail" *ngIf="galleryImages.at(i).value">
|
||||
<img [src]="galleryImages.at(i).value" alt="Gallery Preview">
|
||||
|
||||
@ -44,7 +44,8 @@ export class EventFormComponent implements OnInit {
|
||||
fees: this.fb.array([]), // Form uses 'fees' (plural)
|
||||
phone: ['', Validators.required],
|
||||
email: ['', [Validators.required, Validators.email]],
|
||||
bookSeatLink: [''], // NEW FIELD: Book Seat Link
|
||||
bookSeatLink: [''], // Registration/booking link
|
||||
learnMoreLink: [''], // Additional information link
|
||||
isActive: [true]
|
||||
});
|
||||
|
||||
@ -147,7 +148,8 @@ export class EventFormComponent implements OnInit {
|
||||
mainImage: event.mainImage,
|
||||
phone: event.phone,
|
||||
email: event.email,
|
||||
bookSeatLink: event.bookSeatLink, // NEW FIELD
|
||||
bookSeatLink: event.bookSeatLink,
|
||||
learnMoreLink: event.learnMoreLink,
|
||||
isActive: event.isActive
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user