Add testing pages and update component attributes for enhanced interactivity

Integrates Django Cotton components with new test pages, updating button and input component templates to correctly handle `x_data` and `x_on` attributes for improved interactivity.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: eff39de1-3afa-446d-a965-acaf61837fc7
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d6d61dac-164d-45dd-929f-7dcdfd771b64/eff39de1-3afa-446d-a965-acaf61837fc7/J3NgjVS
This commit is contained in:
pac7
2025-09-21 13:51:06 +00:00
committed by pacnpal
parent 1294b3009e
commit cb944485b8
6 changed files with 567 additions and 7 deletions

View File

@@ -71,6 +71,21 @@ urlpatterns = [
TemplateView.as_view(template_name="pages/privacy.html"),
name="privacy",
),
path(
"cotton-test/",
TemplateView.as_view(template_name="pages/cotton_test.html"),
name="cotton_test",
),
path(
"cotton-simple/",
TemplateView.as_view(template_name="pages/cotton_simple_test.html"),
name="cotton_simple_test",
),
path(
"cotton-minimal/",
TemplateView.as_view(template_name="pages/cotton_minimal_test.html"),
name="cotton_minimal_test",
),
# Custom authentication URLs first (to override allauth defaults)
path("accounts/", include("apps.accounts.urls")),
# Default allauth URLs (for social auth and other features)