feat: Only show IPR search form when not showing search results (#4793)
* feat: Only show IPR search form when not showing search results Put it into a collapsible that is only expanded by default when not showing search results. Fixes #4569 * Don't use example target name
This commit is contained in:
parent
6eabd4a3a1
commit
baaa8f15c2
|
@ -3,12 +3,23 @@
|
|||
{% load origin %}
|
||||
{% origin %}
|
||||
<h1>IPR Search</h1>
|
||||
|
||||
<div class="accordion" id="ipr-search-form">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header" id="ipr-search-form-heading">
|
||||
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#ipr-search-collapse" aria-expanded="{{ request.GET|yesno:'false,true'}}" aria-controls="ipr-search-collapse">
|
||||
IPR search criteria...
|
||||
</button>
|
||||
</h2>
|
||||
<div id="ipr-search-collapse" class="accordion-collapse collapse{% if not request.GET %} show{% endif %}" aria-labelledby="ipr-search-form-heading" data-bs-parent="#ipr-search-form">
|
||||
<div class="accordion-body">
|
||||
|
||||
<form class="ipr-search">
|
||||
{% if user|has_role:"Secretariat" %}
|
||||
<h2 class="mt-4">State Filter</h2>
|
||||
<h2>State Filter</h2>
|
||||
{% bootstrap_field form.state %}
|
||||
{% endif %}
|
||||
<h2 class="mt-4">Document search</h2>
|
||||
<h2>Document search</h2>
|
||||
<div class="mb-3">
|
||||
{% bootstrap_label form.draft.label label_for=form.draft.id_for_label label_class="form-label" %}
|
||||
<div class="input-group">
|
||||
|
@ -47,7 +58,7 @@
|
|||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="mt-4">IPR search</h2>
|
||||
<h2>IPR search</h2>
|
||||
<div class="mb-3">
|
||||
{% bootstrap_label form.holder.label|cut:":" label_for=form.holder.id_for_label label_class="form-label" %}
|
||||
<div class="input-group">
|
||||
|
@ -82,7 +93,13 @@
|
|||
</div>
|
||||
<input type="hidden" name="submit">
|
||||
</form>
|
||||
<p class="alert alert-info my-3">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="alert alert-warning my-3">
|
||||
The material posted as IPR disclosures should be viewed as originating
|
||||
from the source of that information, and any issue or question related
|
||||
to the material should be directed to the source rather than the
|
||||
|
|
Loading…
Reference in a new issue