-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from co-cddo/feature/file-upload-s3-changes
Remove S3 urls from application UI
- Loading branch information
Showing
14 changed files
with
252 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,7 @@ services: | |
condition: service_healthy | ||
networks: | ||
- clam-net | ||
- s3-net | ||
|
||
|
||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...domain/request/migrations/0009_alter_application_ministerial_request_evidence_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Generated by Django 4.2.13 on 2024-06-12 11:49 | ||
|
||
from django.db import migrations, models | ||
import request_a_govuk_domain.request.models.storage_util | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("request", "0008_alter_registrant_type"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="application", | ||
name="ministerial_request_evidence", | ||
field=models.FileField( | ||
blank=True, | ||
max_length=255, | ||
null=True, | ||
storage=request_a_govuk_domain.request.models.storage_util.select_storage, | ||
upload_to="", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="application", | ||
name="policy_exemption_evidence", | ||
field=models.FileField( | ||
blank=True, | ||
max_length=255, | ||
null=True, | ||
storage=request_a_govuk_domain.request.models.storage_util.select_storage, | ||
upload_to="", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="application", | ||
name="written_permission_evidence", | ||
field=models.FileField( | ||
blank=True, | ||
max_length=255, | ||
null=True, | ||
storage=request_a_govuk_domain.request.models.storage_util.select_storage, | ||
upload_to="", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 9 additions & 5 deletions
14
request_a_govuk_domain/request/templates/admin/clearable_file_input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
{% if widget.is_initial %}<p class="file-upload">{{ widget.initial_text }}: <a target="_blank" href="{{ widget.value.url }}">{{ widget.value }} (opens in new tab)</a>{% if not widget.required %} | ||
<span class="clearable-file-input"> | ||
<input type="checkbox" name="{{ widget.checkbox_name }}" id="{{ widget.checkbox_id }}"{% if widget.attrs.disabled %} disabled{% endif %}> | ||
{% if widget.is_initial %}<p class="file-upload">{{ widget.initial_text }}: | ||
<a target="_blank" href="/admin/request/application/download_application/{{ widget.value.instance.id }}/{{ widget.name }}/">{{ widget.name }} | ||
(opens in new tab)</a>{% if not widget.required %} | ||
<span class="clearable-file-input"> | ||
<input type="checkbox" name="{{ widget.checkbox_name }}" id="{{ widget.checkbox_id }}"{% if widget.attrs.disabled %} | ||
disabled{% endif %}> | ||
<label for="{{ widget.checkbox_id }}">{{ widget.clear_checkbox_label }}</label></span>{% endif %}<br> | ||
{{ widget.input_text }}:{% endif %} | ||
<input type="{{ widget.type }}" name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %}>{% if widget.is_initial %}</p>{% endif %} | ||
{{ widget.input_text }}:{% endif %} | ||
<input type="{{ widget.type }}" name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %}> | ||
{% if widget.is_initial %}</p>{% endif %} |
Oops, something went wrong.