Skip to content

Commit fa42fcd

Browse files
committed
Move the project list filters next to the search #413
Signed-off-by: Thomas Druez <[email protected]>
1 parent b327288 commit fa42fcd

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
<div class="field">
2-
<form method="get">
3-
<p class="control has-icons-left">
4-
<input class="input {{ extra_class }}" type="text" placeholder="Search {{ filter.verbose_name_plural }}" name="{{ filter.form.search.name }}" value="{{ filter.form.search.value|default_if_none:'' }}">
5-
<span class="icon is-small is-left">
6-
<i class="fas fa-search"></i>
7-
</span>
8-
</p>
9-
</form>
10-
</div>
1+
<form method="get">
2+
<p class="control has-icons-left">
3+
<input class="input {{ extra_class }}" type="text" placeholder="Search {{ filter.verbose_name_plural }}" name="{{ filter.form.search.name }}" value="{{ filter.form.search.value|default_if_none:'' }}">
4+
<span class="icon is-small is-left">
5+
<i class="fas fa-search"></i>
6+
</span>
7+
</p>
8+
</form>

scanpipe/templates/scanpipe/project_list.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,19 @@
2222
{% include 'scanpipe/includes/breadcrumb.html' %}
2323
{{ filter.form.is_archived }}
2424
</div>
25+
<a href="{% url 'project_add' %}" class="button is-link">New Project</a>
26+
</div>
27+
28+
<div class="is-flex mb-3">
29+
<div class="is-flex-grow-1 mr-2">
30+
{% include 'scanpipe/includes/search_field.html' %}
31+
</div>
2532
<div>
2633
{% include 'scanpipe/includes/filter_dropdown.html' with filter_form_field=filter.form.pipeline only %}
2734
{% include 'scanpipe/includes/filter_dropdown.html' with filter_form_field=filter.form.sort only %}
28-
<a href="{% url 'project_add' %}" class="button is-link">New Project</a>
2935
</div>
3036
</div>
3137

32-
{% include 'scanpipe/includes/search_field.html' %}
33-
3438
{% if object_list %}
3539
{% include 'scanpipe/includes/project_list_table.html' with projects=object_list only %}
3640
{% else %}

0 commit comments

Comments
 (0)