Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Re2o
re2o
Commits
b418719e
Commit
b418719e
authored
Dec 30, 2020
by
chirac
Committed by
Gabriel Detraz
Jan 24, 2021
Browse files
Autocomplete on history search
parent
1f83a8ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
logs/forms.py
View file @
b418719e
...
...
@@ -25,6 +25,7 @@ from django import forms
from
django.forms
import
Form
from
django.utils.translation
import
ugettext_lazy
as
_
from
re2o.base
import
get_input_formats_help_text
from
re2o.mixins
import
AutocompleteModelMixin
import
inspect
...
...
@@ -118,6 +119,7 @@ class ActionsSearchForm(Form):
label
=
_
(
"Performed by"
),
queryset
=
users
.
models
.
User
.
objects
.
all
(),
required
=
False
,
widget
=
AutocompleteModelMixin
(
url
=
"/users/user-autocomplete"
),
)
action_type
=
forms
.
MultipleChoiceField
(
label
=
_
(
"Action type"
),
...
...
logs/templates/logs/search_stats_logs.html
View file @
b418719e
...
...
@@ -22,7 +22,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %}
{% load bootstrap3 %}
{% load massive_bootstrap_form %}
{% load i18n %}
{% block title %}{% trans "Search events" %}{% endblock %}
...
...
@@ -32,10 +31,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<form
class=
"form"
>
<h3>
{% trans "Search events" %}
</h3>
{%
massive_
bootstrap_form actions_form
'u'
%}
{% bootstrap_form actions_form %}
{% trans "Search" as tr_search %}
{% bootstrap_button tr_search button_type="submit" icon="search" %}
</form>
{{ actions_form.media }}
<br
/>
<br
/>
<br
/>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment