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
+56 -30

No files matched your search

+48 -30
View File
@@ -341,43 +341,61 @@ function EventModal({
<label>Location</label>
<input className="input" value={location} onChange={(e) => setLocation(e.target.value)} placeholder="—" />
</div>
<div className="field">
<label>Sessionize endpoint</label>
<input
className="input"
value={endpoint}
onChange={(e) => setEndpoint(e.target.value)}
placeholder="https://sessionize.com/api/v2/<id>/view/All"
/>
<div className="muted small" style={{ marginTop: 4 }}>
The Sessionize API URL (e.g. <code>…/api/v2/&lt;id&gt;/view/All</code>). Used by the
“Run sync” button. You can also import the .xlsx export in the Interfaces menu.
</div>
</div>
<div className="grid-2">
<div className="field">
<label>Pretix organizer</label>
<input
className="input"
value={pretixOrganizer}
onChange={(e) => setPretixOrganizer(e.target.value)}
placeholder="e.g. appecommday"
/>
<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>Pretix event slug</label>
<label>Sessionize endpoint</label>
<input
className="input"
value={pretixEventSlug}
onChange={(e) => setPretixEventSlug(e.target.value)}
placeholder="e.g. tickets"
value={endpoint}
onChange={(e) => setEndpoint(e.target.value)}
placeholder="https://sessionize.com/api/v2/<id>/view/All"
/>
<div className="muted small" style={{ marginTop: 4 }}>
The Sessionize API URL (e.g. <code>…/api/v2/&lt;id&gt;/view/All</code>). Used by the
“Run sync” button. You can also import the .xlsx export in the Interfaces menu.
</div>
</div>
</div>
<div className="muted small" style={{ marginBottom: 12, 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 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>
<input
className="input"
value={pretixOrganizer}
onChange={(e) => setPretixOrganizer(e.target.value)}
placeholder="e.g. appecommday"
/>
</div>
<div className="field">
<label>Pretix event slug</label>
<input
className="input"
value={pretixEventSlug}
onChange={(e) => setPretixEventSlug(e.target.value)}
placeholder="e.g. tickets"
/>
</div>
</div>
<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' }}>