fix comment

This commit is contained in:
Ross
2026-06-08 09:58:00 +01:00
parent 0f11f0800e
commit a9c417d993
2 changed files with 11 additions and 3 deletions
+7 -1
View File
@@ -48,7 +48,13 @@ Django-based radiology education platform. Multi-app, HTMX-driven, PostgreSQL +
- **Template tags**: always load `{% load static %}`, `{% load django_htmx %}`, `{% load crispy_forms_tags %}` as needed at the top of the file.
- **Bootstrap 5** (dark theme). Use existing utility classes; do not add inline styles.
- To include a partial: `{% include 'app/partials/_fragment.html' %}`. Pass context explicitly when using `with` keyword.
- **Multi line comment** NEVER use {# ... #} style comments for multiline comments as it will render into the html.
- **Multi line comment** NEVER use {# ... #} style comments for multiline comments as it will render into the html, it is designed for single line comments only. Use
{% comment "Optional note: You can add a label here if you want" %}
This is a multiline comment.
None of this text or any {% tags %} inside here
will be rendered or visible in the browser's "View Source".
{% endcomment %}
Instead
## Forms
@@ -1,9 +1,9 @@
{# HTMX partial: user search results for the sharing panel.
{% comment HTMX partial: user search results for the sharing panel.
Context:
users list of User objects matching the query
cid_user_exam CidUserExam instance
q search query string
#}
%}
{% if users %}
<ul class="list-group list-group-flush small border rounded">
{% for u in users %}
@@ -24,4 +24,6 @@
</ul>
{% elif q|length >= 2 %}
<div class="small text-muted fst-italic">No matching users found.</div>
{% else %}
<div class="small text-muted fst-italic">Please enter at least 2 characters to search.</div>
{% endif %}