Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
5
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a88bb448
authored
Aug 02, 2022
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autocomplete not working
parent
0b6b7c1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
circle/dashboard/forms.py
+3
-4
circle/dashboard/templates/dashboard/_manage_access.html
+2
-1
No files found.
circle/dashboard/forms.py
View file @
a88bb448
...
...
@@ -1423,9 +1423,8 @@ class UserEditForm(forms.ModelForm):
helper
.
add_input
(
Submit
(
"submit"
,
_
(
"Save"
)))
return
helper
class
AclUserOrGroupAddForm
(
forms
.
Form
):
name
=
forms
.
Char
Field
(
name
=
autocomplete
.
Select2ListChoice
Field
(
widget
=
autocomplete
.
ListSelect2
(
url
=
'autocomplete.acl.user-group'
,
attrs
=
{
'class'
:
'form-control'
,
...
...
@@ -1434,7 +1433,7 @@ class AclUserOrGroupAddForm(forms.Form):
class
TransferOwnershipForm
(
forms
.
Form
):
name
=
forms
.
Char
Field
(
name
=
autocomplete
.
Select2ListChoice
Field
(
widget
=
autocomplete
.
ListSelect2
(
url
=
'autocomplete.acl.user'
,
attrs
=
{
'class'
:
'form-control'
,
...
...
@@ -1444,7 +1443,7 @@ class TransferOwnershipForm(forms.Form):
class
AddGroupMemberForm
(
forms
.
Form
):
new_member
=
forms
.
Char
Field
(
new_member
=
autocomplete
.
Select2ListChoice
Field
(
widget
=
autocomplete
.
ListSelect2
(
url
=
'autocomplete.acl.user'
,
attrs
=
{
'class'
:
'form-control'
,
...
...
circle/dashboard/templates/dashboard/_manage_access.html
View file @
a88bb448
{% load i18n %}
<form
action=
"{{ acl.url }}"
method=
"post"
>
{% csrf_token %}
<table
class=
"table table-striped table-with-form-fields acl-table"
id=
"{{table_id}}"
>
<thead>
...
...
@@ -58,7 +59,7 @@
</tr>
{% endfor %}
<tr><td><i
class=
"fa fa-plus"
></i></td>
<td>
{{aclform.name }}
</td>
<td>
{{
aclform.name }}
</td>
<td><select
class=
"form-control"
name=
"level"
>
{% for id, name in acl.levels %}
{% if id in acl.allowed_levels %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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