Skip to content
Snippets Groups Projects
Commit df13768a authored by Todd Dembrey's avatar Todd Dembrey Committed by Fredrik Jonsson
Browse files

Improve how no data for files is displayed

parent 42b253b9
No related branches found
No related tags found
No related merge requests found
......@@ -304,6 +304,9 @@ class MultiFileFieldBlock(UploadableMediaBlock):
label = _('Multiple File field')
template = 'stream_forms/render_multi_file_field.html'
def no_response(self):
return [super().no_response()]
class FormFieldsBlock(StreamBlock):
text_markup = RichTextBlock(group=_('Other'), label=_('Paragraph'))
......
{% extends "stream_forms/render_field.html" %}
{% block data_display %}
{% if data %}
{% if data.name %}
<div class="wrapper">
{% include "stream_forms/includes/file_field.html" with file=data %}
</div>
......
......@@ -2,7 +2,7 @@
{% block data_display %}
<div class="wrapper">
{% for file in data %}
{% include "stream_forms/includes/file_field.html" with file=file %}
{% include "stream_forms/includes/file_field.html" with file=file %}
{% endfor %}
</div>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment