admin: group Sessionize + Pretix into labeled sections in event modal

Co-authored-by: Stephan Charles <[email protected]>
Co-authored-by: Amelia Hernandez <[email protected]>
Co-authored-by: Markus Franz <[email protected]>
Co-authored-by: Sabrina Hota <[email protected]>
Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
committed 2026-09-09 17:37:29 +02:00
1 parent 567d7e5d40
commit 0ad02970a0
2 files changed
+27 -1

No files matched your search

+8
View File
@@ -161,6 +161,14 @@ textarea.input { resize: none; min-height: 84px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.section {
border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
background: var(--surface-2); display: flex; flex-direction: column; gap: 12px;
}
.section-head { display: flex; align-items: center; gap: 8px; }
.section-head .ico { font-size: 16px; }
.section-head h4 { font-size: 13px; font-weight: 800; letter-spacing: .2px; color: var(--text); margin: 0; }
.section-head .pill { margin-left: auto; }
/* ---------- Stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
+19 -1
View File
@@ -341,6 +341,12 @@ function EventModal({
<label>Location</label>
<input className="input" value={location} onChange={(e) => setLocation(e.target.value)} placeholder="—" />
</div>
<div className="section">
<div className="section-head">
<span className="ico">📅</span>
<h4>Sessionize</h4>
{endpoint.trim() ? <span className="pill green">configured</span> : <span className="pill">not set</span>}
</div>
<div className="field">
<label>Sessionize endpoint</label>
<input
@@ -354,6 +360,17 @@ function EventModal({
“Run sync” button. You can also import the .xlsx export in the Interfaces menu.
</div>
</div>
</div>
<div className="section">
<div className="section-head">
<span className="ico">🎟️</span>
<h4>Pretix</h4>
{pretixOrganizer.trim() && pretixEventSlug.trim() ? (
<span className="pill green">configured</span>
) : (
<span className="pill">not set</span>
)}
</div>
<div className="grid-2">
<div className="field">
<label>Pretix organizer</label>
@@ -374,11 +391,12 @@ function EventModal({
/>
</div>
</div>
<div className="muted small" style={{ marginBottom: 12, maxWidth: 640 }}>
<div className="muted small" style={{ maxWidth: 640 }}>
The sidecar syncs paid Pretix tickets for this event every minute. Set the organizer +
event slug (e.g. <code>appecommday</code> / <code>tickets</code>). The API key is
configured on the sidecar.
</div>
</div>
<div className="field">
<div className="row between" style={{ alignItems: 'center' }}>
<div>