Fix source display formatting and improve missing_map handling in import preview and confirmation
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
</ul>
|
||||
</p>
|
||||
<p><strong>Feedback:</strong> {{ item.payload.feedback|default:''|safe }}</p>
|
||||
<p>><strong>Sources:</strong>
|
||||
<p><strong>Sources:</strong>
|
||||
{% if item.payload.sources %}
|
||||
<ul>
|
||||
{% for source in item.payload.sources %}
|
||||
@@ -56,14 +56,14 @@
|
||||
<button type="button" class="m2m-toggle btn btn-sm btn-success ms-1" data-idx="{{ item.index }}" data-model="Finding" data-value="{{ val }}">{{ val }}</button>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if item.missing_map.Finding %}
|
||||
{% for val in item.missing_map.Finding %}
|
||||
{% if item.missing_map.finding %}
|
||||
{% for val in item.missing_map.finding %}
|
||||
<button type="button" class="m2m-toggle btn btn-sm btn-success ms-1" data-idx="{{ item.index }}" data-model="Finding" data-value="{{ val }}">{{ val }}</button>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<span class="text-muted m2m-none" style="display:none">(none)</span>
|
||||
{% if item.missing_map.Finding %}
|
||||
<div class="small text-info">Would create: {{ item.missing_map.Finding|join:", " }}</div>
|
||||
{% if item.missing_map.finding %}
|
||||
<div class="small text-info">Would create: {{ item.missing_map.finding|join:", " }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -75,14 +75,14 @@
|
||||
<button type="button" class="m2m-toggle btn btn-sm btn-success ms-1" data-idx="{{ item.index }}" data-model="Structure" data-value="{{ val }}">{{ val }}</button>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if item.missing_map.Structure %}
|
||||
{% for val in item.missing_map.Structure %}
|
||||
{% if item.missing_map.structure %}
|
||||
{% for val in item.missing_map.structure %}
|
||||
<button type="button" class="m2m-toggle btn btn-sm btn-success ms-1" data-idx="{{ item.index }}" data-model="Structure" data-value="{{ val }}">{{ val }}</button>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<span class="text-muted m2m-none" style="display:none">(none)</span>
|
||||
{% if item.missing_map.Structure %}
|
||||
<div class="small text-info">Would create: {{ item.missing_map.Structure|join:", " }}</div>
|
||||
{% if item.missing_map.structure %}
|
||||
<div class="small text-info">Would create: {{ item.missing_map.structure|join:", " }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -93,14 +93,14 @@
|
||||
<button type="button" class="m2m-toggle btn btn-sm btn-success ms-1" data-idx="{{ item.index }}" data-model="Condition" data-value="{{ val }}">{{ val }}</button>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if item.missing_map.Condition %}
|
||||
{% for val in item.missing_map.Condition %}
|
||||
{% if item.missing_map.condition %}
|
||||
{% for val in item.missing_map.condition %}
|
||||
<button type="button" class="m2m-toggle btn btn-sm btn-success ms-1" data-idx="{{ item.index }}" data-model="Condition" data-value="{{ val }}">{{ val }}</button>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<span class="text-muted m2m-none" style="display:none">(none)</span>
|
||||
{% if item.missing_map.Condition %}
|
||||
<div class="small text-info">Would create: {{ item.missing_map.Condition|join:", " }}</div>
|
||||
{% if item.missing_map.condition %}
|
||||
<div class="small text-info">Would create: {{ item.missing_map.condition|join:", " }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -111,14 +111,14 @@
|
||||
<button type="button" class="m2m-toggle btn btn-sm btn-success ms-1" data-idx="{{ item.index }}" data-model="Presentation" data-value="{{ val }}">{{ val }}</button>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if item.missing_map.Presentation %}
|
||||
{% for val in item.missing_map.Presentation %}
|
||||
{% if item.missing_map.presentation %}
|
||||
{% for val in item.missing_map.presentation %}
|
||||
<button type="button" class="m2m-toggle btn btn-sm btn-success ms-1" data-idx="{{ item.index }}" data-model="Presentation" data-value="{{ val }}">{{ val }}</button>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<span class="text-muted m2m-none" style="display:none">(none)</span>
|
||||
{% if item.missing_map.Presentation %}
|
||||
<div class="small text-info">Would create: {{ item.missing_map.Presentation|join:", " }}</div>
|
||||
{% if item.missing_map.presentation %}
|
||||
<div class="small text-info">Would create: {{ item.missing_map.presentation|join:", " }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -129,14 +129,14 @@
|
||||
<button type="button" class="m2m-toggle btn btn-sm btn-success ms-1" data-idx="{{ item.index }}" data-model="Subspecialty" data-value="{{ val }}">{{ val }}</button>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if item.missing_map.Subspecialty %}
|
||||
{% for val in item.missing_map.Subspecialty %}
|
||||
{% if item.missing_map.subspecialty %}
|
||||
{% for val in item.missing_map.subspecialty %}
|
||||
<button type="button" class="m2m-toggle btn btn-sm btn-success ms-1" data-idx="{{ item.index }}" data-model="Subspecialty" data-value="{{ val }}">{{ val }}</button>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<span class="text-muted m2m-none" style="display:none">(none)</span>
|
||||
{% if item.missing_map.Subspecialty %}
|
||||
<div class="small text-info">Would create: {{ item.missing_map.Subspecialty|join:", " }}</div>
|
||||
{% if item.missing_map.subspecialty %}
|
||||
<div class="small text-info">Would create: {{ item.missing_map.subspecialty|join:", " }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user