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
@@ -161,6 +161,14 @@ textarea.input { resize: none; min-height: 84px; }
|
|||||||
.field { display: flex; flex-direction: column; gap: 6px; }
|
.field { display: flex; flex-direction: column; gap: 6px; }
|
||||||
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
|
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
|
||||||
.divider { height: 1px; background: var(--line); margin: 4px 0; }
|
.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 cards ---------- */
|
||||||
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
|
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
|
||||||
|
|||||||
@@ -341,43 +341,61 @@ function EventModal({
|
|||||||
<label>Location</label>
|
<label>Location</label>
|
||||||
<input className="input" value={location} onChange={(e) => setLocation(e.target.value)} placeholder="—" />
|
<input className="input" value={location} onChange={(e) => setLocation(e.target.value)} placeholder="—" />
|
||||||
</div>
|
</div>
|
||||||
<div className="field">
|
<div className="section">
|
||||||
<label>Sessionize endpoint</label>
|
<div className="section-head">
|
||||||
<input
|
<span className="ico">📅</span>
|
||||||
className="input"
|
<h4>Sessionize</h4>
|
||||||
value={endpoint}
|
{endpoint.trim() ? <span className="pill green">configured</span> : <span className="pill">not set</span>}
|
||||||
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>
|
</div>
|
||||||
<div className="field">
|
<div className="field">
|
||||||
<label>Pretix event slug</label>
|
<label>Sessionize endpoint</label>
|
||||||
<input
|
<input
|
||||||
className="input"
|
className="input"
|
||||||
value={pretixEventSlug}
|
value={endpoint}
|
||||||
onChange={(e) => setPretixEventSlug(e.target.value)}
|
onChange={(e) => setEndpoint(e.target.value)}
|
||||||
placeholder="e.g. tickets"
|
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>
|
</div>
|
||||||
<div className="muted small" style={{ marginBottom: 12, maxWidth: 640 }}>
|
<div className="section">
|
||||||
The sidecar syncs paid Pretix tickets for this event every minute. Set the organizer +
|
<div className="section-head">
|
||||||
event slug (e.g. <code>appecommday</code> / <code>tickets</code>). The API key is
|
<span className="ico">🎟️</span>
|
||||||
configured on the sidecar.
|
<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>
|
||||||
<div className="field">
|
<div className="field">
|
||||||
<div className="row between" style={{ alignItems: 'center' }}>
|
<div className="row between" style={{ alignItems: 'center' }}>
|
||||||
|
|||||||
Reference in new issue
Block a user