mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-23 14:11:08 -05:00
Update website to use new reusable components for common elements
Refactor HTML templates to incorporate Django Cotton components for buttons, forms, and other UI elements. 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/55dLPZG
This commit is contained in:
17
backend/templates/cotton/auth/turnstile_empty.html
Normal file
17
backend/templates/cotton/auth/turnstile_empty.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% comment %}
|
||||
Cotton Turnstile Empty Widget Component
|
||||
Empty template when DEBUG is True - converts to Cotton format
|
||||
{% endcomment %}
|
||||
|
||||
<!-- Cotton Turnstile Empty Component -->
|
||||
<c-vars
|
||||
debug_message="debug_message|default:'Turnstile widget disabled in DEBUG mode'"
|
||||
show_debug_message="show_debug_message|default:''"
|
||||
/>
|
||||
|
||||
<!-- Empty template when DEBUG is True -->
|
||||
{% if show_debug_message and show_debug_message != '' %}
|
||||
<div class="text-xs text-gray-500 text-center py-2">
|
||||
{{ debug_message }}
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user