80 Commits

Author SHA1 Message Date
nobohan
0035128138 address: display error message if some fields are empty 2022-01-12 15:44:37 +01:00
nobohan
49cb154672 address: add field validation (WIP) 2022-01-12 15:44:37 +01:00
938720be52 Issue316 addresses search by postal code 2021-12-06 12:56:57 +00:00
nobohan
5781f2af89 main: add the coordinates of the postal code if no full address is selected 2021-11-24 17:21:43 +01:00
809eb9643e Merge branch 'optimize_address' into 'master'
Address: Optimize address

See merge request Chill-Projet/chill-bundles!170
2021-10-18 09:17:05 +00:00
05b2b2f9b8 Link between address and reference, and api endpoint to find household
by address reference

* add a one-to-many link between address and address reference;
* update AddAddress.vue to add information on picked address reference;
* add an HouseholdACLAwareRepository, with a method to find household by
current address reference
* add an endpoint to retrieve household by address reference
* + tests
2021-10-14 16:03:48 +02:00
9a02665053 some tweaks into PickAddressType 2021-10-14 13:54:19 +02:00
nobohan
78f66d4f14 Address: Assign origin = 3 for postalCode created by users 2021-10-08 12:36:48 +02:00
4c9d352c46 otf: post/patch thirdparty ok, with addAddress creation/edition 2021-09-30 21:11:51 +02:00
577d665f09 batch replace hideAddress option by onlyButton 2021-09-30 14:36:01 +02:00
3cf9920718 Merge branch 'master' into onTheFly 2021-09-30 12:08:24 +02:00
f4999548ac handle suggestion in addAddress component 2021-09-29 12:48:18 +02:00
302f60e722 addAddress: remove commented old method 2021-09-29 12:14:58 +02:00
9f07e6a272 Address: fetch POST valid dates when applying changes from datePane 2021-09-24 11:22:48 +02:00
efd9380d13 Address use next/previous button if datePane and if context new 2021-09-23 12:32:05 +02:00
1c568a75ec Address: pass useDatePane option in showPane addressRenderBox, display dates in showPane 2021-09-23 11:07:17 +02:00
a8024ba38f Address datePane: validTo date display and format 2021-09-23 10:34:06 +02:00
d994612987 change buttons apparence for datePane back to editPane 2021-09-23 10:34:06 +02:00
3ee0f4bf20 datePane, back to previous editPane 2021-09-23 10:34:06 +02:00
98f1f19e9a courseLocation: commit context addressId change when remove PersonLocation (fix bad address in editPane) 2021-09-22 20:27:08 +02:00
5d99e261e1 CourseLocation: load initAddressContext() earlier allow AddAddress to getInitialAddress() (fix) 2021-09-22 19:41:17 +02:00
4768785bb5 Address: improve forceRedirect condition, if backUrl is null or undefined 2021-09-22 18:43:44 +02:00
47d0043462 disable suggestPane step 2021-09-22 16:28:35 +02:00
f8d5dcf937 AddAddress: improve loading transition between step0/step1 and step2 2021-09-22 15:16:06 +02:00
dfc6ed9bf3 Address: remove forceRedirect option: backUrl option not null is considerated as forceRedirect true 2021-09-22 14:00:40 +02:00
e336990b16 comment console.log 2021-09-22 13:55:24 +02:00
e13b7bf195 fix countrySelection multiselect with fetch async countries
edit context: display country for existing address
new context: repair editPane, load countries

note: adding id for country and postcode in address endpoint json
2021-09-22 11:39:03 +02:00
3f3dd83132 fix error in afterLastPaneAction 2021-09-20 20:15:38 +02:00
8ba74f8de8 editPane, change button if datePane after 2021-09-20 20:15:38 +02:00
690f649dd1 applyChanges, if DatePane or not 2021-09-20 20:15:38 +02:00
75a240a2d6 parent callback will cast afterLastPaneAction, that manage redirection or context changes 2021-09-20 20:15:38 +02:00
717cd03d95 Address: context id received from twig are integer 2021-09-20 20:15:38 +02:00
a842229d5e improve addAddress 2021-09-18 21:47:04 +02:00
2788170f03 slot buttons up from actionButtons to addAddress 2021-09-18 17:02:45 +02:00
4855ec2065 AddAddress: adding a forceRedirect option 2021-09-17 15:55:10 +02:00
3f3b7af42b AddAddress: adjust Open and Close methods for each step 2021-09-17 13:25:18 +02:00
f048395a89 AddAddress: reorganize 4 steps Pane: show, suggest, edit, and date 2021-09-17 13:25:18 +02:00
6a60758c0d AddAddress: openPanesInModal, uniq option to enable/disable all step123 in Modal 2021-09-17 13:25:18 +02:00
4bafa83b65 Address: rename [Show|Edit]AddressPane files 2021-09-17 13:25:18 +02:00
7ab57eba9a AddAddress: adding useDate.validFrom/validTo options 2021-09-16 22:21:47 +02:00
6ab1391bd8 addAddress: allow other rootcomponent to not precise bindmodal options 2021-09-16 21:21:40 +02:00
c58d1eccc5 AddAddress: rename callback method 2021-09-16 20:49:46 +02:00
9ff58fe0c3 Address: replace variable entity.type by entity.name 2021-09-16 19:56:15 +02:00
da32afeb3f addAddress: improve boolean variables 2021-09-16 19:56:15 +02:00
17a3f45247 AddAddress final submit, managed by callback and not an event 2021-09-16 19:56:15 +02:00
374ac652d4 AddAddress: submitNewAddress return callback payload, and parent patch date then postTo (TO BE MORE TESTED)
improve pattern for better reusability of AddAddress component
2021-09-04 14:26:03 +02:00
2208518ca0 AddAddress: add new address or update existing address: split fetch cascade and factorize reused functions 2021-09-04 12:47:47 +02:00
cdc6cf211a AddAddress option buttonType: component manage button in edit or create context 2021-08-17 15:41:03 +02:00
aa0ff37479 Address: fix option regression 2021-08-17 09:04:58 +02:00
1b3904f8e3 rename variable displayText 2021-08-16 10:19:53 +02:00