mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-22 17:31:10 -05:00
Add new component system for buttons, cards, and inputs
Integrates Django Cotton to replace existing UI components with a new templating system. Adds a test page to compare the new components against the old ones. Replit-Commit-Author: Agent Replit-Commit-Session-Id: dcfff319-6e91-4220-98a9-8295b87755b7 Replit-Commit-Checkpoint-Type: intermediate_checkpoint
This commit is contained in:
@@ -101,6 +101,8 @@ urlpatterns = [
|
||||
views.environment_and_settings_view,
|
||||
name="environment_and_settings",
|
||||
),
|
||||
# Button component testing
|
||||
path("test-button/", views.test_button_comparison, name="test_button_comparison"),
|
||||
]
|
||||
|
||||
# Add autocomplete URLs if available
|
||||
|
||||
@@ -156,3 +156,11 @@ def environment_and_settings_view(request):
|
||||
"environment_and_settings.html",
|
||||
{"env_vars": env_vars, "settings_vars": settings_vars},
|
||||
)
|
||||
|
||||
|
||||
def test_button_comparison(request):
|
||||
"""
|
||||
Test view to compare cotton button component with original include version.
|
||||
Renders a comprehensive test page with all button variants and combinations.
|
||||
"""
|
||||
return render(request, "test_button_comparison.html")
|
||||
|
||||
Reference in New Issue
Block a user