Refactor case management links: enhance layout and improve button accessibility in collection detail view
This commit is contained in:
@@ -4,30 +4,42 @@
|
|||||||
|
|
||||||
{% partialdef casedetails-management-links %}
|
{% partialdef casedetails-management-links %}
|
||||||
|
|
||||||
(<a href="{% url 'atlas:collection_case_displaysetup' casedetail.collection.pk casedetail.case.pk %}"><i class="bi bi-display" title="Setup default display"></i></a>
|
<div class="btn-toolbar" role="toolbar" aria-label="Case management links">
|
||||||
|
<div class="btn-group btn-group-sm me-2" role="group" aria-label="management-actions">
|
||||||
|
<a class="btn btn-outline-secondary" href="{% url 'atlas:collection_case_displaysetup' casedetail.collection.pk casedetail.case.pk %}" title="Setup default display">
|
||||||
|
<i class="bi bi-display"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
{% if casedetail.default_viewerstate %}
|
<a class="btn btn-outline-secondary" href="{% url 'atlas:collection_case_details' casedetail.collection.pk casedetail.case.pk %}" title="Case details">
|
||||||
<i class="bi bi-check text-success" title="This case has a default viewerstate defined"></i>
|
<i class="bi bi-info-square"></i>
|
||||||
{% endif %}
|
</a>
|
||||||
)
|
|
||||||
|
|
||||||
(<a href="{% url 'atlas:collection_case_details' casedetail.collection.pk casedetail.case.pk %}"><i class="bi bi-info-square" title="Case details"></i></a>)
|
|
||||||
|
|
||||||
{% if collection.collection_type == "QUE" %}
|
{% if collection.collection_type == "QUE" %}
|
||||||
(<a href='{% url "atlas:collection_case_questions" casedetail.collection.pk casedetail.case.pk %}'>
|
<a class="btn btn-outline-secondary" href='{% url "atlas:collection_case_questions" casedetail.collection.pk casedetail.case.pk %}' title="Manage questions">
|
||||||
{% if casedetail.question_schema %}
|
{% if casedetail.question_schema %}
|
||||||
<i class="bi bi-question-square text-success" title="This case has questions defined."></i>
|
<i class="bi bi-question-square text-success"></i>
|
||||||
{% else %}
|
{% else %}
|
||||||
<i class="bi bi-question-square text-danger" title="This case has no questions defined."></i>
|
<i class="bi bi-question-square text-danger"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
)
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if casedetail.case.previous_case %}
|
{% if casedetail.case.previous_case %}
|
||||||
(<a href='{% url "atlas:collection_case_priors" casedetail.collection.pk casedetail.case.pk %}'>
|
<a class="btn btn-outline-secondary" href='{% url "atlas:collection_case_priors" casedetail.collection.pk casedetail.case.pk %}' title="Manage priors">
|
||||||
<i class="bi bi-link-45deg" title="Manage priors"></i></a>)
|
<i class="bi bi-link-45deg"></i>
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="btn-group btn-group-sm" role="group" aria-label="status-indicator">
|
||||||
|
{% if casedetail.default_viewerstate %}
|
||||||
|
<button type="button" class="btn btn-sm btn-outline-success" aria-disabled="true" title="This case has a default viewerstate defined">
|
||||||
|
<i class="bi bi-check"></i>
|
||||||
|
</button>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endpartialdef %}
|
{% endpartialdef %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
@@ -92,7 +104,7 @@
|
|||||||
{% if casedetail.case.series.count == 0 %}
|
{% if casedetail.case.series.count == 0 %}
|
||||||
<i class="bi bi-exclamation-circle text-warning" title="No series attached to this case"></i>
|
<i class="bi bi-exclamation-circle text-warning" title="No series attached to this case"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{casedetail.case.title}}
|
{{casedetail.case.title}}
|
||||||
|
|
||||||
{% partial casedetails-management-links %}
|
{% partial casedetails-management-links %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user