Skip to content

main.py: add embeddable ToS checkbox feature#1267

Merged
miczyg1 merged 4 commits into
masterfrom
tos-agreement-box
May 15, 2026
Merged

main.py: add embeddable ToS checkbox feature#1267
miczyg1 merged 4 commits into
masterfrom
tos-agreement-box

Conversation

@artur-rs
Copy link
Copy Markdown
Member

  • main.py - Added tos_checkbox(section_id, tos_url=...) macro. It generates a styled checkbox with a consent label. Checking it reveals the protected section via an inline onchange handler. The tos_url defaults to the Dasharo ToS page.
  • docs/stylesheets/extra.css - Added .tos-gate (bordered container using Material's CSS custom properties), .tos-gate__label (flex layout, site font size), and .tos-gate__checkbox (accent-color from site theme).

- main.py - Added tos_checkbox(section_id, tos_url=...) macro. It generates a
  styled checkbox with a consent label. Checking it reveals the protected
  section via an inline onchange handler. The tos_url defaults to the Dasharo
  ToS page.
- docs/stylesheets/extra.css - Added .tos-gate (bordered container using
  Material's CSS custom properties), .tos-gate__label (flex layout, site font
  size), and .tos-gate__checkbox (accent-color from site theme).

Signed-off-by: Artur Raglis <artur.raglis@3mdeb.com>
@artur-rs artur-rs self-assigned this May 15, 2026
Signed-off-by: Artur Raglis <artur.raglis@3mdeb.com>
@artur-rs artur-rs requested review from miczyg1 and pietrushnic May 15, 2026 11:16
@pietrushnic
Copy link
Copy Markdown
Contributor

red/green TDD needed, also should included in CI/CD so this feature would not be broken

Signed-off-by: Artur Raglis <artur.raglis@3mdeb.com>
Comment thread docs/variants/gigabyte_mz33-ar1/releases.md Outdated
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
@miczyg1 miczyg1 merged commit 73d1652 into master May 15, 2026
3 of 4 checks passed
@miczyg1 miczyg1 deleted the tos-agreement-box branch May 15, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants