Event update
This commit is contained in:
@ -19,7 +19,7 @@ public class Event {
|
|||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Column(nullable = false, unique = true)
|
@Column
|
||||||
private String code;
|
private String code;
|
||||||
|
|
||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
|
|||||||
@ -28,7 +28,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="code">
|
<label for="code">
|
||||||
<i class="bi bi-upc"></i>
|
<i class="bi bi-upc"></i>
|
||||||
Event Code *
|
Event Code
|
||||||
</label>
|
</label>
|
||||||
<input id="code" formControlName="code" class="form-input" placeholder="Enter event code">
|
<input id="code" formControlName="code" class="form-input" placeholder="Enter event code">
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -28,7 +28,7 @@ export class EventFormComponent implements OnInit {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.eventForm = this.fb.group({
|
this.eventForm = this.fb.group({
|
||||||
code: ['', Validators.required],
|
code: [''],
|
||||||
year: ['', Validators.required],
|
year: ['', Validators.required],
|
||||||
subject: ['', Validators.required],
|
subject: ['', Validators.required],
|
||||||
title: ['', Validators.required],
|
title: ['', Validators.required],
|
||||||
|
|||||||
Reference in New Issue
Block a user