admin: group Sessionize + Pretix into labeled sections in event modal
This commit is contained in:
1 parent
17d28ea753
commit
d288fbf2f8
2 files changed
+56
-30
No files matched your search
@@ -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/<id>/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/<id>/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' }}>
|
||||
|
||||
Reference in new issue
Block a user