Refactor presentation display by moving it to the metadata column for a tighter layout
This commit is contained in:
@@ -443,17 +443,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3 case-presentation">
|
||||
<p>
|
||||
<span class="section-icon presentation" aria-hidden="true"></span>
|
||||
<b>Presentation:</b>
|
||||
<ul>
|
||||
{% for presentation in case.presentation.all %}
|
||||
<li>{{presentation.get_link}}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
{# Presentation moved to metadata column for tighter layout #}
|
||||
|
||||
<div class="row g-3 mb-3">
|
||||
<div class="col-12">
|
||||
@@ -519,6 +509,26 @@
|
||||
<aside class="col-12 col-md-4 case-metadata">
|
||||
{# ID/date shown above; removed duplicate here #}
|
||||
|
||||
<div class="case-meta-item">
|
||||
<span class="case-meta-label">Presentation</span>
|
||||
<div class="case-meta-value d-flex align-items-center justify-content-end">
|
||||
<div id="case-inline-presentation">
|
||||
{% if case.presentation.all %}
|
||||
{% for presentation in case.presentation.all %}
|
||||
<span class="badge bg-secondary ms-1">{{ presentation.get_link|safe }}</span>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<span class="text-muted">None</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if can_edit %}
|
||||
<button class="btn btn-sm btn-link text-muted p-0 quick-edit-button ms-2"
|
||||
hx-get="{% url 'atlas:case_inline_field' case.pk 'presentation' %}?edit=1&show_label=0"
|
||||
hx-target="#case-inline-presentation"
|
||||
hx-swap="outerHTML">quick edit</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="case-meta-item">
|
||||
<span class="case-meta-label">Subspecialty</span>
|
||||
<div class="case-meta-value d-flex align-items-center justify-content-end">
|
||||
|
||||
Reference in New Issue
Block a user