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: python manage.py runserver 0.0.0.0:8000
|
||||||
#command: pip install -r requirements.txt
|
#command: pip install -r requirements.txt
|
||||||
volumes:
|
volumes:
|
||||||
- ../rad/:/usr/src/rad/
|
- ../:/usr/src/app # mount the whole repo into the container
|
||||||
- ../rts/:/usr/src/rad/rts
|
|
||||||
- ../Viewers/platform/app/dist/:/usr/src/rad/viewer
|
|
||||||
- ./backups:/usr/src/backups
|
- ./backups:/usr/src/backups
|
||||||
- ./media:/usr/src/media
|
- ./media:/usr/src/media
|
||||||
- ./static:/usr/src/static
|
- ./static:/usr/src/static
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
{% with current_status=form.status.value %}
|
{% with current_status=form.status.value %}
|
||||||
{% for radio in form.status %}
|
{% for radio in form.status %}
|
||||||
{% comment %} Render colored button for each choice by checking value {% endcomment %}
|
{% 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>
|
<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 %}
|
{% endfor %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|||||||
Reference in New Issue
Block a user