Public Access
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:
1 parent
8f72652ada
commit
bc942cdb7c
3 files changed
+45
-3
No files matched your search
@@ -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">Precio y reserva</h2>
|
||||
<p class="bc-price">El programa cuesta USD 595.00 por las diez sesiones.</p>
|
||||
<p class="bc-note"><strong>Limitado a 6 participantes</strong> — el grupo es reducido, para que el instructor pueda trabajar sobre su propia configuración.</p>
|
||||
<p class="bc-note bc-seats" data-bc-seats hidden></p>
|
||||
<p class="bc-note">Una plaza se puede <strong>transferir en cualquier momento</strong> y <strong>cancelar hasta dos semanas antes</strong> de la primera sesión, el 21 de enero de 2027.</p>
|
||||
<p class="bc-lead">
|
||||
Cubre el programa completo: diez sesiones en directo, un año de Odoo Community Edition alojado, la comunidad de antiguos alumnos y la revisión experta.
|
||||
|
||||
Reference in new issue
Block a user