SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
5f683171
Commit
5f683171
authored
6 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Improve Profile list search by preserving GET parameters
parent
5ad27afe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
profiles/templates/profiles/profile_list.html
+12
-3
12 additions, 3 deletions
profiles/templates/profiles/profile_list.html
with
12 additions
and
3 deletions
profiles/templates/profiles/profile_list.html
+
12
−
3
View file @
5f683171
...
...
@@ -53,9 +53,9 @@
<div
class=
"dropdown"
>
<button
class=
"btn btn-primary dropdown-toggle"
type=
"button"
id=
"dropdownMenuButton{{ discipline.0|cut:"
"
}}"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
{{ discipline.0 }}
</button>
<div
class=
"dropdown-menu"
aria-labelledby=
"dropdownMenuButton{{ discipline.0|cut:"
"
}}"
>
<a
class=
"dropdown-item"
href=
"
?
discipline=
{{
discipline.0|cut:' '
}
}"
>
View all in {{ discipline.0 }}
</a>
<a
class=
"dropdown-item"
href=
"
{% add_get_parameters
discipline=discipline.0|cut:' '
%
}"
>
View all in {{ discipline.0 }}
</a>
{% for area in discipline.1 %}
<a
class=
"dropdown-item"
href=
"
?
discipline=
{{
discipline.0|cut:' '
}}&
expertise=
{{
area.0
}
}"
>
{{ area.0 }}
</a>
<a
class=
"dropdown-item"
href=
"
{% add_get_parameters
discipline=discipline.0|cut:' '
expertise=area.0
%
}"
>
{{ area.0 }}
</a>
{% endfor %}
</div>
</div>
...
...
@@ -69,6 +69,15 @@
<li
class=
"list-inline-item"
>
Last name startswith:
</li>
<li
class=
"list-inline-item"
>
<form
action=
""
method=
"get"
>
{{ searchform }}
{% if request.GET.discipline %}
<input
type=
"hidden"
name=
"discipline"
value=
"{{ request.GET.discipline }}"
>
{% if request.GET.expertise %}
<input
type=
"hidden"
name=
"expertise"
value=
"{{ request.GET.expertise }}"
>
{% endif %}
{% endif %}
{% if request.GET.contributor %}
<input
type=
"hidden"
name=
"contributor"
value=
"{{ request.GET.contributor }}"
>
{% endif %}
</li>
<li
class=
"list-inline-item"
><input
class=
"btn btn-outline-secondary"
type=
"submit"
value=
"Search"
></form>
</li>
...
...
@@ -80,7 +89,7 @@
<div
class=
"row"
>
<div
class=
"col-12"
>
<h3>
Profiles {% if request.GET.discipline %}in {{ request.GET.discipline }}{% if request.GET.expertise %}, {{ request.GET.expertise }}{% endif %}{% endif %} ({% if request.GET.contributor == "True" %}registered Contributors{% elif request.GET.contributor == "False" %}unregistered as Contributors{% else %}all registered/unregistered{% endif %}): {{ page_obj.paginator.count }} found
</h3>
<h3>
Profiles {% if
request.GET.text %}with last name starting with {{ request.GET.text }}{% endif %} {% if
request.GET.discipline %}in {{ request.GET.discipline }}{% if request.GET.expertise %}, {{ request.GET.expertise }}{% endif %}{% endif %} ({% if request.GET.contributor == "True" %}registered Contributors{% elif request.GET.contributor == "False" %}unregistered as Contributors{% else %}all registered/unregistered{% endif %}): {{ page_obj.paginator.count }} found
</h3>
<br/>
<table
class=
"table table-hover mb-5"
>
<thead
class=
"thead-default"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment