Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
f103fb03
Commit
f103fb03
authored
Mar 10, 2022
by
Thibault Grandjean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add spinner autocomplete
parent
38dee935
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
manage_attached.css
members/static/css/admin/manage_attached.css
+4
-0
manage_attached.js
members/static/js/admin/manage_attached.js
+12
-0
manage_attached_create_pair.html
templates/members/admin/manage_attached_create_pair.html
+2
-0
No files found.
members/static/css/admin/manage_attached.css
View file @
f103fb03
...
...
@@ -112,3 +112,7 @@
text-align
:
center
;
font-size
:
1.6rem
;
}
.spinner
{
height
:
40px
;
}
members/static/js/admin/manage_attached.js
View file @
f103fb03
...
...
@@ -228,6 +228,12 @@ $(document).ready(function() {
)
},
minLength
:
1
,
search
:
function
(
event
,
ui
)
{
$
(
'#spinner1'
).
show
();
},
response
:
function
(
event
,
ui
)
{
$
(
'#spinner1'
).
hide
();
},
select
:
function
(
event
,
ui
)
{
event
.
preventDefault
();
if
(
ui
.
item
)
{
...
...
@@ -273,6 +279,12 @@ $(document).ready(function() {
)
},
minLength
:
1
,
search
:
function
(
event
,
ui
)
{
$
(
'#spinner2'
).
show
();
},
response
:
function
(
event
,
ui
)
{
$
(
'#spinner2'
).
hide
();
},
select
:
function
(
event
,
ui
)
{
if
(
ui
.
item
)
{
load_member_infos
(
"childInfo"
,
ui
.
item
.
value
)
...
...
templates/members/admin/manage_attached_create_pair.html
View file @
f103fb03
...
...
@@ -32,6 +32,7 @@
<h4>
Rechercher le.a coopérateur.ice titulaire
</h4>
<form
autocomplete=
"off"
id=
"search_member_form"
class=
"search_member_form"
action=
"javascript:;"
method=
"post"
>
<input
name=
"searchParent"
type=
"text"
id=
"search_member_input"
value=
""
placeholder=
"Nom ou numéro du coop..."
required
>
<img
id=
"spinner1"
class=
"spinner"
src=
"{% static 'img/Loading_2.gif' %}"
alt=
"loading"
style=
"display:none;"
>
</form>
</div>
<div
id=
"parentInfo"
style=
"display:none;"
>
...
...
@@ -68,6 +69,7 @@
<h4>
Rechercher le.a coopérateur.ice suppléant.e
</h4>
<form
autocomplete=
"off"
id=
"search_member_form_child"
class=
"search_member_form"
action=
"javascript:;"
method=
"post"
>
<input
name=
"searchChild"
type=
"text"
id=
"search_child_input"
value=
""
placeholder=
"Nom ou numéro du coop..."
required
>
<img
id=
"spinner2"
class=
"spinner"
src=
"{% static 'img/Loading_2.gif' %}"
alt=
"loading"
style=
"display:none;"
>
</form>
</div>
<div
id=
"childInfo"
style=
"display:none;"
>
...
...
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