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
3
Merge Requests
3
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
10 months ago
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
master
…
6232-6227-sprint5-core
6342-territory-filter-in-flux-menus
6366-authorized-vs-authorised-and-another-detail
6367-cancel-recurring-payment
7376-reconversion-frquency-entity-text
7377-presta-reconv-frequency-default
7516-add-operateur-to-presta-exports
7694-adherent-admin-field-not-required
7694-adherent-admin-household-comp-not-required
7699-add-info-text-for-admin
develop
payment-hotfix
sprint-2-montpellier
ssa-gironde
ssagironde_prod
tavTOKohinos
1 merge request
!84
add fields to fix balance in fiche adherent form for super admin only
Hide 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>"
);
}
});
});
This diff is collapsed.
Click to expand it.
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
()
...
...
This diff is collapsed.
Click to expand it.
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