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