|
454 | 454 | </div> |
455 | 455 | </div> |
456 | 456 |
|
| 457 | + <%# ---- CE HOURS (ticket call-out + details page) ---- %> |
| 458 | + <div class="ce-hours-section" data-controller="dropdown"> |
| 459 | + <button |
| 460 | + type="button" |
| 461 | + id="ce_hours_button" |
| 462 | + class=" |
| 463 | + flex items-center justify-between cursor-pointer w-full |
| 464 | + bg-gray-500 text-white hover:bg-gray-300 px-3 py-2 rounded-md" |
| 465 | + data-action="dropdown#toggle" |
| 466 | + data-dropdown-payload-param='[{"ce_hours_details":"hidden"}, {"ce_hours_arrow":"rotate-180"}, {"ce_hours_button":"rounded-md rounded-t-md"}]'> |
| 467 | + CE hours |
| 468 | + <i id="ce_hours_arrow" class="fa-solid fa-chevron-down w-4 h-4 transition-transform duration-300"></i> |
| 469 | + </button> |
| 470 | + |
| 471 | + <div id="ce_hours_details" class="hidden border border-gray-300 p-4 rounded-b-md"> |
| 472 | + <p class="text-sm text-gray-500 mb-4">Continuing education info shown on the registration ticket as a prominent call-out linking to its own details page — CAMFT approval, license-number and payment requirements, sign-in rules, and the post-training evaluation (the kind of thing that used to live in a long CE confirmation email).</p> |
| 473 | + |
| 474 | + <div class="form-group"> |
| 475 | + <%= f.label :ce_hours_details_label, "CE hours section label", class: "block font-medium mb-1 text-gray-700" %> |
| 476 | + <%= f.text_field :ce_hours_details_label, |
| 477 | + placeholder: "CE hours", |
| 478 | + class: "w-full rounded border-gray-300 shadow-sm px-3 py-1.5 text-sm focus:ring-blue-500 focus:border-blue-500" %> |
| 479 | + <p class="text-gray-500 text-sm mt-1">Heading for the CE hours call-out on the ticket and the details page (e.g. "CE hours", "Continuing education").</p> |
| 480 | + </div> |
| 481 | + |
| 482 | + <div class="form-group mt-6"> |
| 483 | + <%= f.label :ce_hours_details, "CE hours content", class: "block font-medium mb-1 text-gray-700" %> |
| 484 | + <p class="text-xs text-gray-500 mb-1"> |
| 485 | + CE requirements, payment, sign-in rules, and the post-training evaluation — shown on its own page linked prominently from the ticket. Leave blank to hide it entirely. Accepts basic HTML — bold, italics, links, lists, headings, and line breaks. |
| 486 | + </p> |
| 487 | + <%= f.text_area :ce_hours_details, rows: 8, |
| 488 | + placeholder: "e.g. <p>AWBW is approved by CAMFT…</p><h3>Before the training</h3><ul><li>Email your license number</li></ul>", |
| 489 | + class: "w-full rounded border-gray-300 shadow-sm px-3 py-2 text-sm font-mono" %> |
| 490 | + </div> |
| 491 | + </div> |
| 492 | + </div> |
| 493 | + |
457 | 494 | <div class="images-section" data-controller="dropdown"> |
458 | 495 | <button |
459 | 496 | type="button" |
|
0 commit comments