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:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user