feat(bootcamp): move the live seat-count line immediately below the hero

The [data-bc-seats] line lived in the Price-and-booking section; the user wants it
just under the hero. Moved (not copied) on EN/DE/ES — one element per page, the same
/static/bootcamp-availability.js, every string unchanged ("x of 6 seats available" /
"x von 6 Plätzen frei" / "x de 6 plazas disponibles").

Also adds a page-scoped :disabled style for the Buy buttons so a sold-out cohort's
disabled buttons actually read as disabled (rule: zero is honest — the buy must not
look open). Buy forms untouched: still post product_id 17.
This commit is contained in:
webmaster committed 2026-11-02 15:32:43 +00:00
1 parent 8f72652ada
commit bc942cdb7c
3 files changed
+45 -3

No files matched your search

+15 -1
View File
@@ -192,6 +192,14 @@
form[action$="/shop/post_basket"] .btn {
line-height: inherit;
}
/* At 0 seats /static/bootcamp-availability.js disables these Buy buttons; make the
disabled state read as disabled — quiet dimming in the page's own CI, never an
alert banner. */
form[action$="/shop/post_basket"] .btn:disabled,
form[action$="/shop/post_basket"] .btn[aria-disabled="true"] {
opacity: 0.5;
cursor: not-allowed;
}
/* Grids — auto-fit so no breakpoint is needed */
.bc-list {
@@ -670,6 +678,13 @@
</div>
</section>
<!-- Live remaining-seat count, immediately below the hero. One seat element only on
the page; /static/bootcamp-availability.js fills it from the availability webhook
and leaves it empty+hidden if that fetch fails. -->
<div class="container">
<p class="bc-note bc-seats" data-bc-seats hidden></p>
</div>
<!-- From zero to a running ERP -->
<section class="section-light">
<div class="container">
@@ -842,7 +857,6 @@
<h2 class="section-title">Preis und Buchung</h2>
<p class="bc-price">Das Programm kostet USD 595.00 für alle zehn Sitzungen.</p>
<p class="bc-note"><strong>Begrenzt auf 6 Teilnehmer</strong> — die Gruppe ist klein, damit der Trainer sich Ihre eigene Konfiguration ansehen kann.</p>
<p class="bc-note bc-seats" data-bc-seats hidden></p>
<p class="bc-note">Ein Platz ist <strong>jederzeit übertragbar</strong> und kann <strong>bis zwei Wochen vor</strong> der ersten Sitzung am 21. Januar 2027 storniert werden.</p>
<p class="bc-lead">
Umfasst das komplette Programm: zehn Live-Sessions, ein Jahr gehostetes Odoo Community Edition, die Alumni-Community und die Expertenprüfung.