Add alert for stripped numeric references in import preview and refactor payload cleaning function
This commit is contained in:
@@ -20,6 +20,11 @@
|
||||
<strong>Note:</strong> The following unsupported fields were dropped: <em>{{ item.dropped_fields|join:", " }}</em>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if item.stripped_fields %}
|
||||
<div class="alert alert-info" role="alert">
|
||||
<strong>Note:</strong> Numeric references were removed from fields: <em>{{ item.stripped_fields|join:", " }}</em>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if item.payload %}
|
||||
<p><strong>Title:</strong> {{ item.payload.title|default:'(No title)'|safe }}</p>
|
||||
<p><strong>Stem:</strong> {{ item.payload.stem|default:''|safe }}</p>
|
||||
|
||||
Reference in New Issue
Block a user