Refactor docker-compose.yml to mount the entire repository and update question_review_form.html to render radio buttons for status choices.

This commit is contained in:
Ross
2025-10-26 20:46:16 +00:00
parent c2d6cfa78e
commit b26d31b216
2 changed files with 2 additions and 3 deletions
+1 -3
View File
@@ -13,9 +13,7 @@ services:
command: python manage.py runserver 0.0.0.0:8000
#command: pip install -r requirements.txt
volumes:
- ../rad/:/usr/src/rad/
- ../rts/:/usr/src/rad/rts
- ../Viewers/platform/app/dist/:/usr/src/rad/viewer
- ../:/usr/src/app # mount the whole repo into the container
- ./backups:/usr/src/backups
- ./media:/usr/src/media
- ./static:/usr/src/static
@@ -12,6 +12,7 @@
{% with current_status=form.status.value %}
{% for radio in form.status %}
{% comment %} Render colored button for each choice by checking value {% endcomment %}
{{ radio.tag }}
<label class="btn btn-outline-primary me-1 mb-1{% if radio.choice_value == current_status %} active{% endif %}" for="{{ radio.id_for_label }}">{{ radio.choice_label }}</label>
{% endfor %}
{% endwith %}