Enhance display set and finding pickers with case detection and filtering
This commit is contained in:
@@ -4,7 +4,12 @@
|
||||
<div class="list-group-item d-flex justify-content-between align-items-center" data-ds-pk="{{ ds.pk }}">
|
||||
<div class="flex-fill">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<strong class="mb-1">{{ ds.name }}</strong>
|
||||
<div>
|
||||
<strong class="mb-1">{{ ds.name }}</strong>
|
||||
{% if ds.case %}
|
||||
<div class="small text-muted">Case: <a href="{% url 'atlas:case_detail' ds.case.pk %}">{{ ds.case.title }}</a> (#{% if ds.case.pk %}{{ ds.case.pk }}{% endif %})</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<small class="text-muted">{{ ds.pk }}</small>
|
||||
</div>
|
||||
<p class="mb-1 text-truncate">{{ ds.description }}</p>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<div class="displayset-search-widget">
|
||||
{% if case %}
|
||||
<div id="current-case-meta" data-current-case="{{ case.pk }}" data-current-case-title="{{ case.title|escape }}" style="display:none;"></div>
|
||||
{% endif %}
|
||||
{% with input_id=input_id|default:'displayset-search-input' target_id=target_id|default:'displayset-search-results' %}
|
||||
<label for="{{ input_id }}" class="form-label">Search display sets</label>
|
||||
<input id="{{ input_id }}" name="q" class="form-control" type="search"
|
||||
|
||||
Reference in New Issue
Block a user