diff --git a/AGENTS.md b/AGENTS.md index eef35c9c..591c8fb1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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 diff --git a/atlas/templates/atlas/partials/_sharing_user_search_results.html b/atlas/templates/atlas/partials/_sharing_user_search_results.html index 3c62f28d..86de390e 100644 --- a/atlas/templates/atlas/partials/_sharing_user_search_results.html +++ b/atlas/templates/atlas/partials/_sharing_user_search_results.html @@ -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 %} {% elif q|length >= 2 %}
No matching users found.
+{% else %} +
Please enter at least 2 characters to search.
{% endif %}