Skip to content

Commit

Permalink
cove_rdls/templates/cove_rdls/validation_table.html: Reformat Require…
Browse files Browse the repository at this point in the history
…d Fields block
  • Loading branch information
Ed (ODSC) committed Sep 4, 2023
1 parent 1fcbc92 commit b19ed73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cove_rdls/templates/cove_rdls/explore.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h4 class="panel-title">
</h4>
</div>
<div id="validationTable" class="collapse in panel-body">
{% blocktrans %}Some or all of your data is missing fields which are required by the RDLS schema.{% endblocktrans %}
{% blocktrans %}Some or all of your data is missing fields which are required by the RDLS schema. Your data must contain the required fields specified in the schema. Check that the field is present and not misspelt.{% endblocktrans %}
{% include "cove_rdls/validation_table.html" with validation_errors_block=validation_errors_group %}
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion cove_rdls/templates/cove_rdls/validation_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
<tr>
<th>{% trans 'Error Description' %}</th>
<th>{% trans 'Error Count' %}</th>
<th>{% trans 'First 3 Values' %}</th>
{% if error_prefix != 'required-' %}
<th>{% trans 'First 3 Values' %}</th>
{% endif %}
<th>{% trans 'First 3 Locations' %}</th>
{% if original_format == 'spreadsheet' %}
<th>{% trans 'First 3 Spreadsheet Locations' %}</th>
Expand Down Expand Up @@ -100,6 +102,7 @@
{{errors|length}}
{% endif %}
</td>
{% if error_prefix != 'required-' %}
<td>
<ul class="list-unstyled">
{% for error in errors|slice:":3" %}
Expand All @@ -113,6 +116,7 @@
{% endfor %}
</ul>
</td>
{% endif %}
<td>
<ul class="list-unstyled">
{% for error in errors|slice:":3" %}
Expand Down

0 comments on commit b19ed73

Please sign in to comment.