fix comment
This commit is contained in:
@@ -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.
|
- **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.
|
- **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.
|
- 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
|
## 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:
|
Context:
|
||||||
users – list of User objects matching the query
|
users – list of User objects matching the query
|
||||||
cid_user_exam – CidUserExam instance
|
cid_user_exam – CidUserExam instance
|
||||||
q – search query string
|
q – search query string
|
||||||
#}
|
%}
|
||||||
{% if users %}
|
{% if users %}
|
||||||
<ul class="list-group list-group-flush small border rounded">
|
<ul class="list-group list-group-flush small border rounded">
|
||||||
{% for u in users %}
|
{% for u in users %}
|
||||||
@@ -24,4 +24,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
{% elif q|length >= 2 %}
|
{% elif q|length >= 2 %}
|
||||||
<div class="small text-muted fst-italic">No matching users found.</div>
|
<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 %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user