Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
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
6
Merge Requests
6
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
agplv3
kohinos-tav
Commits
9a09f9e7
Commit
9a09f9e7
authored
Apr 22, 2024
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide fix balance fields by default and show them on click on a btn
parent
72f78dda
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
admin.js
assets/js/admin.js
+8
-0
AdherentAdmin.php
src/Admin/AdherentAdmin.php
+6
-3
No files found.
assets/js/admin.js
View file @
9a09f9e7
...
@@ -10,6 +10,7 @@ require('../css/admin.css');
...
@@ -10,6 +10,7 @@ require('../css/admin.css');
require
(
'bootstrap'
);
require
(
'bootstrap'
);
require
(
'../css/common.css'
);
require
(
'../css/common.css'
);
require
(
'../js/geoloc.js'
);
require
(
'../js/geoloc.js'
);
const
$
=
require
(
"jquery"
);
$
(
'#flash-messages'
).
flashNotification
(
'init'
);
$
(
'#flash-messages'
).
flashNotification
(
'init'
);
...
@@ -130,4 +131,11 @@ $(document).ready(function() {
...
@@ -130,4 +131,11 @@ $(document).ready(function() {
}
}
actionOnRecevoirUnRappelChange
();
actionOnRecevoirUnRappelChange
();
}
}
if
(
$
(
".fixBalanceAdherentFormPart"
).
length
>
0
)
{
$
(
".fixBalanceAdherentFormPart"
).
parent
().
parent
().
hide
();
$
(
"div[id$='_idmlc']"
).
append
(
"<br/><input type='button' id='showFieldsToFixBalance' onclick='$(
\"
.fixBalanceAdherentFormPart
\"
).parent().parent().show();' value='Afficher les champs pour corriger le solde'> </input>"
);
}
});
});
src/Admin/AdherentAdmin.php
View file @
9a09f9e7
...
@@ -371,14 +371,16 @@ class AdherentAdmin extends AbstractAdmin
...
@@ -371,14 +371,16 @@ class AdherentAdmin extends AbstractAdmin
'mapped'
=>
false
,
'mapped'
=>
false
,
'required'
=>
false
,
'required'
=>
false
,
'attr'
=>
[
'attr'
=>
[
'autocomplete'
=>
'off'
'autocomplete'
=>
'off'
,
'class'
=>
'fixBalanceAdherentFormPart'
]
]
])
])
->
add
(
'justification'
,
TextType
::
class
,
[
->
add
(
'justification'
,
TextType
::
class
,
[
'mapped'
=>
false
,
'mapped'
=>
false
,
'required'
=>
false
,
'required'
=>
false
,
'attr'
=>
[
'attr'
=>
[
'autocomplete'
=>
'off'
'autocomplete'
=>
'off'
,
'class'
=>
'fixBalanceAdherentFormPart'
]
]
])
])
->
add
(
'password'
,
PasswordType
::
class
,
[
->
add
(
'password'
,
PasswordType
::
class
,
[
...
@@ -387,7 +389,8 @@ class AdherentAdmin extends AbstractAdmin
...
@@ -387,7 +389,8 @@ class AdherentAdmin extends AbstractAdmin
'required'
=>
false
,
'required'
=>
false
,
'data'
=>
""
,
'data'
=>
""
,
'attr'
=>
[
'attr'
=>
[
'autocomplete'
=>
'off'
'autocomplete'
=>
'off'
,
'class'
=>
'fixBalanceAdherentFormPart'
]
]
])
])
->
end
()
->
end
()
...
...
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