feat: allow custom layouts when creating tours

Courses without scraped layouts can now be used in tours by entering
a layout name and par manually. The layout is saved to the database
for reuse. All courses are shown in the dropdown, not just those with
existing layouts.
This commit is contained in:
Samuel Enocsson
2026-03-20 07:26:31 +01:00
parent 2ccb018bdf
commit 38cc93bc1c
4 changed files with 161 additions and 28 deletions
+16 -1
View File
@@ -44,6 +44,16 @@
flex: 1;
}
.manual-layout {
display: flex;
gap: 6px;
align-items: center;
}
.manual-layout input {
flex: 1;
}
.btn-secondary {
background: var(--surface-2);
color: var(--text-secondary);
@@ -178,10 +188,15 @@
flex-direction: column;
}
.course-entry select {
.course-entry select,
.manual-layout {
width: 100%;
}
.manual-layout {
flex-direction: row;
}
.tour-meta {
gap: 8px;
}