mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-11-03 18:58:24 +00:00 
			
		
		
		
	Compare commits
	
		
			1318 Commits
		
	
	
		
			fix_deathd
			...
			issue487_b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 3ceeac726b | |||
| e32b8b0942 | |||
| e9236875d2 | |||
| db4b0b104b | |||
| 4ad65b616d | |||
| 9769aa1386 | |||
| bf4a3a2c91 | |||
| 3df2335cf4 | |||
| 1c7c217d1c | |||
| f0e41f839f | |||
| b1c0e18e51 | |||
| 6edf0bcb3b | |||
| 6171b3411f | |||
| 86bf0115dd | |||
| 
						 | 
					1b66941746 | ||
| 
						 | 
					dca17c409b | ||
| 
						 | 
					23fd4be2e5 | ||
| 
						 | 
					4406016f82 | ||
| d50d68aa86 | |||
| fccac80222 | |||
| bf70d344bf | |||
| d0591d0351 | |||
| c83d6d392f | |||
| 09ca1ec6bb | |||
| 970431197f | |||
| 9fdd9da486 | |||
| b9eee51de6 | |||
| c0ec64e4be | |||
| 74a84e42a6 | |||
| 595ddf5b6f | |||
| abe183fd10 | |||
| 9a0883eb5f | |||
| 663295d436 | |||
| 9f9986d367 | |||
| db37527f72 | |||
| 6171a221b2 | |||
| 1312fd0941 | |||
| c1832d39f1 | |||
| 3756631595 | |||
| a7a933c7a7 | |||
| 15bc3e62d3 | |||
| 5ce62f5458 | |||
| 3e30684198 | |||
| c2e284682f | |||
| 5407dbfc98 | |||
| fa23bfd7d5 | |||
| 09de7cbf7d | |||
| 6a3c8017f0 | |||
| eb6ec8a4af | |||
| c8c2c4c859 | |||
| 7bd93e53c2 | |||
| 5d6f3de694 | |||
| 3eb826d422 | |||
| e9ffdb1f03 | |||
| f4f488dad1 | |||
| 2a9f1dc238 | |||
| 8482c8ffa7 | |||
| 54ad7a4b8f | |||
| ed4cf67e79 | |||
| 550168fd7c | |||
| 8470430c57 | |||
| a9415488dd | |||
| 8945703785 | |||
| 9f90cc8fe1 | |||
| 
						 | 
					d6d7edf25d | ||
| 7b17dc692e | |||
| e5f7120733 | |||
| 1a05ffab96 | |||
| aad7a21bc3 | |||
| ae0bf7bfd7 | |||
| d2ecc5d3a3 | |||
| 22aefca5c9 | |||
| cce790f2f8 | |||
| 
						 | 
					84478c651e | ||
| 
						 | 
					88e9a96e0e | ||
| 
						 | 
					a187bac7b0 | ||
| 2b108d0d70 | |||
| f5accb827c | |||
| 
						 | 
					4543c411e7 | ||
| 
						 | 
					7aefa5014c | ||
| 
						 | 
					d163783ed3 | ||
| 4536f30da2 | |||
| 8764aacd92 | |||
| 8b8f6027cc | |||
| 6769752c26 | |||
| 
						 | 
					5695bb0e9e | ||
| 
						 | 
					48a32f2403 | ||
| 
						 | 
					a7240e8cc6 | ||
| 52d8776fbb | |||
| 0d38cae217 | |||
| 
						 | 
					b146f17d2f | ||
| df675cd757 | |||
| ecc2e390f7 | |||
| c3e0b3b708 | |||
| 449a6a1b4e | |||
| eb874a15a6 | |||
| 3b26466a6c | |||
| a6ac6ee6d8 | |||
| 06c279627a | |||
| 1e146f542e | |||
| cdd21c94c6 | |||
| 
						 | 
					30cdcb0836 | ||
| 
						 | 
					29308110ea | ||
| 
						 | 
					18c57d532c | ||
| 
						 | 
					b814e812b6 | ||
| 
						 | 
					dbbbd99788 | ||
| 
						 | 
					47676c67ff | ||
| 
						 | 
					7ad78fbce1 | ||
| 
						 | 
					37e38436a8 | ||
| 
						 | 
					e1b3719746 | ||
| 
						 | 
					68a64aa67f | ||
| 
						 | 
					d780d95157 | ||
| 
						 | 
					4822acb6fb | ||
| 260ce8ba17 | |||
| 822f0aa737 | |||
| e10a6b4bf2 | |||
| 8e1f3a5cc0 | |||
| 31ec6c70ef | |||
| cd84700400 | |||
| 08fa1edbee | |||
| 15d9593d0f | |||
| 010afded18 | |||
| c12f633829 | |||
| fb6f0c316e | |||
| b1ed263c4e | |||
| 846e487e27 | |||
| 72a9183ca8 | |||
| fe89704672 | |||
| 93d023007e | |||
| 8bf179934d | |||
| 24c79cc4b1 | |||
| f93282d657 | |||
| 3a602385cc | |||
| cb4c3b46b9 | |||
| abb81bf45f | |||
| a9694da557 | |||
| 
						 | 
					d205939361 | ||
| af0d7765ff | |||
| c1f5730c4d | |||
| da019a146a | |||
| 
						 | 
					4bd50d0148 | ||
| 
						 | 
					1826b20b40 | ||
| 356d1a7133 | |||
| 
						 | 
					2cc7473276 | ||
| 
						 | 
					2ea5c4b0c7 | ||
| 432cce280b | |||
| 530297bc67 | |||
| c416f1ef6d | |||
| 3a5e956e49 | |||
| 5cf4013a99 | |||
| 16cca07e12 | |||
| 
						 | 
					aae360d6ab | ||
| bf25740098 | |||
| 18836f312a | |||
| 2b257cc402 | |||
| 
						 | 
					289d79e011 | ||
| b7d6d69101 | |||
| 
						 | 
					15487cd84c | ||
| 1479e2ae9a | |||
| 
						 | 
					1ab4f997ba | ||
| 
						 | 
					24b11f609d | ||
| 
						 | 
					0661eb8701 | ||
| 
						 | 
					c073ec14c8 | ||
| 
						 | 
					bf26092764 | ||
| 
						 | 
					e035a6fd94 | ||
| ff1ff8f5bb | |||
| 
						 | 
					3f43574371 | ||
| 
						 | 
					b1390f4e9b | ||
| 
						 | 
					fd29a4ce65 | ||
| 
						 | 
					4655892815 | ||
| e46220ff72 | |||
| 
						 | 
					f19a090549 | ||
| 08f9819453 | |||
| b56d8c2956 | |||
| 
						 | 
					5f71b46bb7 | ||
| 
						 | 
					154f976762 | ||
| d486f2ddfc | |||
| fc5ca30df0 | |||
| 0601fa0142 | |||
| fffed6e3f6 | |||
| ffe4dd4a98 | |||
| cc4dfdb042 | |||
| fd0ca3b29d | |||
| daab42109b | |||
| ab5bb3963b | |||
| 262bb13b6c | |||
| 5d530aaae9 | |||
| 
						 | 
					f0e6bfc6c6 | ||
| 
						 | 
					d4283a0b94 | ||
| 
						 | 
					568c4b60ef | ||
| 
						 | 
					736ca2272b | ||
| 
						 | 
					88059884ec | ||
| 
						 | 
					ce1d213082 | ||
| 
						 | 
					71f3a3403c | ||
| 
						 | 
					fbeda163f0 | ||
| 
						 | 
					08c1bb7992 | ||
| 
						 | 
					2f7b237c4c | ||
| 
						 | 
					665027085d | ||
| 
						 | 
					2618003177 | ||
| 8f597eb254 | |||
| 775d223be2 | |||
| 3849776511 | |||
| cb3301bcef | |||
| 8d74566eac | |||
| 4a03c2aa43 | |||
| 292d56cfbe | |||
| b41e016a6d | |||
| 0a2e2301a9 | |||
| 874c90e0e0 | |||
| bb8898a4ec | |||
| 213da59b0b | |||
| 4e9879ba92 | |||
| 0690704391 | |||
| 610b861345 | |||
| b7f8ba4385 | |||
| a923a1f135 | |||
| 0d804dd817 | |||
| 4f4b1bfbaa | |||
| caa63ea97a | |||
| 8675bb65c1 | |||
| 104af6d9b5 | |||
| 2f2d4493ae | |||
| 2d23068354 | |||
| b65dacca72 | |||
| 265c8b776b | |||
| 4920c8b28b | |||
| 4f9acf3174 | |||
| 962957409b | |||
| 0b4d79fd5e | |||
| 0efd3d2af3 | |||
| 
						 | 
					02e5a1158d | ||
| cfe32828a4 | |||
| 
						 | 
					ca6bfea51f | ||
| 
						 | 
					8c7da5f80c | ||
| 
						 | 
					57175e1c0b | ||
| 
						 | 
					c5d2953ecb | ||
| ee8044b857 | |||
| 1fda56b5f7 | |||
| ca79da2f9b | |||
| c90e6231f9 | |||
| e86fa41180 | |||
| ebea4b7008 | |||
| 9565464489 | |||
| 05f83bf566 | |||
| 673d0c1e53 | |||
| fe35a29fb8 | |||
| 53d51fea2f | |||
| caaebd593b | |||
| 672fa48140 | |||
| a9aeea234c | |||
| 1683685f6b | |||
| e4aac56f2d | |||
| d6990349d8 | |||
| 9ac2f7e359 | |||
| f86c0353a2 | |||
| 0a289e1edd | |||
| c2c5bec0e5 | |||
| 68bfca8a1f | |||
| 
						 | 
					6e1b95aa60 | ||
| 
						 | 
					baf9b6e1ae | ||
| 5ff47050ff | |||
| 
						 | 
					c302f2dcf9 | ||
| 
						 | 
					24fc7a216b | ||
| 
						 | 
					2926965400 | ||
| 
						 | 
					341177aa5e | ||
| 56923aa1b8 | |||
| 62f54a3c27 | |||
| 64e9461586 | |||
| 5e01eebd25 | |||
| bae2a385aa | |||
| 9861e3fe1c | |||
| 95b2fcead7 | |||
| 45beb27f83 | |||
| 
						 | 
					b992bde41d | ||
| aebb21935b | |||
| 20104f1b3b | |||
| 25264447bc | |||
| c1036a3627 | |||
| f1a9a872bb | |||
| df322d7ebb | |||
| 
						 | 
					56a4fd3fa0 | ||
| 
						 | 
					02716a6a93 | ||
| d4534b56a0 | |||
| 
						 | 
					81b7b49170 | ||
| c8922a6a82 | |||
| cdf0bb30c9 | |||
| e4793e1a77 | |||
| 8347ddd5be | |||
| 12412e05a7 | |||
| 
						 | 
					dd99c35e35 | ||
| 
						 | 
					9d651a70e9 | ||
| b0d50d315c | |||
| 41bddf2db6 | |||
| 769700fe83 | |||
| 433ccb1fc4 | |||
| 145c1d59e9 | |||
| ae8cc0f700 | |||
| a764da3e99 | |||
| 8f92f79f85 | |||
| f093765d03 | |||
| c44d962ba8 | |||
| 20d22b726c | |||
| 8fa2f0e7ad | |||
| 604c7f385e | |||
| 1a07c9d71a | |||
| f7e287d415 | |||
| b16cc2dc27 | |||
| 188447fc10 | |||
| b920bf6d22 | |||
| 32ff54e130 | |||
| 02c09687a4 | |||
| 3b1fc4aacb | |||
| bf9469d538 | |||
| c2dec360b1 | |||
| dc7422bf56 | |||
| 89edf508f5 | |||
| 
						 | 
					50410d190f | ||
| 
						 | 
					b54e076ca0 | ||
| 2ab7556ac3 | |||
| 3d38da7b37 | |||
| 056d5a3f98 | |||
| 17612afd87 | |||
| 0a4913f341 | |||
| 
						 | 
					3aa12d2e8c | ||
| a6504366b4 | |||
| 4e83e7905a | |||
| 
						 | 
					96b1854fef | ||
| 
						 | 
					489473806f | ||
| 
						 | 
					f5bc8dca5e | ||
| 
						 | 
					bc99c85802 | ||
| 385664e2bc | |||
| 1658fee090 | |||
| b9dbb1916a | |||
| 
						 | 
					99afd2e830 | ||
| 861f461bc5 | |||
| b6c118a0c8 | |||
| 89d3ab38f0 | |||
| 441704dc29 | |||
| 8ee451c6e0 | |||
| 
						 | 
					785e690404 | ||
| 
						 | 
					2fcd7a21a4 | ||
| f2221565c5 | |||
| 
						 | 
					d5c1591205 | ||
| 
						 | 
					7895699ef3 | ||
| 
						 | 
					bd9963e65f | ||
| df61fbff12 | |||
| 9ead38ee22 | |||
| 6402962990 | |||
| 9e9fa5039f | |||
| e6d503a1e2 | |||
| 844650b685 | |||
| 4920142540 | |||
| 
						 | 
					a7a1f699bb | ||
| 61cf838458 | |||
| 
						 | 
					229a91ddf0 | ||
| 68d0c66402 | |||
| c2a132a40b | |||
| 
						 | 
					94729a66ca | ||
| bd05315de3 | |||
| d254a9e14a | |||
| e028c1ca2b | |||
| 
						 | 
					1c3f6c7c1e | ||
| 
						 | 
					f8888462f1 | ||
| 
						 | 
					4e2be091cd | ||
| 
						 | 
					40a1726ca7 | ||
| 
						 | 
					fc9deb8ba8 | ||
| 
						 | 
					b1993dbf22 | ||
| 7dd6cd04ba | |||
| 1072f539dc | |||
| 9bcf4cce9f | |||
| 9223beac47 | |||
| 62c78e650f | |||
| e7d0c1cac6 | |||
| b859283766 | |||
| 973644c62d | |||
| b9af54892b | |||
| f9154233e4 | |||
| e595500cb8 | |||
| 
						 | 
					aa7da2559c | ||
| 753a007172 | |||
| f34847f9f6 | |||
| 0fa119c984 | |||
| 270d00c1e8 | |||
| 983c5f3c6a | |||
| c6141e473f | |||
| c30cb5879d | |||
| 29e384ada5 | |||
| c8e5ba4738 | |||
| bf0b7f1bb2 | |||
| d6cc69b919 | |||
| ac33c6aad8 | |||
| 89383a5ec4 | |||
| 0fd26da299 | |||
| 6fa99655b2 | |||
| a387305ef8 | |||
| e0c7daf3fd | |||
| 4304baeca5 | |||
| d2a567c79e | |||
| 3c04ced1a3 | |||
| a28d8a7287 | |||
| 1c055e842e | |||
| dea283d655 | |||
| 
						 | 
					01a3af694a | ||
| 58c8373c81 | |||
| a1ccfadac1 | |||
| 632b1262f9 | |||
| e157624479 | |||
| 3a2370d536 | |||
| 
						 | 
					eee38e9577 | ||
| 50b7df1f4a | |||
| 981c94906d | |||
| adce90c151 | |||
| 83f8402081 | |||
| 22417ee9f9 | |||
| 3c5d269ece | |||
| 42579b5752 | |||
| 15023d348a | |||
| fbf777e134 | |||
| 450277f32a | |||
| 
						 | 
					1f5d529d33 | ||
| 93128cb61b | |||
| 
						 | 
					c19099e76c | ||
| d3d655293e | |||
| 
						 | 
					692343aae4 | ||
| 0592601aa6 | |||
| a17f5948fb | |||
| 
						 | 
					4dd9bc1123 | ||
| 6578f66fec | |||
| 3f2a19a6f0 | |||
| d5160ead4c | |||
| a6e9cbdece | |||
| 657bf7075b | |||
| f1c3e8dc1b | |||
| a9624b36f7 | |||
| db4aec9a18 | |||
| c34ce48a53 | |||
| 93345c09a1 | |||
| b5a1985fa1 | |||
| 9b4c350213 | |||
| 199a441593 | |||
| f42d106e3c | |||
| 13eddbfc5b | |||
| 7c30126fed | |||
| e3c5f6f95f | |||
| a86f1a05ac | |||
| 9ba0cb0c2a | |||
| add8588767 | |||
| a083a320ae | |||
| 64fa7f2e00 | |||
| c7a830ee28 | |||
| 9aa51406fa | |||
| 344981cf99 | |||
| 28c4d6b92f | |||
| ef2ab5faf6 | |||
| 54dbf711f9 | |||
| bb93cb23a7 | |||
| 60951231c4 | |||
| ece30b63c3 | |||
| 94503505f7 | |||
| 48589f3368 | |||
| 1e04c178dc | |||
| 37ed703abe | |||
| 7ed20d2fc5 | |||
| 5fe2a8e737 | |||
| 
						 | 
					861abe708b | ||
| 57a88845dc | |||
| 
						 | 
					f43e216e13 | ||
| 5210e7985f | |||
| ddabdff206 | |||
| 5a692db30f | |||
| 659983fef1 | |||
| aca5a3c731 | |||
| 406cfc86cd | |||
| 90da067fbd | |||
| 3532e9dd8c | |||
| fddb74f107 | |||
| e7a6742964 | |||
| ee817b1d62 | |||
| 3ffeaf419a | |||
| a399804094 | |||
| 05e9f118d7 | |||
| ce2f64acd0 | |||
| 7aad5be29f | |||
| 41b0dd50bd | |||
| 08f544f6ea | |||
| 4e862cc585 | |||
| 05d2c3b2e8 | |||
| 513207e510 | |||
| dee6ed6707 | |||
| d60095987c | |||
| b4f9be0d92 | |||
| a2a0f6af44 | |||
| 7fa0353d8c | |||
| 9256c71715 | |||
| 5520f3df50 | |||
| a6c0d8b219 | |||
| f6e667700e | |||
| f94ef0798a | |||
| 7bd7476200 | |||
| a2752765af | |||
| 4de2cbe807 | |||
| 1e81256404 | |||
| 6b571e87b4 | |||
| 4314823a70 | |||
| dc08ced6c9 | |||
| 9d660311f0 | |||
| b3e65f0733 | |||
| 03007370bc | |||
| f9b514c869 | |||
| bc2d4c1066 | |||
| 298b597dd0 | |||
| 
						 | 
					91ba08dfa1 | ||
| 481456a038 | |||
| 
						 | 
					06142797c3 | ||
| 
						 | 
					4185b660cc | ||
| ad46776164 | |||
| 2343a4a334 | |||
| 3f83c323be | |||
| 9a9ed64298 | |||
| 
						 | 
					a0cadb46db | ||
| 
						 | 
					f139af8b6f | ||
| 
						 | 
					1f0ef6e187 | ||
| 
						 | 
					4afea55465 | ||
| 
						 | 
					3d5723facb | ||
| 211ecf1c3e | |||
| 796b4ff76b | |||
| 9553e18d83 | |||
| 02d9a713de | |||
| 6cc4fa582e | |||
| b8d43f36eb | |||
| 06b3d63133 | |||
| 232e71f46c | |||
| 0b5a0e65a8 | |||
| ef42227e6c | |||
| 2af3de4f61 | |||
| 8bafa37fe1 | |||
| 
						 | 
					a83b0326d7 | ||
| 53e03395f2 | |||
| 5fef4048a4 | |||
| d8929a6222 | |||
| 33af7f36a0 | |||
| 3f2454cead | |||
| 0ac9f2df8c | |||
| 333224a9d5 | |||
| 496e5f0259 | |||
| f2a62822a4 | |||
| 7879a99197 | |||
| 72d8cc297f | |||
| 1a0674a20b | |||
| 572aa2c14e | |||
| bc4b2c4e86 | |||
| a227e88e79 | |||
| d9e9f472fb | |||
| fcff4bf863 | |||
| 79b82e09e1 | |||
| 
						 | 
					a78f29cffc | ||
| e98b1b049b | |||
| 99efa51794 | |||
| 76932e6e8c | |||
| 97d2e3d5b5 | |||
| 
						 | 
					2c94811c8f | ||
| a2063ab13b | |||
| 
						 | 
					eb32b13bcc | ||
| 2bb718f3ea | |||
| c6373a075d | |||
| 46337ef25d | |||
| 2f5fecf414 | |||
| 5d2cb8c712 | |||
| 460502a1f2 | |||
| cdd7a16d18 | |||
| ec29758547 | |||
| c5cbdd97ff | |||
| 05fc5a1829 | |||
| c3de3c6c39 | |||
| 1530e9d13a | |||
| a986b4ae98 | |||
| 0854b7fc6a | |||
| 730199cca4 | |||
| de1dddbb85 | |||
| a612d7dd9f | |||
| 50e722e637 | |||
| e4d5e40a8b | |||
| 479ec25d99 | |||
| 930b6ff77e | |||
| 7d8bd089a2 | |||
| 
						 | 
					ebdcc5a07d | ||
| 
						 | 
					0f31a49890 | ||
| 2c566bb21c | |||
| a0bc6c7604 | |||
| a4457664d4 | |||
| b42ae76bdf | |||
| 2eb1ebd263 | |||
| b79885cd21 | |||
| 69dd920fd6 | |||
| 0689ca366d | |||
| af1c268784 | |||
| 1162c436c1 | |||
| 170ce2d51c | |||
| 571a8a0edc | |||
| bdbb83ab85 | |||
| 971789d5cf | |||
| 72815e4b70 | |||
| 44183957b8 | |||
| 434d672d8a | |||
| 5f6cffa08a | |||
| e21ff588ae | |||
| 0383571a9e | |||
| f358e78734 | |||
| 43ef31b93f | |||
| 222dae3c32 | |||
| 08c13b8c98 | |||
| 1bc2500b28 | |||
| f648a9351b | |||
| ffe466a334 | |||
| 
						 | 
					3978e7c959 | ||
| 
						 | 
					2eb5c45a4d | ||
| 15393d9da9 | |||
| 695d22adba | |||
| 
						 | 
					fefe208260 | ||
| bc1a63354c | |||
| c14101714c | |||
| faebb0fe30 | |||
| 8ec5636c57 | |||
| 68d99050bc | |||
| fba7060a91 | |||
| 6894fa7101 | |||
| 41fa1d9ca6 | |||
| f4bca2f410 | |||
| 6198891202 | |||
| c806c06279 | |||
| e04c02055c | |||
| 4fa1bb4341 | |||
| ac5675933d | |||
| e7db71b0f3 | |||
| 
						 | 
					1967fc4bed | ||
| 
						 | 
					befd5dac42 | ||
| 186b8847d9 | |||
| 90d0cbc3b1 | |||
| ac3d39b151 | |||
| efb5bd64b4 | |||
| 76a7b019eb | |||
| 739540af64 | |||
| 230d73498e | |||
| 
						 | 
					a68a43adc0 | ||
| 
						 | 
					5a75e38f33 | ||
| 1c02eb23fd | |||
| 1ba5df1280 | |||
| 73c4a5d39d | |||
| 0a58c43952 | |||
| a3b823d33f | |||
| de45555c5a | |||
| 0add020e57 | |||
| 84a76d2c76 | |||
| d88207132b | |||
| 932d0e86d9 | |||
| 671f1223b5 | |||
| 1a04d903fc | |||
| 125dd4d980 | |||
| 2ddab027ed | |||
| 1724400d7c | |||
| d1a0934bb1 | |||
| bc90664480 | |||
| 99dc7490cb | |||
| 5ac485e06e | |||
| dc184762d6 | |||
| 86e7b0f007 | |||
| fdafe7c82b | |||
| d285d84068 | |||
| da22532587 | |||
| b83ad77fd8 | |||
| 00ac6aa1b9 | |||
| 318c001904 | |||
| e2d406b97b | |||
| 
						 | 
					efff496f7a | ||
| fe4eaa92be | |||
| cb17a7e8a5 | |||
| ad4153a07e | |||
| e95093f144 | |||
| 59cdf07c7e | |||
| 292c9380ad | |||
| 701ad17299 | |||
| 7f41f14959 | |||
| fcd5fba13e | |||
| 2c57eab4d2 | |||
| 2cd51eed2e | |||
| 72e306b583 | |||
| 917dd49d07 | |||
| 71ca912749 | |||
| 4620e32b82 | |||
| 0cda5d637d | |||
| 646f39b9ed | |||
| 
						 | 
					105fe16122 | ||
| 
						 | 
					4d1a553474 | ||
| 5bfdee0c28 | |||
| ae33392ad0 | |||
| 0e0fe90277 | |||
| 792eafce72 | |||
| 616d01a6c9 | |||
| 
						 | 
					21edc74ada | ||
| ab23290599 | |||
| 1a2e1eaf2a | |||
| feaee8a0b1 | |||
| 0a26e7f326 | |||
| ebf85d4e4d | |||
| 72cffd7a3d | |||
| 65418b17ce | |||
| 
						 | 
					8432c215a3 | ||
| 
						 | 
					87e1f8f077 | ||
| 
						 | 
					33f393203e | ||
| 6aa1e136b4 | |||
| 10a9b6c909 | |||
| ce912e4405 | |||
| ab11d3e8b3 | |||
| 
						 | 
					445fe0cee4 | ||
| 7c6c8de456 | |||
| 0378df42b6 | |||
| ad8d40cb1c | |||
| f4516f8369 | |||
| 5b25f82963 | |||
| 8720cc730e | |||
| 44d1535bfb | |||
| 8d663cdee6 | |||
| 7c8b08c3a7 | |||
| 6df570d96c | |||
| 3ce650eea6 | |||
| 6ef7d9b47b | |||
| af3847366b | |||
| d70f8aa712 | |||
| 14463dcd38 | |||
| b9c2d63a53 | |||
| 3fd4c6339a | |||
| 4d76de5f9f | |||
| 0a92ad905b | |||
| 7af7135971 | |||
| c70a4dc664 | |||
| dc0fae7549 | |||
| b38924cc3d | |||
| 58c4e37116 | |||
| 3656825d20 | |||
| 39a7cecd24 | |||
| 6d382f93e8 | |||
| 6e554e74ab | |||
| 4c125865cf | |||
| 12c68a4c9f | |||
| 66ac5c7435 | |||
| e4b46a188c | |||
| 7a78e8a6a7 | |||
| 4496836cb2 | |||
| 88d1fe24b4 | |||
| 0ea1708fe9 | |||
| a9b7cf93e9 | |||
| 5d36e56641 | |||
| f00dfad98e | |||
| 7943c22ae7 | |||
| d365fcea39 | |||
| 9f9f9d7881 | |||
| 20f814766c | |||
| ed00a882af | |||
| 5d7501d36e | |||
| ab5f9923a6 | |||
| 1a5e8b9d7b | |||
| f7f2bb0caa | |||
| bf7fcfa41a | |||
| 9056ea8449 | |||
| f0e349a2b0 | |||
| 2ccc6f1976 | |||
| cf041cf49e | |||
| 72d593e416 | |||
| 287dca07aa | |||
| 910f9a7e8e | |||
| 9457483a6b | |||
| 6d07168529 | |||
| 420f81ea24 | |||
| 416b62fc60 | |||
| ecae7dab44 | |||
| 126bd1a4eb | |||
| 450792e446 | |||
| ec155b1d67 | |||
| 02b2af7d51 | |||
| 0a6a2c968c | |||
| 4b188e2df6 | |||
| d6bf1988f6 | |||
| 94c9505c05 | |||
| 4a5a1440ff | |||
| b31cc460fa | |||
| 48c3432191 | |||
| 7b4405f6fe | |||
| ce3a74326d | |||
| 51ab013bd7 | |||
| 41a6366efe | |||
| c3c2fd30f0 | |||
| 1952e4aa5a | |||
| 1e1311b7c8 | |||
| fc1ed8b71e | |||
| 2144b247b3 | |||
| e4629ed599 | |||
| f27dca6fb5 | |||
| 8c27ec0720 | |||
| 8392e2e6bd | |||
| 963b0b1ed2 | |||
| 
						 | 
					7513187a6d | ||
| 
						 | 
					990fc0e484 | ||
| 8fce27a128 | |||
| 55c2c41cea | |||
| 0bd10b6dfa | |||
| 8cd01d4317 | |||
| 71293e3378 | |||
| cb58afa44a | |||
| 7b3e9cb490 | |||
| fb720a382f | |||
| a4bfa1cb16 | |||
| 502f2aceed | |||
| 
						 | 
					eb9cc0b63f | ||
| 
						 | 
					7ee554b48d | ||
| 
						 | 
					2e6d281bfc | ||
| 
						 | 
					4b1bf7ce23 | ||
| 
						 | 
					2d574fea2e | ||
| 0e2772336f | |||
| 320d11671a | |||
| 6ef5390a26 | |||
| dec26e2ba4 | |||
| 514d75fa5f | |||
| 0ac51da31a | |||
| 90d43b0bd3 | |||
| 5fe0790912 | |||
| ff66aa5590 | |||
| 8e2d3616b5 | |||
| c046824ea3 | |||
| a9b216b16b | |||
| f866eae581 | |||
| 
						 | 
					21d4e49fce | ||
| b87f14255d | |||
| 0f2cbbe553 | |||
| 17b887160a | |||
| c7dbaae8d6 | |||
| 
						 | 
					25ee11e4ff | ||
| 
						 | 
					df661fc7c4 | ||
| 
						 | 
					6b78c06dfb | ||
| daff4e4200 | |||
| 53b3f98bba | |||
| 2b47868d88 | |||
| 54c2b92962 | |||
| 
						 | 
					d087f051f0 | ||
| 
						 | 
					b3edba3abe | ||
| 
						 | 
					02d8ceba25 | ||
| 
						 | 
					741043c177 | ||
| c42f62de4c | |||
| e23ef35b75 | |||
| eccc75aecf | |||
| 7e2fbf93f9 | |||
| 6ab8f95f7d | |||
| ad05b3bf05 | |||
| 1faa9812db | |||
| a786578cbe | |||
| c08bd76e4b | |||
| 20a4950c60 | |||
| cdbae1eade | |||
| 45f3bb00d6 | |||
| 2b9f0e5177 | |||
| fcf2ae364f | |||
| 92788ccdc0 | |||
| 84993ca05b | |||
| 972657b38e | |||
| b26d0905a3 | |||
| 4ab0a28f7d | |||
| 52009bd7c6 | |||
| 7acd6c7fc3 | |||
| f26cba415b | |||
| 8a2e588190 | |||
| d63d9c2f4e | |||
| dcdee1d6e3 | |||
| dd589af1be | |||
| 
						 | 
					ce594692b3 | ||
| 
						 | 
					17076024f7 | ||
| 
						 | 
					61607fee3d | ||
| 
						 | 
					25ebeebdfb | ||
| 
						 | 
					343b2a6f2f | ||
| 
						 | 
					d4efe81dbb | ||
| 
						 | 
					9d6afc4bb2 | ||
| 2bdf116698 | |||
| 96dc711b4f | |||
| c736c2b5bb | |||
| 
						 | 
					d1918e4be0 | ||
| b3aca957ff | |||
| 03bd4d1942 | |||
| 256c5688a0 | |||
| 
						 | 
					040c5f8847 | ||
| 
						 | 
					9b5990916f | ||
| 
						 | 
					74e94637b9 | ||
| 
						 | 
					216c035bac | ||
| 
						 | 
					16c86daafb | ||
| 
						 | 
					175fa7bf2f | ||
| 
						 | 
					9f7f6e33e8 | ||
| 
						 | 
					3471bdec0d | ||
| 409cd40460 | |||
| 2811e61439 | |||
| 2ff34688bb | |||
| 8133dd7385 | |||
| 
						 | 
					256dab3739 | ||
| 532a751509 | |||
| 
						 | 
					f0a7565302 | ||
| 6460007aa1 | |||
| f84e088e7b | |||
| 64c4f1ece2 | |||
| 
						 | 
					ad983d80d2 | ||
| b8e16d2929 | |||
| 88fc5e94fa | |||
| 4431428c26 | |||
| 724ce8c9af | |||
| 001e2f9622 | |||
| 58ac4b01ef | |||
| 6e4bfd45c6 | |||
| ff0b0678a5 | |||
| 3b56cc818b | |||
| 21d5f974eb | |||
| 59b2b07a21 | |||
| eaf9f72fdd | |||
| 169442decc | |||
| cf8e25e823 | |||
| 96b1f31665 | |||
| 2ad798c0bf | |||
| 7e932e838f | |||
| 41354097f3 | |||
| 9a3f35703b | |||
| 5423de3bd9 | |||
| a31b74e0e5 | |||
| 5e3d421b56 | |||
| 71ca033b08 | |||
| 
						 | 
					2c774e814e | ||
| 3034ba411f | |||
| ce6e51df87 | |||
| 
						 | 
					6843b4cb2a | ||
| dcbce270ad | |||
| 3f5a6c6b15 | |||
| d806551477 | |||
| 120ce40dbe | |||
| 22022e5143 | |||
| 47615e2e5d | |||
| 46c6d0e293 | |||
| 20fcaa5428 | |||
| bb0a04b19a | |||
| 8d3ba314e0 | |||
| 9e48a1db0a | |||
| 475585c5e7 | |||
| a2e086be75 | |||
| e6cf1994b0 | |||
| bea0b69858 | |||
| 95547e961e | |||
| c4a859f2d2 | |||
| a39bd79930 | |||
| 424d0533b8 | |||
| 5a7d187a10 | |||
| dc8dd6a423 | |||
| 006e8cdc27 | |||
| 819017112d | |||
| cf4f6f06e9 | |||
| e467820345 | |||
| 416a1c4e4d | |||
| 1febfc11e5 | |||
| d7d7fb5693 | |||
| 650e0d79be | |||
| a288fdf12d | |||
| 6a3f17962b | |||
| 3860adc435 | |||
| 65daf2d0cf | |||
| 0afccd12a9 | |||
| 7abe3e1b2d | |||
| 6c71cb0e80 | |||
| 11d4450244 | |||
| 5a79df0e0a | |||
| c0c2131be0 | |||
| e6ea2674c2 | |||
| 39b5ce0320 | |||
| e0ee817421 | |||
| 8159144f26 | |||
| 630115fd3a | |||
| 87cf8d737e | |||
| ecda740d81 | |||
| c9e3960238 | |||
| 9bf41bbd34 | |||
| de7de22492 | |||
| ea66fb4c37 | |||
| 782e098e31 | |||
| 34ff91979b | |||
| abcc8557ce | |||
| c1232037a9 | |||
| 15342f85d3 | |||
| b679d833da | |||
| f8ca349d9e | |||
| a8978a52b9 | |||
| b1bffd875c | |||
| b23161fa1d | |||
| e540baaa4f | |||
| 9fe744f09f | |||
| 6b1310148f | |||
| 1650f30a59 | |||
| f6386a13ac | |||
| e437705714 | |||
| f79225fc2b | |||
| 7564c2fde1 | |||
| 2c4d06371c | |||
| 8e012982f5 | |||
| ba893e8429 | |||
| b153fc19f6 | |||
| 098c2fbaa0 | |||
| 479e4ffe64 | |||
| 42a14fbd6b | |||
| 46ca74fc70 | |||
| ae931b5869 | |||
| fded08aaaa | |||
| d60938352b | |||
| af6f3043ae | |||
| 8afd1ee275 | |||
| 5a739380cd | |||
| a1ec2b637d | |||
| 584b77bbf4 | |||
| e84182cdac | |||
| 01d51da7e1 | |||
| 
						 | 
					699dcc85de | ||
| e677c0fe2f | |||
| 
						 | 
					edeaaf0218 | ||
| afae3b58c2 | |||
| 95027e93c6 | |||
| a3ea28d307 | |||
| 
						 | 
					921dd639bf | ||
| a40077e91b | |||
| 8de5c8900a | |||
| efc3e3915b | |||
| 98ab3b66ba | |||
| b1cd85971a | |||
| 0a3b50568d | |||
| 69b5c98d2e | |||
| 5c4bef26e8 | |||
| bdf4b71080 | |||
| c60d46c68b | |||
| be4b8a94f0 | |||
| a54cc70fd6 | |||
| 18959f60e2 | |||
| 7d4ca8d149 | |||
| 442e2a1ede | |||
| c32b767d9b | |||
| 140f53b81f | |||
| b9e5734039 | |||
| f5f5d66f3d | |||
| 1e0c62b09d | |||
| 78cf817921 | |||
| 40a457ba69 | |||
| 66aac8908c | |||
| c17fd968be | |||
| 6f561f57a6 | |||
| 4f1540c541 | |||
| 4ef024516c | |||
| ebc6d21ba6 | |||
| d31661ae7a | |||
| f76f7a1641 | |||
| 
						 | 
					f63afea2ce | ||
| 
						 | 
					660e45ac59 | ||
| 
						 | 
					e619e58a6e | ||
| 160d382e07 | |||
| a8fe049ecd | |||
| 3a207b2c5d | |||
| 
						 | 
					08de360677 | ||
| 
						 | 
					e2ad590310 | ||
| 
						 | 
					6ebcd87508 | ||
| 
						 | 
					06f8014b76 | ||
| 
						 | 
					52f817bde7 | ||
| af2eca0d03 | |||
| 
						 | 
					33913867ee | ||
| bcd25fa950 | |||
| 
						 | 
					acf7142bad | ||
| 
						 | 
					c8c5af8d14 | ||
| 
						 | 
					aa6b770bfe | ||
| 
						 | 
					4d5d5265df | ||
| 
						 | 
					d19c5c9e41 | ||
| 
						 | 
					cf588c97c0 | ||
| 
						 | 
					f3f5cc550c | ||
| 
						 | 
					c7d00ca937 | ||
| 
						 | 
					e3c0dca1d1 | ||
| 
						 | 
					f4c8d0b09a | ||
| 68ea0a1086 | |||
| 5bb5468198 | |||
| 5fead5b467 | |||
| 
						 | 
					72a15bb823 | ||
| 0edd5667e0 | |||
| 862f9aefb0 | |||
| 45dd21e02a | |||
| 5bf1b9d8bd | |||
| 7bc4ad9779 | |||
| 1576507f7e | |||
| 9ddfd194be | |||
| 8fe94bd117 | |||
| 9d638fe897 | |||
| 478c3b3247 | |||
| dc581fcf57 | |||
| bd909b0061 | |||
| 58c7560a1c | |||
| 9e67d9586d | |||
| 982dd78828 | |||
| 1055fd9398 | |||
| 5089bba4d7 | |||
| 433307020a | |||
| 5a5ff5f54a | |||
| a0b112e8db | |||
| cb88a37885 | |||
| 9647785d8b | |||
| 1ad6a958e2 | |||
| f453dbb543 | |||
| b323ddae05 | |||
| d5d64cdf65 | |||
| 700bb02374 | |||
| bd3919efcb | |||
| f6f0786d38 | |||
| 5cebcfddb7 | |||
| 11824adda4 | |||
| d62893827b | |||
| e972beee11 | |||
| 
						 | 
					6a0ce72836 | ||
| 
						 | 
					f93b1935ee | ||
| 
						 | 
					64ec3e62da | ||
| 
						 | 
					492d5caaf0 | ||
| 
						 | 
					2ed3a91d8e | ||
| 
						 | 
					b55c19cd9e | ||
| 
						 | 
					70ca203e23 | ||
| 
						 | 
					58a13d932f | ||
| 
						 | 
					11c6f6d84a | ||
| 
						 | 
					3d0be940f0 | ||
| 
						 | 
					ea839a4b52 | ||
| 793f7724a7 | |||
| 40e7bfef4d | |||
| 
						 | 
					d692793714 | ||
| 
						 | 
					01ef9617d6 | ||
| 
						 | 
					530ad497bc | ||
| 
						 | 
					e2bc868495 | ||
| 
						 | 
					b743475761 | ||
| 
						 | 
					b3823161af | ||
| 
						 | 
					beeb69c70d | ||
| 
						 | 
					8401ce2656 | ||
| 
						 | 
					b7360955f7 | ||
| 
						 | 
					8c3fb6dfa7 | ||
| 
						 | 
					c84ba5371d | ||
| 
						 | 
					4d9c643977 | ||
| f117dcd703 | |||
| 67c1760b51 | |||
| 97792fd85f | |||
| ae43e23ec6 | |||
| 6a4d7fbece | |||
| 1a0dcfa8d0 | |||
| 66f407ab8c | |||
| c7e992fd1a | |||
| 3d16f68f54 | |||
| 36890a2256 | |||
| 395920bd51 | |||
| 773aee5534 | |||
| a6cc6221d6 | |||
| 37ed6b7591 | |||
| cdc335372f | |||
| e0bed186b8 | |||
| d588c36308 | |||
| 06cbe8325c | |||
| 400ce3ac82 | |||
| 14aab637eb | |||
| 6296c7a307 | |||
| b613a2f49b | |||
| 91bee4aad3 | |||
| 45b71b207e | |||
| 751a418c1f | |||
| 8cf08f66d5 | |||
| b7c0548212 | |||
| 408a14926f | |||
| efdd96b69f | |||
| 10ebf0b63a | |||
| d4a5735e15 | |||
| 9453fc2dd5 | |||
| f01b87b348 | |||
| 689f612382 | |||
| 17a81d7e66 | |||
| 6501a0148e | |||
| 44d38bcef5 | |||
| 75dda5b999 | |||
| 46ecab24c2 | |||
| 45c608cd48 | |||
| ecbe30ae53 | |||
| 4e8492db70 | |||
| 48f62a2a17 | |||
| decc74c040 | |||
| de790d11a8 | |||
| 3a9fac08c3 | |||
| f4fe297765 | |||
| 264bd76461 | |||
| 45bcb27b79 | |||
| cf22a49487 | |||
| e71e369f15 | |||
| 1a604ecf65 | |||
| da7bfa8a4e | |||
| d3127bed6d | |||
| 3c1c07dc64 | |||
| 530267a9b0 | |||
| f9dd1c5231 | |||
| f2fd30b690 | |||
| 3d3cc9aeb4 | |||
| 8b2a8544b8 | |||
| be5f54c142 | |||
| 1fbe044729 | |||
| 60032c96f7 | |||
| 976f2fd41a | |||
| 19741530bf | |||
| 6e079fa771 | |||
| 8c14232a91 | |||
| a983b34f0d | |||
| 4970cf000e | |||
| 1422ddeb2a | |||
| 9afc8c64ad | |||
| 200f1749f1 | |||
| 4645ede7d1 | |||
| 6016038813 | |||
| d40b0e88ed | |||
| f26863487b | |||
| 5b531a0529 | |||
| a25123ee38 | |||
| 2524229941 | |||
| 119a9981af | |||
| decc18596b | |||
| eea72c9bcd | |||
| 717b71ff54 | |||
| 64015479b1 | |||
| 18fa4eb586 | |||
| 47574f82aa | |||
| 12309ca1b5 | |||
| 20c95a179d | |||
| d5290e4bdd | |||
| f4396459a0 | |||
| f8071d32c0 | |||
| 4dc490beb7 | |||
| 52a137ee77 | |||
| 985d8f0eae | |||
| 
						 | 
					f0a8aa6c90 | ||
| 
						 | 
					bbebaa9fae | ||
| 5526790d42 | |||
| 
						 | 
					159dba0dc3 | ||
| 550b4775bf | |||
| 
						 | 
					f2c724726a | ||
| 133e4858dc | |||
| b3ee745479 | |||
| 
						 | 
					13faf6fe5a | ||
| 
						 | 
					da12aedb53 | ||
| 
						 | 
					af87b3f6da | ||
| 
						 | 
					872090e02a | ||
| 
						 | 
					4b432c64b0 | ||
| 
						 | 
					8493a64794 | ||
| 
						 | 
					82c027fe2a | ||
| 7f2e3ee8e2 | |||
| 7129b3149b | |||
| 
						 | 
					1e99ca2ca5 | ||
| cc42a4ae51 | |||
| 6c28ff00ab | |||
| d7db8400d2 | |||
| 16b3be322a | |||
| 329026e36c | |||
| 19a53ada88 | |||
| 4c31100dc7 | |||
| 536a1a46da | |||
| 5ed7572f95 | |||
| f1067661d4 | |||
| 3592434623 | |||
| 94ec165c4c | |||
| 1c3c2be176 | |||
| edaad844aa | |||
| 2edf36b6c5 | |||
| 95e45a8ad2 | |||
| 9004686a13 | |||
| e266fa0e5d | |||
| 75ba56fa09 | |||
| 12d6829b98 | |||
| 7b5e96771f | |||
| 8a9024de13 | |||
| 9387d37746 | |||
| 24a404964b | |||
| 534a8bb3af | |||
| 21e3da0266 | |||
| 85a1fcca18 | |||
| 793f5116ab | |||
| 5d24bd4d11 | |||
| 70ab232149 | |||
| 027c01fc58 | |||
| fdc5127c74 | |||
| b8d48f04ae | |||
| f1b1771d6b | |||
| 62dabbe1e7 | |||
| 4101392190 | |||
| 3f1bed0b1c | |||
| 79fbdcdee4 | |||
| 3d8d79323e | |||
| 32178e22fe | |||
| 60a8c20896 | |||
| 9d8011da61 | |||
| 789eeadb40 | |||
| f206fdb08c | |||
| 9d5409d8d9 | |||
| e297d82533 | |||
| 32a7734d30 | |||
| 
						 | 
					8affeb08d9 | ||
| 
						 | 
					047083812e | ||
| 75eb6414ce | |||
| 5e7445a4fe | |||
| c527b1b3cf | |||
| acacef936c | |||
| f971dc05eb | |||
| 
						 | 
					49da5fe060 | ||
| 
						 | 
					bcdddcde9b | ||
| 
						 | 
					64d3edfc42 | ||
| 
						 | 
					912f9bacdb | ||
| 
						 | 
					55e94fbe2a | ||
| 
						 | 
					c5acfc9bbc | ||
| 
						 | 
					780b7db8cb | ||
| 
						 | 
					d71d1beb42 | ||
| 
						 | 
					3d3ce7814b | ||
| 
						 | 
					438cb7317a | ||
| 9aba4ea8f6 | 
							
								
								
									
										64
									
								
								.env
									
									
									
									
									
								
							
							
						
						
									
										64
									
								
								.env
									
									
									
									
									
								
							@@ -1,64 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
##  Manually dump .env files in .env.local.php with
 | 
			
		||||
## `$ composer symfony:dump-env prod`
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
## Project environment
 | 
			
		||||
APP_ENV=dev
 | 
			
		||||
 | 
			
		||||
## Enable debug
 | 
			
		||||
APP_DEBUG=true
 | 
			
		||||
 | 
			
		||||
## Locale
 | 
			
		||||
LOCALE=fr
 | 
			
		||||
 | 
			
		||||
## Framework secret
 | 
			
		||||
APP_SECRET=ThisTokenIsNotSoSecretChangeIt
 | 
			
		||||
 | 
			
		||||
## Symfony/swiftmailer
 | 
			
		||||
MAILER_TRANSPORT=smtp
 | 
			
		||||
MAILER_HOST=smtp
 | 
			
		||||
MAILER_PORT=1025
 | 
			
		||||
MAILER_CRYPT=
 | 
			
		||||
MAILER_AUTH=
 | 
			
		||||
MAILER_USER=
 | 
			
		||||
MAILER_PASSWORD=
 | 
			
		||||
MAILER_URL=${MAILER_TRANSPORT}://${MAILER_HOST}:${MAILER_PORT}?encryption=${MAILER_CRYPT}&auth_mode=${MAILER_AUTH}&username=${MAILER_USER}&password=${MAILER_PASSWORD}
 | 
			
		||||
 | 
			
		||||
## Notifications
 | 
			
		||||
NOTIFICATION_HOST=localhost:8001
 | 
			
		||||
NOTIFICATION_FROM_EMAIL=admin@chill.social
 | 
			
		||||
NOTIFICATION_FROM_NAME=Chill
 | 
			
		||||
 | 
			
		||||
## Gelf
 | 
			
		||||
GELF_HOST=gelf
 | 
			
		||||
GELF_PORT=12201
 | 
			
		||||
 | 
			
		||||
## OVH OpenStack Storage User/Role
 | 
			
		||||
OS_USERNAME=
 | 
			
		||||
OS_PASSWORD=
 | 
			
		||||
OS_TENANT_ID=
 | 
			
		||||
OS_REGION_NAME=GRA
 | 
			
		||||
OS_AUTH_URL=https://auth.cloud.ovh.net/v2.0/
 | 
			
		||||
 | 
			
		||||
## OVH OpenStack Storage Container
 | 
			
		||||
ASYNC_UPLOAD_TEMP_URL_KEY=
 | 
			
		||||
ASYNC_UPLOAD_TEMP_URL_BASE_PATH=
 | 
			
		||||
ASYNC_UPLOAD_TEMP_URL_CONTAINER=
 | 
			
		||||
 | 
			
		||||
## Redis Cache
 | 
			
		||||
REDIS_HOST=redis
 | 
			
		||||
REDIS_PORT=6379
 | 
			
		||||
REDIS_URL=redis://${REDIS_HOST}:${REDIS_PORT}
 | 
			
		||||
 | 
			
		||||
## Twilio
 | 
			
		||||
TWILIO_SID=~
 | 
			
		||||
TWILIO_SECRET=~
 | 
			
		||||
 | 
			
		||||
## DOCKER IMAGES REGISTRY
 | 
			
		||||
#IMAGE_PHP=
 | 
			
		||||
#IMAGE_NGINX=
 | 
			
		||||
 | 
			
		||||
## DOCKER IMAGES VERSION
 | 
			
		||||
#VERSION=test
 | 
			
		||||
VERSION=prod
 | 
			
		||||
@@ -3,4 +3,3 @@
 | 
			
		||||
# Run tests from root to adapt your own environment
 | 
			
		||||
KERNEL_CLASS='App\Kernel'
 | 
			
		||||
APP_SECRET='$ecretf0rt3st'
 | 
			
		||||
DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres?serverVersion=12&charset=utf8
 | 
			
		||||
 
 | 
			
		||||
@@ -20,6 +20,8 @@ variables:
 | 
			
		||||
    # Configure postgres environment variables (https://hub.docker.com/r/_/postgres/)
 | 
			
		||||
    POSTGRES_USER: postgres
 | 
			
		||||
    POSTGRES_PASSWORD: postgres
 | 
			
		||||
    # configure database access
 | 
			
		||||
    DATABASE_URL: postgresql://postgres:postgres@db:5432/postgres?serverVersion=12&charset=utf8
 | 
			
		||||
    # fetch the chill-app using git submodules
 | 
			
		||||
    GIT_SUBMODULE_STRATEGY: recursive
 | 
			
		||||
    REDIS_HOST: redis
 | 
			
		||||
@@ -27,6 +29,7 @@ variables:
 | 
			
		||||
    REDIS_URL: redis://redis:6379
 | 
			
		||||
    # change vendor dir to make the app install into tests/apps
 | 
			
		||||
    COMPOSER_VENDOR_DIR: tests/app/vendor
 | 
			
		||||
    DEFAULT_CARRIER_CODE: BE
 | 
			
		||||
 | 
			
		||||
stages:
 | 
			
		||||
    - Composer install
 | 
			
		||||
@@ -60,7 +63,7 @@ code_style:
 | 
			
		||||
            - bin
 | 
			
		||||
            - tests/app/vendor/
 | 
			
		||||
 | 
			
		||||
sa_tests:
 | 
			
		||||
phpstan_tests:
 | 
			
		||||
    stage: Tests
 | 
			
		||||
    image: registry.gitlab.com/chill-projet/chill-app/php-base-image:7.4
 | 
			
		||||
    script:
 | 
			
		||||
@@ -71,6 +74,18 @@ sa_tests:
 | 
			
		||||
            - bin
 | 
			
		||||
            - tests/app/vendor/
 | 
			
		||||
 | 
			
		||||
psalm_tests:
 | 
			
		||||
    stage: Tests
 | 
			
		||||
    image: registry.gitlab.com/chill-projet/chill-app/php-base-image:7.4
 | 
			
		||||
    script:
 | 
			
		||||
        - bin/grumphp run --tasks=psalm
 | 
			
		||||
    allow_failure: true
 | 
			
		||||
    artifacts:
 | 
			
		||||
        expire_in: 30 min
 | 
			
		||||
        paths:
 | 
			
		||||
            - bin
 | 
			
		||||
            - tests/app/vendor/
 | 
			
		||||
 | 
			
		||||
unit_tests:
 | 
			
		||||
    stage: Tests
 | 
			
		||||
    image: registry.gitlab.com/chill-projet/chill-app/php-base-image:7.4
 | 
			
		||||
@@ -79,7 +94,7 @@ unit_tests:
 | 
			
		||||
        - php -d memory_limit=2G tests/app/bin/console cache:clear --env=dev
 | 
			
		||||
        - php -d memory_limit=3G tests/app/bin/console doctrine:fixtures:load -n
 | 
			
		||||
        - php -d memory_limit=2G tests/app/bin/console cache:clear --env=test
 | 
			
		||||
        - php -d memory_limit=3G bin/phpunit --colors=never
 | 
			
		||||
        - php -d memory_limit=4G bin/phpunit --colors=never
 | 
			
		||||
    artifacts:
 | 
			
		||||
        expire_in: 30 min
 | 
			
		||||
        paths:
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										245
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										245
									
								
								CHANGELOG.md
									
									
									
									
									
								
							@@ -11,9 +11,246 @@ and this project adheres to
 | 
			
		||||
## Unreleased
 | 
			
		||||
 | 
			
		||||
<!-- write down unreleased development here -->
 | 
			
		||||
* [person] Add document generation in admin and in person/{id}/document (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/464)
 | 
			
		||||
* [activity] do not override location if already exist (when validating new activity) (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/470)
 | 
			
		||||
* [parcours] Toggle emergency/intensity only by referrer (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/442)
 | 
			
		||||
* [docstore] Add an API entrypoint for StoredObject (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/466)
 | 
			
		||||
* [person] Add the possibility of uploading existing documents to AccPeriodWorkEvaluationDocument (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/466)
 | 
			
		||||
* [person] Add title to AccPeriodWorkEvaluationDocument (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/466)
 | 
			
		||||
* [person] Order social issues by the field "ordering" (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/388)
 | 
			
		||||
* [Person/Household list] when listing other simultaneous members of an household, exclude the members on person, not on members (avoid to show two membersship with the same person)
 | 
			
		||||
* [draft periods] add a delete button (if acl granted) on each draft period listed on draft period page (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/463)
 | 
			
		||||
* [Person] Display suffixText in RenderPerson, PersonText.vue, RenderPersonBox.vue (was made for displaying "enfant confie") (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/441)
 | 
			
		||||
* [person] residential address: show residential address or info in PersonRenderBox, refactor Residential Address (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/439)
 | 
			
		||||
* [thirdparty] Add a contact to a thirdparty from within onTheFly (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/345)
 | 
			
		||||
* [documents] Improve flex-table item-col placement when long buttons and long metadata
 | 
			
		||||
* [thirdparty] Fix display of multiple contact badges so they wrap onto next line (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/482)
 | 
			
		||||
* [confidential] Fix position of toggle button so it does not cover text nor fall outside of box (no issue)
 | 
			
		||||
* [parcours] Fix edit of both thirdparty and contact name (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/474)
 | 
			
		||||
* [template] do not list inactive templates (for doc generator)
 | 
			
		||||
* [thirdparty] Bugfix phonenumber -> telephone for thirdparty (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/487)
 | 
			
		||||
 | 
			
		||||
## Test releases
 | 
			
		||||
 | 
			
		||||
### test release 2022-02-21
 | 
			
		||||
 | 
			
		||||
* [notifications] Word 'un' changed to number '1' for notifications in user menu (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/483)
 | 
			
		||||
* [documents] 'gabarit' changed to 'modèle' (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/405)
 | 
			
		||||
* [person_resources] Menu name and order changed (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/460)
 | 
			
		||||
* workflow: fix sending notifications
 | 
			
		||||
* [thirdparty] Extend the thirdparty search to thirdparty children (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/448)
 | 
			
		||||
* [person]: AddPersons: allow creation of person or thirdparty only (no users) (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/422)
 | 
			
		||||
* [person]: AddPersons: allow creation of person or thirdparty depending on allowed types (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/422)
 | 
			
		||||
* [person]: AddPersons: add suggestion of name when creating new person or thirdparty (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/422)
 | 
			
		||||
* [main] Address: fix small bug: when modifying an address without street (isNoAddress), also check errors if street is an empty string as back-end change null value to empty string for street (and streetNumber)
 | 
			
		||||
* [main] Address: stronger client-side validation of addresses (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/449)
 | 
			
		||||
* [person] accompanying course: filter suggested entities by open participations (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/415)
 | 
			
		||||
[activity] can click through the cross icon for removing person in concerned group (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/476)
 | 
			
		||||
[activity] correct associated persons by considering only open participations (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/476)
 | 
			
		||||
* [person_resources]: Renderboxes used to display person/thirdparty info (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/465)
 | 
			
		||||
* [Household]: Add end date in HouseholdMember form for 'enfant hors menage' (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/434)
 | 
			
		||||
* [homepage_widget]: If no sender then display as 'notification automatique' (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/435)
 | 
			
		||||
* [parcours]: Order social activities and only display most recent three in parcours resumé (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/481)
 | 
			
		||||
* [3party]: 3party: redirect to parent when contact (child) is opened in view page
 | 
			
		||||
* [parcours / addresses]: launch an event when a person change address (either through changing household or because the household is associated to a new address). If the person is localising a course, the course location go back to a temporarily address.
 | 
			
		||||
* [thirdparty]: address/phonenumber/email/fonction displayed in thirdpartyrenderbox (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/401)
 | 
			
		||||
* [thirdparty_contact]: in search results the 'qualité' is displayed (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/465)
 | 
			
		||||
* [bug]: fix confidential toggle of address in thirdpartyrenderbox (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/460)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Test releases
 | 
			
		||||
* Creation of PickCivilityType, and implementation in PersonType and ThirdpartyType
 | 
			
		||||
 | 
			
		||||
### test release 2022-02-14
 | 
			
		||||
 | 
			
		||||
* AddPersons: remove ul-li html tags from AddPersons (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/419)
 | 
			
		||||
* [doc-generator] do not set required fields for mainPerson, person1, person2 (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement#456)
 | 
			
		||||
* [doc-generation] add age and obele in the mainPerson, person1 and person2 list + add obele in person renderString if addAge (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/370)
 | 
			
		||||
* [person] accompanying course work: fix on-the-fly update of thirdParty
 | 
			
		||||
* fix normalisation of accompanying course requestor api (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/378)
 | 
			
		||||
* [person] add a returnPath when clicking on some Person or ThirdParty badge (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/427)
 | 
			
		||||
* [person] accompanying course work: fix on-the-fly update of thirdParty
 | 
			
		||||
* [on-the-fly] close modal only after validation
 | 
			
		||||
* [person] correct thirdparty PATCH url + add email and altnames in AddPerson and serializer (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/433)
 | 
			
		||||
* change order for accompanying course work list
 | 
			
		||||
* [parcours]: Mes parcours brouillon added to user menu (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/440)
 | 
			
		||||
* [Documents]: List view adapted to display more information (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/414)
 | 
			
		||||
* [person]: style fix in parcours listing per person. (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/432)
 | 
			
		||||
* [parcours]: Only the referrer can toggle the intensity of the parcours (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/442)
 | 
			
		||||
* [household]: display address of current household (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/415)
 | 
			
		||||
* ajoute un ordre dans les localisation (api)
 | 
			
		||||
* [pick entity]: fix translations in modal (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/419)
 | 
			
		||||
* [homepage_widget]: fix translation on emergency badge (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/440)
 | 
			
		||||
* [person]: create person and household added to button dropdown (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/454)
 | 
			
		||||
* display full address in address.text in normalization. Adapt AddressRenderBox
 | 
			
		||||
* [address]: Correction residential address 'depuis le' (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/459)
 | 
			
		||||
* [Documents]: List view adapted to display more information (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/414)
 | 
			
		||||
* [Thirdparty_contact]: address blurred if confidential in view page (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/450)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### test release 2021-02-01
 | 
			
		||||
 | 
			
		||||
* renommer "dossier numéro" en "parcours numéro" dans les résultats de recherche
 | 
			
		||||
* renomme date de début en date d'ouverture dans le formulaire parcours
 | 
			
		||||
* [homepage widget] improve content tables, improve counter pluralization with style on number
 | 
			
		||||
* [notification lists] add comments counter information
 | 
			
		||||
* [workflows] fix popover header with previous transition
 | 
			
		||||
* [parcours]: validation + message for closing parcours adjusted.
 | 
			
		||||
* [household]: household composition double edit button replaced by a delete action (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/426)
 | 
			
		||||
[fast_actions] improve fast-actions buttons override mechanism, fix https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/413
 | 
			
		||||
[homepage widget] add vue homepage_widget with asynchone loading, give a global view resume of the user concerned actions, notifications, etc.
 | 
			
		||||
* [person]: Comment on marital status is possible even if marital status is not defined (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/421)
 | 
			
		||||
* [parcours]: In the list of person results the requestor is not displayed if defined as anonymous (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/424)
 | 
			
		||||
* [bugfix]: modal closes and newly created person/thirdparty is selected when multiple persons/thirdparties are created through the modal (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/429)
 | 
			
		||||
* [person_resource]: Onthefly button added to view person/thirdparty and badge differentiation for a contact-thirdparty (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/428)
 | 
			
		||||
* [workflow][notification] improve how notifications and workflows are 'attached' to entities: contextual list, counter, buttons and vue modal
 | 
			
		||||
* [AddAddress] disable multiselect search, and rely only on most pertinent Cities and Street computed backend
 | 
			
		||||
* [fast_actions] improve fast-actions buttons override mechanism, fix https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/413
 | 
			
		||||
* [homepage widget] add vue homepage_widget with asynchone loading, give a global view resume of the user concerned actions, notifications, etc.
 | 
			
		||||
* [thirdparty] Add a contact to a thirdparty from within onTheFly (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/345)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Test releases
 | 
			
		||||
=======
 | 
			
		||||
* [homepage widget] add vue homepage_widget with asynchone loading, give a global view resume of the user concerned actions, notifications, etc.
 | 
			
		||||
>>>>>>> issue422_and_others_on_AddPersons
 | 
			
		||||
 | 
			
		||||
=======
 | 
			
		||||
* [homepage widget] add vue homepage_widget with asynchone loading, give a global view resume of the user concerned actions, notifications, etc.
 | 
			
		||||
* [thirdparty] Add a contact to a thirdparty from within onTheFly (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/345)
 | 
			
		||||
 | 
			
		||||
>>>>>>> b0d50d315c8e00959a967badac9cf5057ab2b4bc
 | 
			
		||||
### test release 2021-01-31
 | 
			
		||||
 | 
			
		||||
* [person] accompanying course: optimisation: do not fetch some resources for the banner (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/409)
 | 
			
		||||
* [person] accompanying course: close modal when edit participation (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/420)
 | 
			
		||||
* [person] accompanying course: treat validation error when editing on-the-fly entities (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/420)
 | 
			
		||||
* [activity] show activity attendee (présence) in the activity list (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/412)
 | 
			
		||||
* [activity] admin: change validation rule for social action visible field (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/413)
 | 
			
		||||
* [parcours]: component added to change the opening date of a parcours (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/411)
 | 
			
		||||
* [search]: listing of parcours display changed (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/410)
 | 
			
		||||
* [user]: page with accompanying periods to which is user is referent (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/408)
 | 
			
		||||
* [person] age added to renderstring + renderbox/ vue component created to display person text (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/389)
 | 
			
		||||
* [household member editor] allow to push to existing household
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### test release 2021-01-28
 | 
			
		||||
 | 
			
		||||
* [person] improve filiations vis graph: disable physics, use chill colors for persons-households-course, increase label of relations, remove labels on household arrows and other improvements (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/286, https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/362)
 | 
			
		||||
* [activity] Order activity by date and by id (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/364)
 | 
			
		||||
* [main] increase length of 4 Address fields (change to TEXT, no size limits) (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/277)
 | 
			
		||||
* [main] Add confidential option for address, in edit and view (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/165)
 | 
			
		||||
* [person] name suggestions within create person form when person is created departing from a search input (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/377)
 | 
			
		||||
* [person] Add residential address entity, form and list for each person
 | 
			
		||||
* [aside_activity]: dynamicUserPickerType used (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/399)
 | 
			
		||||
* dispatching list
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### test release 2021-01-26
 | 
			
		||||
 | 
			
		||||
* [parcours] comments truncated if too long + link added (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/406)
 | 
			
		||||
* [person]: possibility to add person resources (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/382)
 | 
			
		||||
* [person ressources]: module added
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### test release 2022-01-24
 | 
			
		||||
 | 
			
		||||
* [person] name suggestions within create person form when person is created departing from a search input (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/377)
 | 
			
		||||
* [notification: formulaire création] descend la box avec la description dans le bas du formulaire
 | 
			
		||||
* [notification for activity]: fix link to activity
 | 
			
		||||
* [notification] add "URGENT" before accompanying course with emergency = true
 | 
			
		||||
* [notification] add a "read more" button on system notification
 | 
			
		||||
* [notification] add `[Chill]` in the subject of each notification, automatically
 | 
			
		||||
* [notification] add a counter for notification in activity list and accompanying period list, and search results
 | 
			
		||||
* [parcours] bugfix if deathdate is not defined (eg. for a thirdparty) parcours is still displayed. Gave error before.
 | 
			
		||||
* [workflow] add breadcrumb to show steps
 | 
			
		||||
* [popover] add popover html popup mechanism (used by workflow breadcrumb)
 | 
			
		||||
* [templates] improve updatedBy macro in item metadatas
 | 
			
		||||
* [parcours]: bug fix when comment is pinned all other comments remain in the collection (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/385)
 | 
			
		||||
* [workflow]
 | 
			
		||||
  * add My workflow section with my opened subscriptions
 | 
			
		||||
  * apply workflow on documents, accompanyingCourseWork and Evaluations
 | 
			
		||||
* [wopi-link] a new vue component allow to open wopi link in a fullscreen chill-themed modal
 | 
			
		||||
 | 
			
		||||
### test release 2022-01-19
 | 
			
		||||
* vuejs: add dead information on all on-the-fly person render boxes, in vis graph and other templates (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/271)
 | 
			
		||||
* [thirdparty] fix bug in 3rd party view: types was replaced by thirdPartyTypes
 | 
			
		||||
* [main] location form type: fix unmapped address field (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/246)
 | 
			
		||||
* [activity] fix wrong import of js assets for adding and viewing documents in activity (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/83 & https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/176)
 | 
			
		||||
* [person]: space added between deathdate and age in twig renderbox (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/380)
 | 
			
		||||
* [forms] dynamic picker types for user/person/thirdparty types created (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/386)
 | 
			
		||||
 | 
			
		||||
### test release 2022-01-17
 | 
			
		||||
 | 
			
		||||
* [main] Add editableByUser field to locationType entity, adapt the admin template and add this condition in the location-type endpoint (see https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/297)
 | 
			
		||||
* [main] Add mainLocation field to User entity and add it in user form type
 | 
			
		||||
* rewrite page which allow to select activity
 | 
			
		||||
* [main] Add mainLocation field to User entity and add it in user form type
 | 
			
		||||
* [course list in person context] show full username/label for ref
 | 
			
		||||
* [accompanying period work] remove the possibility to  generate document from an accompanying period work
 | 
			
		||||
* vuejs: add validation on required fields for AddPerson, Address and Location components
 | 
			
		||||
* vuejs: treat 422 validation errors in locations and AddPerson components
 | 
			
		||||
* [person]: space added between deathdate and age in twig renderbox (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/380)
 | 
			
		||||
 | 
			
		||||
## Test releases
 | 
			
		||||
* vuejs: add validation on required fields for AddPerson, Address and Location components
 | 
			
		||||
* vuejs: treat 422 validation errors in locations and AddPerson components
 | 
			
		||||
* [person]: space added between deathdate and age in twig renderbox (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/380)
 | 
			
		||||
 | 
			
		||||
### test release 2022-01-12
 | 
			
		||||
 | 
			
		||||
* fix thirdparty normalizer on telephone field: https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/322
 | 
			
		||||
 | 
			
		||||
### test release 2022-01-11
 | 
			
		||||
 | 
			
		||||
* vuejs: translate in French all multiselect widgets
 | 
			
		||||
* [address] define address lines according postal standards for France and Belgium (default) and change AddressRender, chill_entity_render_box and AddressRenderBox.vue
 | 
			
		||||
* [household] change translations (champs-libres/departement-de-la-vendee/accent-suivi-developpement#109)
 | 
			
		||||
* [household] add address i18n in household component (champs-libres/departement-de-la-vendee/accent-suivi-developpement#158)
 | 
			
		||||
* [household] add on the fly i18n in household component
 | 
			
		||||
* [household] redirect to the household page when a household is created from a person (champs-libres/departement-de-la-vendee/accent-suivi-developpement#175)
 | 
			
		||||
* [household] household member editor: display alert if some members have already an household (champs-libres/departement-de-la-vendee/accent-suivi-developpement#172)
 | 
			
		||||
* [household] household member editor: do not add in new members if the member is included in the members of household (champs-libres/departement-de-la-vendee/accent-suivi-developpement#123)
 | 
			
		||||
* [household] household member editor: remove markNoAddress button (champs-libres/departement-de-la-vendee/accent-suivi-developpement#109)
 | 
			
		||||
* [person]: ordering fields in add person (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/61)
 | 
			
		||||
* [person]: Add email and alt names in add person (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/61)
 | 
			
		||||
* [accompanyingCourse] Add a delete action and delete buttons to delete a accompanying course when step = DRAFT (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/64)
 | 
			
		||||
* [accompanyingCourse] Add a administrative location in the accompanying course, set the user current location as default, allow to select a location in a select field and do not allow to confirm the accompanying course if location is empty.
 | 
			
		||||
* [accompanyingCourse] Add the administrative location in the available variables for document generation
 | 
			
		||||
* AddAddress: optimize loading: wait for the user finish typing;
 | 
			
		||||
* UserPicker: fix bug with deprecated role
 | 
			
		||||
* docgen: add base context + tests
 | 
			
		||||
* docgen: add age for person
 | 
			
		||||
* [household menu] fix filiation order https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/265
 | 
			
		||||
* [AddAddress]: optimize loading: wait for the user finish typing;
 | 
			
		||||
* [UserPicker]: fix bug with deprecated role
 | 
			
		||||
* [docgen]: add base context + tests
 | 
			
		||||
* [docgen]: add age for person
 | 
			
		||||
* [task]: fix dropdown menu style + fix bug in singleTaskController (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/338)
 | 
			
		||||
* Household: fix bug when moving person on the same day (see https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/281)
 | 
			
		||||
* Household: show date validFrom and validTo when moving
 | 
			
		||||
* address reference: add index for refid
 | 
			
		||||
* [accompanyingCourse_work] fix styles conflicts + fix bug with remove goal (remove goals one at a time)
 | 
			
		||||
* [accompanyingCourse] improve masonry on resume page, add origin
 | 
			
		||||
* [notification] new notification interface, can be associated to AccompanyingCourse/Period, Activities.
 | 
			
		||||
  * List notifications, show, and comment in User section
 | 
			
		||||
  * Notify button and contextual notification box on associated objects pages
 | 
			
		||||
* [accompanyingCourse] add a comment for each resource associated. A modal allow to save comment. Comment is displayed in on-the-fly show modal of the accompanyingCourse context (edit page + resume page).
 | 
			
		||||
 | 
			
		||||
### test release 2021-12-14
 | 
			
		||||
 | 
			
		||||
* [asideactivity] creation of aside activity category fixed (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/262)
 | 
			
		||||
* [vendee/person] fix typo "situation professionelle" => "situation professionnelle"
 | 
			
		||||
* [main] add availableForUsers condition from locationType in the location API endpoint (champs-libres/departement-de-la-vendee/accent-suivi-developpement#248)
 | 
			
		||||
* [main] add the current location of the user as API point + add it in the activity location list (champs-libres/departement-de-la-vendee/accent-suivi-developpement#247)
 | 
			
		||||
* [activity] improve show/new/edit templates, fix SEE and SEE_DETAILS acl
 | 
			
		||||
* [badges] create specific badge for TMS, and make person/thirdparty badges clickable with on-the-fly modal in :
 | 
			
		||||
    * concerned groups items (activity, calendar)
 | 
			
		||||
    * accompanyingCourseWork lists
 | 
			
		||||
    * accompanyingCourse lists
 | 
			
		||||
* [acompanyingCourse] add initial comment on Resume page
 | 
			
		||||
* [person] create button full width (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/330)
 | 
			
		||||
 | 
			
		||||
### test release 2021-12-11
 | 
			
		||||
 | 
			
		||||
* [main] add order field to civility
 | 
			
		||||
@@ -34,6 +271,9 @@ and this project adheres to
 | 
			
		||||
* [person] add death information in person render box in twig and vue render boxes (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/191)
 | 
			
		||||
* [asideactivity] creation of aside activity category fixed (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/262)
 | 
			
		||||
* [vendee/person] fix typo "situation professionelle" => "situation professionnelle"
 | 
			
		||||
* [accompanyingcourse_work] Changes in layout/behavior of edit form (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/321)
 | 
			
		||||
* [badge-entity] design coherency between pills badge-person and 3 kinds of badge-thirdparty
 | 
			
		||||
* [AddPersons] suggestions row are clickable, not only checkbox
 | 
			
		||||
 | 
			
		||||
### test release 2021-12-06
 | 
			
		||||
 | 
			
		||||
@@ -50,10 +290,6 @@ and this project adheres to
 | 
			
		||||
* [visgraph] improve and fix bugs on vis-network relationship graph
 | 
			
		||||
* [bugfix] posting of birth- and deathdate through api fixed.
 | 
			
		||||
* [suggestions] improve suggestions lists
 | 
			
		||||
* [badge-entity] design coherency between badge-person and 3 kinds of badge-thirdparty
 | 
			
		||||
* [AddPersons] suggestions row are clickable, not only checkbox
 | 
			
		||||
* [activity] improve show/new/edit templates, fix SEE and SEE_DETAILS acl
 | 
			
		||||
* [activity][calendar] concerned groups items are clickable with on-the-fly modal, create specific badge for TMS column
 | 
			
		||||
 | 
			
		||||
### Test release 2021-11-19 - bis
 | 
			
		||||
 | 
			
		||||
@@ -89,6 +325,7 @@ and this project adheres to
 | 
			
		||||
* add an endpoint for checking permissions. See https://gitlab.com/Chill-Projet/chill-bundles/-/merge_requests/232
 | 
			
		||||
* [activity] for a new activity: suggest and create on-the-fly locations based on the accompanying course location + location of the suggested parties
 | 
			
		||||
* [calendar] for a new rdv: suggest and create on-the-fly locations based on the accompanying course location + location of the suggested parties
 | 
			
		||||
* [period] Validation added when period is confidential and confirmed -> user cannot be null.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Test releases
 | 
			
		||||
 
 | 
			
		||||
@@ -397,7 +397,6 @@ Créer une liste de suggestions à enlever (avec une croix rouge cliquable, l'an
 | 
			
		||||
    <li>
 | 
			
		||||
        <span>
 | 
			
		||||
            item
 | 
			
		||||
            <a></a>
 | 
			
		||||
        </span>
 | 
			
		||||
    </li>
 | 
			
		||||
</ul>
 | 
			
		||||
@@ -405,8 +404,8 @@ Créer une liste de suggestions à enlever (avec une croix rouge cliquable, l'an
 | 
			
		||||
Créer un titre enlevable (avec une croix rouge cliquable, l'ancre a est vide)
 | 
			
		||||
```html
 | 
			
		||||
<div class="item-title">
 | 
			
		||||
    title
 | 
			
		||||
    <a></a>
 | 
			
		||||
    <span>title</span>
 | 
			
		||||
</div>
 | 
			
		||||
```
 | 
			
		||||
Les classes `cols` ou `inline` peuvent être ajoutées à côté de `list-suggest` pour modifier la disposition de la liste.
 | 
			
		||||
Dans le dernier exemple, on met une classe `removable` sur le span, si on veut pouvoir enlever l'élément.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,80 +1,85 @@
 | 
			
		||||
{
 | 
			
		||||
    "name": "chill-project/chill-bundles",
 | 
			
		||||
    "type": "library",
 | 
			
		||||
    "description": "Most used bundles for chill-project",
 | 
			
		||||
    "license": "AGPL-3.0-only",
 | 
			
		||||
    "type": "library",
 | 
			
		||||
    "keywords": [
 | 
			
		||||
        "chill",
 | 
			
		||||
        "social worker"
 | 
			
		||||
    ],
 | 
			
		||||
    "license": "AGPL-3.0-only",
 | 
			
		||||
    "require": {
 | 
			
		||||
        "champs-libres/async-uploader-bundle": "dev-sf4",
 | 
			
		||||
        "champs-libres/wopi-bundle": "dev-master",
 | 
			
		||||
        "composer/package-versions-deprecated": "^1.10",
 | 
			
		||||
        "php": "^7.4",
 | 
			
		||||
        "champs-libres/async-uploader-bundle": "dev-sf4#d57134aee8e504a83c902ff0cf9f8d36ac418290",
 | 
			
		||||
        "champs-libres/wopi-bundle": "dev-master#59b468503b9413f8d588ef9e626e7675560db3d8",
 | 
			
		||||
        "champs-libres/wopi-lib": "dev-master#0e1da19bb6de820080b8651867a7e475be590060",
 | 
			
		||||
        "doctrine/doctrine-bundle": "^2.1",
 | 
			
		||||
        "doctrine/doctrine-migrations-bundle": "^3.0",
 | 
			
		||||
        "doctrine/orm": "^2.7",
 | 
			
		||||
        "erusev/parsedown": "^1.7",
 | 
			
		||||
        "graylog2/gelf-php": "^1.5",
 | 
			
		||||
        "knplabs/knp-menu": "^3.1",
 | 
			
		||||
        "knplabs/knp-menu-bundle": "^3.0",
 | 
			
		||||
        "knplabs/knp-time-bundle": "^1.12",
 | 
			
		||||
        "league/csv": "^9.7.1",
 | 
			
		||||
        "nyholm/psr7": "^1.4",
 | 
			
		||||
        "ocramius/package-versions": "^1.10",
 | 
			
		||||
        "odolbeau/phone-number-bundle": "^3.6",
 | 
			
		||||
        "phpoffice/phpspreadsheet": "^1.16",
 | 
			
		||||
        "ramsey/uuid-doctrine": "^1.7",
 | 
			
		||||
        "sensio/framework-extra-bundle": "^5.5",
 | 
			
		||||
        "spomky-labs/base64url": "^2.0",
 | 
			
		||||
        "symfony/asset": "4.*",
 | 
			
		||||
        "symfony/browser-kit": "^5.2",
 | 
			
		||||
        "symfony/css-selector": "^5.2",
 | 
			
		||||
        "symfony/expression-language": "4.*",
 | 
			
		||||
        "symfony/form": "4.*",
 | 
			
		||||
        "symfony/intl": "4.*",
 | 
			
		||||
        "symfony/mime": "^4 || ^5",
 | 
			
		||||
        "symfony/asset": "^4.4",
 | 
			
		||||
        "symfony/browser-kit": "^4.4",
 | 
			
		||||
        "symfony/css-selector": "^4.4",
 | 
			
		||||
        "symfony/expression-language": "^4.4",
 | 
			
		||||
        "symfony/form": "^4.4",
 | 
			
		||||
        "symfony/framework-bundle": "^4.4",
 | 
			
		||||
        "symfony/intl": "^4.4",
 | 
			
		||||
        "symfony/mailer": "^5.4",
 | 
			
		||||
        "symfony/mime": "^5.4",
 | 
			
		||||
        "symfony/monolog-bundle": "^3.5",
 | 
			
		||||
        "symfony/security-bundle": "4.*",
 | 
			
		||||
        "symfony/serializer": "^5.2",
 | 
			
		||||
        "symfony/security-bundle": "^4.4",
 | 
			
		||||
        "symfony/serializer": "^5.3",
 | 
			
		||||
        "symfony/swiftmailer-bundle": "^3.5",
 | 
			
		||||
        "symfony/templating": "4.*",
 | 
			
		||||
        "symfony/translation": "4.*",
 | 
			
		||||
        "symfony/templating": "^4.4",
 | 
			
		||||
        "symfony/translation": "^4.4",
 | 
			
		||||
        "symfony/twig-bundle": "^4.4",
 | 
			
		||||
        "symfony/validator": "4.*",
 | 
			
		||||
        "symfony/validator": "^4.4",
 | 
			
		||||
        "symfony/webpack-encore-bundle": "^1.11",
 | 
			
		||||
        "symfony/workflow": "4.*",
 | 
			
		||||
        "symfony/yaml": "4.*",
 | 
			
		||||
        "twig/extra-bundle": "^2.12 || ^3.0",
 | 
			
		||||
        "symfony/workflow": "^4.4",
 | 
			
		||||
        "symfony/yaml": "^4.4",
 | 
			
		||||
        "twig/extra-bundle": "^3.0",
 | 
			
		||||
        "twig/intl-extra": "^3.0",
 | 
			
		||||
        "twig/markdown-extra": "^3.3",
 | 
			
		||||
        "twig/twig": "^2.12 || ^3.0"
 | 
			
		||||
    },
 | 
			
		||||
    "conflict": {
 | 
			
		||||
        "symfony/symfony": "*"
 | 
			
		||||
        "twig/string-extra": "^3.3",
 | 
			
		||||
        "twig/twig": "^3.0"
 | 
			
		||||
    },
 | 
			
		||||
    "require-dev": {
 | 
			
		||||
        "doctrine/doctrine-fixtures-bundle": "^3.3",
 | 
			
		||||
        "drupol/php-conventions": "^5",
 | 
			
		||||
        "fakerphp/faker": "^1.13",
 | 
			
		||||
        "nelmio/alice": "^3.8",
 | 
			
		||||
        "phpspec/prophecy-phpunit": "^2.0",
 | 
			
		||||
        "phpstan/phpstan-strict-rules": "^1.0",
 | 
			
		||||
        "phpunit/phpunit": "^7.0",
 | 
			
		||||
        "phpunit/phpunit": ">= 7.5",
 | 
			
		||||
        "symfony/debug-bundle": "^5.1",
 | 
			
		||||
        "symfony/dotenv": "^5.1",
 | 
			
		||||
        "symfony/dotenv": "^4.4",
 | 
			
		||||
        "symfony/maker-bundle": "^1.20",
 | 
			
		||||
        "symfony/phpunit-bridge": "^5.2",
 | 
			
		||||
        "symfony/stopwatch": "^5.1",
 | 
			
		||||
        "symfony/var-dumper": "4.*",
 | 
			
		||||
        "symfony/web-profiler-bundle": "^5.0"
 | 
			
		||||
        "symfony/phpunit-bridge": "^4.4",
 | 
			
		||||
        "symfony/stopwatch": "^4.4",
 | 
			
		||||
        "symfony/var-dumper": "^4.4",
 | 
			
		||||
        "symfony/web-profiler-bundle": "^4.4"
 | 
			
		||||
    },
 | 
			
		||||
    "config": {
 | 
			
		||||
        "bin-dir": "bin",
 | 
			
		||||
        "vendor-dir": "tests/app/vendor"
 | 
			
		||||
    "conflict": {
 | 
			
		||||
        "symfony/symfony": "*"
 | 
			
		||||
    },
 | 
			
		||||
    "autoload": {
 | 
			
		||||
        "psr-4": {
 | 
			
		||||
            "Chill\\ActivityBundle\\": "src/Bundle/ChillActivityBundle",
 | 
			
		||||
            "Chill\\AsideActivityBundle\\": "src/Bundle/ChillAsideActivityBundle/src",
 | 
			
		||||
            "Chill\\BudgetBundle\\": "src/Bundle/ChillBudgetBundle",
 | 
			
		||||
            "Chill\\CalendarBundle\\": "src/Bundle/ChillCalendarBundle",
 | 
			
		||||
            "Chill\\CustomFieldsBundle\\": "src/Bundle/ChillCustomFieldsBundle",
 | 
			
		||||
            "Chill\\DocGeneratorBundle\\": "src/Bundle/ChillDocGeneratorBundle",
 | 
			
		||||
            "Chill\\DocStoreBundle\\": "src/Bundle/ChillDocStoreBundle",
 | 
			
		||||
            "Chill\\EventBundle\\": "src/Bundle/ChillEventBundle",
 | 
			
		||||
            "Chill\\FamilyMemberBundle\\": "src/Bundle/ChillFamilyMemberBundle",
 | 
			
		||||
@@ -83,9 +88,6 @@
 | 
			
		||||
            "Chill\\ReportBundle\\": "src/Bundle/ChillReportBundle",
 | 
			
		||||
            "Chill\\TaskBundle\\": "src/Bundle/ChillTaskBundle",
 | 
			
		||||
            "Chill\\ThirdPartyBundle\\": "src/Bundle/ChillThirdPartyBundle",
 | 
			
		||||
            "Chill\\AsideActivityBundle\\": "src/Bundle/ChillAsideActivityBundle/src",
 | 
			
		||||
            "Chill\\DocGeneratorBundle\\": "src/Bundle/ChillDocGeneratorBundle",
 | 
			
		||||
            "Chill\\CalendarBundle\\": "src/Bundle/ChillCalendarBundle",
 | 
			
		||||
            "Chill\\WopiBundle\\": "src/Bundle/ChillWopiBundle/src"
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
@@ -95,12 +97,23 @@
 | 
			
		||||
            "Chill\\DocGeneratorBundle\\Tests\\": "src/Bundle/ChillDocGeneratorBundle/tests"
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "minimum-stability": "dev",
 | 
			
		||||
    "prefer-stable": true,
 | 
			
		||||
    "config": {
 | 
			
		||||
        "allow-plugins": {
 | 
			
		||||
            "composer/package-versions-deprecated": true,
 | 
			
		||||
            "ergebnis/composer-normalize": true,
 | 
			
		||||
            "ocramius/package-versions": true,
 | 
			
		||||
            "phpro/grumphp": true,
 | 
			
		||||
            "phpstan/extension-installer": true
 | 
			
		||||
        },
 | 
			
		||||
        "bin-dir": "bin",
 | 
			
		||||
        "optimize-autoloader": true,
 | 
			
		||||
        "sort-packages": true,
 | 
			
		||||
        "vendor-dir": "tests/app/vendor"
 | 
			
		||||
    },
 | 
			
		||||
    "scripts": {
 | 
			
		||||
        "auto-scripts": {
 | 
			
		||||
            "cache:clear": "symfony-cmd",
 | 
			
		||||
            "assets:install %PUBLIC_DIR%": "symfony-cmd"
 | 
			
		||||
            "assets:install %PUBLIC_DIR%": "symfony-cmd",
 | 
			
		||||
            "cache:clear": "symfony-cmd"
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -91,7 +91,9 @@ class CountPerson implements ExportInterface
 | 
			
		||||
    public function initiateQuery(array $requiredModifiers, array $acl, array $data = [])
 | 
			
		||||
    {
 | 
			
		||||
        // we gather all center the user choose.
 | 
			
		||||
        $centers = array_map(static function ($el) { return $el['center']; }, $acl);
 | 
			
		||||
        $centers = array_map(static function ($el) {
 | 
			
		||||
            return $el['center'];
 | 
			
		||||
        }, $acl);
 | 
			
		||||
 | 
			
		||||
        $qb = $this->entityManager->createQueryBuilder();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -11,53 +11,53 @@ declare(strict_types=1);
 | 
			
		||||
 | 
			
		||||
namespace Chill\MainBundle\DependencyInjection;
 | 
			
		||||
 | 
			
		||||
   use Chill\MainBundle\DependencyInjection\Widget\AddWidgetConfigurationTrait;
 | 
			
		||||
   use Symfony\Component\Config\Definition\Builder\TreeBuilder;
 | 
			
		||||
   use Symfony\Component\Config\Definition\ConfigurationInterface;
 | 
			
		||||
   use Symfony\Component\DependencyInjection\ContainerBuilder;
 | 
			
		||||
use Chill\MainBundle\DependencyInjection\Widget\AddWidgetConfigurationTrait;
 | 
			
		||||
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
 | 
			
		||||
use Symfony\Component\Config\Definition\ConfigurationInterface;
 | 
			
		||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
 | 
			
		||||
 | 
			
		||||
   /**
 | 
			
		||||
    * Configure the main bundle.
 | 
			
		||||
    */
 | 
			
		||||
   class ChillMainConfiguration implements ConfigurationInterface
 | 
			
		||||
   {
 | 
			
		||||
       use AddWidgetConfigurationTrait;
 | 
			
		||||
/**
 | 
			
		||||
 * Configure the main bundle.
 | 
			
		||||
 */
 | 
			
		||||
class ChillMainConfiguration implements ConfigurationInterface
 | 
			
		||||
{
 | 
			
		||||
    use AddWidgetConfigurationTrait;
 | 
			
		||||
 | 
			
		||||
       /**
 | 
			
		||||
        * @var ContainerBuilder
 | 
			
		||||
        */
 | 
			
		||||
       private $containerBuilder;
 | 
			
		||||
    /**
 | 
			
		||||
     * @var ContainerBuilder
 | 
			
		||||
     */
 | 
			
		||||
    private $containerBuilder;
 | 
			
		||||
 | 
			
		||||
       public function __construct(
 | 
			
		||||
           array $widgetFactories,
 | 
			
		||||
           ContainerBuilder $containerBuilder
 | 
			
		||||
       ) {
 | 
			
		||||
           // we register here widget factories (see below)
 | 
			
		||||
           $this->setWidgetFactories($widgetFactories);
 | 
			
		||||
           // we will need the container builder later...
 | 
			
		||||
           $this->containerBuilder = $containerBuilder;
 | 
			
		||||
       }
 | 
			
		||||
    public function __construct(
 | 
			
		||||
        array $widgetFactories,
 | 
			
		||||
        ContainerBuilder $containerBuilder
 | 
			
		||||
    ) {
 | 
			
		||||
        // we register here widget factories (see below)
 | 
			
		||||
        $this->setWidgetFactories($widgetFactories);
 | 
			
		||||
        // we will need the container builder later...
 | 
			
		||||
        $this->containerBuilder = $containerBuilder;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
       public function getConfigTreeBuilder()
 | 
			
		||||
       {
 | 
			
		||||
           $treeBuilder = new TreeBuilder();
 | 
			
		||||
           $rootNode = $treeBuilder->root('chill_main');
 | 
			
		||||
    public function getConfigTreeBuilder()
 | 
			
		||||
    {
 | 
			
		||||
        $treeBuilder = new TreeBuilder();
 | 
			
		||||
        $rootNode = $treeBuilder->root('chill_main');
 | 
			
		||||
 | 
			
		||||
           $rootNode
 | 
			
		||||
               ->children()
 | 
			
		||||
        $rootNode
 | 
			
		||||
            ->children()
 | 
			
		||||
 | 
			
		||||
                   // ...
 | 
			
		||||
               ->arrayNode('widgets')
 | 
			
		||||
               ->canBeDisabled()
 | 
			
		||||
               ->children()
 | 
			
		||||
                            // we declare here all configuration for homepage place
 | 
			
		||||
               ->append($this->addWidgetsConfiguration('homepage', $this->containerBuilder))
 | 
			
		||||
               ->end() // end of widgets/children
 | 
			
		||||
               ->end() // end of widgets
 | 
			
		||||
               ->end() // end of root/children
 | 
			
		||||
               ->end() // end of root
 | 
			
		||||
                // ...
 | 
			
		||||
            ->arrayNode('widgets')
 | 
			
		||||
            ->canBeDisabled()
 | 
			
		||||
            ->children()
 | 
			
		||||
                         // we declare here all configuration for homepage place
 | 
			
		||||
            ->append($this->addWidgetsConfiguration('homepage', $this->containerBuilder))
 | 
			
		||||
            ->end() // end of widgets/children
 | 
			
		||||
            ->end() // end of widgets
 | 
			
		||||
            ->end() // end of root/children
 | 
			
		||||
            ->end() // end of root
 | 
			
		||||
;
 | 
			
		||||
 | 
			
		||||
           return $treeBuilder;
 | 
			
		||||
       }
 | 
			
		||||
   }
 | 
			
		||||
        return $treeBuilder;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										25
									
								
								grumphp.yml
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								grumphp.yml
									
									
									
									
									
								
							@@ -12,3 +12,28 @@ parameters:
 | 
			
		||||
    tasks.phpcsfixer.allow_risky: true
 | 
			
		||||
    tasks.phpcsfixer.diff: true
 | 
			
		||||
    tasks.phpstan.level: 1
 | 
			
		||||
    tasks.phpstan.blocking: true
 | 
			
		||||
    tasks.phpstan.ignore_patterns:
 | 
			
		||||
        - "/.github/"
 | 
			
		||||
        - "/.idea/"
 | 
			
		||||
        - "/build/"
 | 
			
		||||
        - "/benchmarks/"
 | 
			
		||||
        - "/docs/"
 | 
			
		||||
        - "/node_modules/"
 | 
			
		||||
        - "/resource/"
 | 
			
		||||
        - "/spec/"
 | 
			
		||||
        - "/var/"
 | 
			
		||||
        - "/vendor/"
 | 
			
		||||
 | 
			
		||||
    # Psalm
 | 
			
		||||
    tasks.psalm.blocking: true
 | 
			
		||||
    tasks.psalm.ignore_patterns:
 | 
			
		||||
        - "/.github/"
 | 
			
		||||
        - "/.idea/"
 | 
			
		||||
        - "/build/"
 | 
			
		||||
        - "/benchmarks/"
 | 
			
		||||
        - "/node_modules/"
 | 
			
		||||
        - "/resource/"
 | 
			
		||||
        - "/spec/"
 | 
			
		||||
        - "/var/"
 | 
			
		||||
        - "/vendor/"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +0,0 @@
 | 
			
		||||
add npm/yarn dependency in package.json :
 | 
			
		||||
 | 
			
		||||
"select2-bootstrap-theme": "0.1.0-beta.10",
 | 
			
		||||
@@ -80,11 +80,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message: "#^Foreach overwrites \\$action with its value variable\\.$#"
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/AccompanyingPeriodWorkRepository.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message: "#^Foreach overwrites \\$action with its value variable\\.$#"
 | 
			
		||||
			count: 1
 | 
			
		||||
 
 | 
			
		||||
@@ -25,41 +25,6 @@ parameters:
 | 
			
		||||
            count: 1
 | 
			
		||||
            path: src/Bundle/ChillActivityBundle/Repository/ActivityACLAwareRepository.php
 | 
			
		||||
 | 
			
		||||
        -
 | 
			
		||||
            message: "#^Access to an undefined property Chill\\\\PersonBundle\\\\Household\\\\MembersEditorFactory\\:\\:\\$validator\\.$#"
 | 
			
		||||
            count: 2
 | 
			
		||||
            path: src/Bundle/ChillPersonBundle/Household/MembersEditorFactory.php
 | 
			
		||||
 | 
			
		||||
        -
 | 
			
		||||
            message: "#^Parameter \\$action of method Chill\\\\PersonBundle\\\\Repository\\\\AccompanyingPeriod\\\\AccompanyingPeriodWorkRepository\\:\\:buildQueryBySocialActionWithDescendants\\(\\) has invalid type Chill\\\\PersonBundle\\\\Repository\\\\AccompanyingPeriod\\\\SocialAction\\.$#"
 | 
			
		||||
            count: 1
 | 
			
		||||
            path: src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/AccompanyingPeriodWorkRepository.php
 | 
			
		||||
 | 
			
		||||
        -
 | 
			
		||||
            message: "#^Parameter \\$action of method Chill\\\\PersonBundle\\\\Repository\\\\AccompanyingPeriod\\\\AccompanyingPeriodWorkRepository\\:\\:countBySocialActionWithDescendants\\(\\) has invalid type Chill\\\\PersonBundle\\\\Repository\\\\AccompanyingPeriod\\\\SocialAction\\.$#"
 | 
			
		||||
            count: 1
 | 
			
		||||
            path: src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/AccompanyingPeriodWorkRepository.php
 | 
			
		||||
 | 
			
		||||
        -
 | 
			
		||||
            message: "#^Undefined variable\\: \\$action$#"
 | 
			
		||||
            count: 1
 | 
			
		||||
            path: src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/AccompanyingPeriodWorkRepository.php
 | 
			
		||||
 | 
			
		||||
        -
 | 
			
		||||
            message: "#^Undefined variable\\: \\$limit$#"
 | 
			
		||||
            count: 1
 | 
			
		||||
            path: src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/AccompanyingPeriodWorkRepository.php
 | 
			
		||||
 | 
			
		||||
        -
 | 
			
		||||
            message: "#^Undefined variable\\: \\$offset$#"
 | 
			
		||||
            count: 1
 | 
			
		||||
            path: src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/AccompanyingPeriodWorkRepository.php
 | 
			
		||||
 | 
			
		||||
        -
 | 
			
		||||
            message: "#^Undefined variable\\: \\$orderBy$#"
 | 
			
		||||
            count: 1
 | 
			
		||||
            path: src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/AccompanyingPeriodWorkRepository.php
 | 
			
		||||
 | 
			
		||||
        -
 | 
			
		||||
            message: "#^Variable variables are not allowed\\.$#"
 | 
			
		||||
            count: 4
 | 
			
		||||
 
 | 
			
		||||
@@ -105,15 +105,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillActivityBundle/Export/Export/ListActivity.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\ActivityBundle\\\\Export\\\\Export\\\\ListActivity\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillActivityBundle/Export/Export/ListActivity.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -141,15 +132,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillActivityBundle/Export/Export/StatActivityDuration.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\ActivityBundle\\\\Export\\\\Filter\\\\ActivityDateFilter\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillActivityBundle/Export/Filter/ActivityDateFilter.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -195,15 +177,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillActivityBundle/Export/Filter/ActivityTypeFilter.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\ActivityBundle\\\\Export\\\\Filter\\\\PersonHavingActivityBetweenDateFilter\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillActivityBundle/Export/Filter/PersonHavingActivityBetweenDateFilter.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -213,15 +186,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillActivityBundle/Export/Filter/PersonHavingActivityBetweenDateFilter.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\ActivityBundle\\\\Menu\\\\PersonMenuBuilder\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillActivityBundle/Menu/PersonMenuBuilder.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -258,15 +222,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillActivityBundle/Timeline/TimelineActivityProvider.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\AsideActivityBundle\\\\Menu\\\\UserMenuBuilder\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillAsideActivityBundle/src/Menu/UserMenuBuilder.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -276,15 +231,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillBudgetBundle/Controller/AbstractElementController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\AMLI\\\\BudgetBundle\\\\Controller\\\\AbstractElementController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillBudgetBundle/Controller/AbstractElementController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -294,24 +240,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillBudgetBundle/Controller/ElementController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\AMLI\\\\BudgetBundle\\\\Controller\\\\ElementController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillBudgetBundle/Controller/ElementController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\AMLI\\\\BudgetBundle\\\\Menu\\\\UserMenuBuilder\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillBudgetBundle/Menu/UserMenuBuilder.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -321,15 +249,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillBudgetBundle/Security/Authorization/BudgetElementVoter.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\CalendarBundle\\\\Menu\\\\UserMenuBuilder\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillCalendarBundle/Menu/UserMenuBuilder.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -399,51 +318,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillCustomFieldsBundle/Entity/CustomFieldsGroup.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\CustomFieldsBundle\\\\Form\\\\CustomFieldsGroupType\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillCustomFieldsBundle/Form/CustomFieldsGroupType.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Call to deprecated method getReachableScopes\\(\\) of class Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AuthorizationHelper\\:
 | 
			
		||||
					Use getReachableCircles$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Instantiation of deprecated class Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role\\:
 | 
			
		||||
					since Symfony 4\\.3, to be removed in 5\\.0\\. Use strings as roles instead\\.$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 3
 | 
			
		||||
			path: src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\DocStoreBundle\\\\Controller\\\\DocumentPersonController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Fetching class constant class of deprecated class Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role\\:
 | 
			
		||||
					since Symfony 4\\.3, to be removed in 5\\.0\\. Use strings as roles instead\\.$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillDocStoreBundle/Form/PersonDocumentType.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -453,15 +327,6 @@ parameters:
 | 
			
		||||
			count: 6
 | 
			
		||||
			path: src/Bundle/ChillEventBundle/Controller/EventController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\EventBundle\\\\Controller\\\\EventController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillEventBundle/Controller/EventController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -480,42 +345,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillEventBundle/Form/Type/PickEventType.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\EventBundle\\\\Form\\\\Type\\\\PickEventType\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillEventBundle/Form/Type/PickEventType.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\EventBundle\\\\Form\\\\Type\\\\PickRoleType\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillEventBundle/Form/Type/PickRoleType.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\EventBundle\\\\Form\\\\Type\\\\PickStatusType\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillEventBundle/Form/Type/PickStatusType.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\EventBundle\\\\Menu\\\\PersonMenuBuilder\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillEventBundle/Menu/PersonMenuBuilder.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -525,24 +354,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillEventBundle/Search/EventSearch.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\AMLI\\\\FamilyMembersBundle\\\\Controller\\\\FamilyMemberController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillFamilyMembersBundle/Controller/FamilyMemberController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\AMLI\\\\FamilyMembersBundle\\\\Menu\\\\UserMenuBuilder\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillFamilyMembersBundle/Menu/UserMenuBuilder.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -552,24 +363,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillFamilyMembersBundle/Security/Voter/FamilyMemberVoter.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Fetching class constant class of deprecated class Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/CRUD/Controller/AbstractCRUDController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Fetching class constant class of deprecated class Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -579,15 +372,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Return type of method Chill\\\\MainBundle\\\\CRUD\\\\Controller\\\\CRUDController\\:\\:getTranslator\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -606,24 +390,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Command/LoadCountriesCommand.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\MainBundle\\\\Controller\\\\ExportController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Controller/ExportController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\MainBundle\\\\Controller\\\\PasswordController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Controller/PasswordController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -696,42 +462,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Export/ExportManager.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translatorInterface of method Chill\\\\MainBundle\\\\Export\\\\Formatter\\\\CSVListFormatter\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Export/Formatter/CSVListFormatter.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translatorInterface of method Chill\\\\MainBundle\\\\Export\\\\Formatter\\\\CSVPivotedListFormatter\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Export/Formatter/CSVPivotedListFormatter.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translatorInterface of method Chill\\\\MainBundle\\\\Export\\\\Formatter\\\\SpreadSheetFormatter\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translatorInterface of method Chill\\\\MainBundle\\\\Export\\\\Formatter\\\\SpreadsheetListFormatter\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Export/Formatter/SpreadsheetListFormatter.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -750,15 +480,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Form/Event/CustomizeFormEvent.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\MainBundle\\\\Form\\\\Type\\\\PostalCodeType\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Form/Type/PostalCodeType.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -782,38 +503,11 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Form/UserType.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\MainBundle\\\\Notification\\\\Mailer\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Notification/Mailer.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message: "#^Only booleans are allowed in an if condition, mixed given\\.$#"
 | 
			
		||||
			count: 2
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Repository/NotificationRepository.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\MainBundle\\\\Routing\\\\MenuBuilder\\\\SectionMenuBuilder\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Routing/MenuBuilder/SectionMenuBuilder.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\MainBundle\\\\Routing\\\\MenuComposer\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Routing/MenuComposer.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -877,11 +571,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Security/PasswordRecover/PasswordRecoverEvent.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message: "#^Call to deprecated method setTimeout\\(\\) of class Redis\\.$#"
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Security/PasswordRecover/PasswordRecoverLocker.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -905,15 +594,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Templating/Events/DelegatedBlockRenderingEvent.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\MainBundle\\\\Validation\\\\Validator\\\\RoleScopeScopePresence\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Validation/Validator/RoleScopeScopePresence.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -950,15 +630,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$trans of method Chill\\\\PersonBundle\\\\Controller\\\\AccompanyingCourseWorkController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -968,33 +639,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\PersonBundle\\\\Controller\\\\HouseholdController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Controller/HouseholdController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\PersonBundle\\\\Controller\\\\HouseholdMemberController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Controller/HouseholdMemberController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\PersonBundle\\\\Controller\\\\PersonController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Controller/PersonController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -1004,15 +648,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\PersonBundle\\\\Controller\\\\PersonDuplicateController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message: "#^Access to deprecated property \\$proxyAccompanyingPeriodOpenState of class Chill\\\\PersonBundle\\\\Entity\\\\Person\\.$#"
 | 
			
		||||
			count: 2
 | 
			
		||||
@@ -1027,15 +662,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Export/Aggregator/AgeAggregator.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\PersonBundle\\\\Export\\\\Aggregator\\\\CountryOfBirthAggregator\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Export/Aggregator/CountryOfBirthAggregator.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -1045,15 +671,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Export/Aggregator/CountryOfBirthAggregator.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\PersonBundle\\\\Export\\\\Aggregator\\\\GenderAggregator\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Export/Aggregator/GenderAggregator.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -1063,15 +680,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Export/Aggregator/GenderAggregator.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\PersonBundle\\\\Export\\\\Aggregator\\\\NationalityAggregator\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Export/Aggregator/NationalityAggregator.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -1108,15 +716,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Export/Export/ListPerson.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\PersonBundle\\\\Export\\\\Export\\\\ListPerson\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Export/Export/ListPerson.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -1144,15 +743,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Export/Export/ListPersonDuplicate.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\PersonBundle\\\\Export\\\\Export\\\\ListPersonDuplicate\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Export/Export/ListPersonDuplicate.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -1198,15 +788,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Export/Filter/BirthdateFilter.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\PersonBundle\\\\Export\\\\Filter\\\\GenderFilter\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Export/Filter/GenderFilter.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -1248,24 +829,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Form/Type/PickPersonType.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\PersonBundle\\\\Form\\\\Type\\\\PickPersonType\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Form/Type/PickPersonType.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\PersonBundle\\\\Menu\\\\SectionMenuBuilder\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Menu/SectionMenuBuilder.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -1329,15 +892,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillReportBundle/Export/Export/ReportList.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\ReportBundle\\\\Export\\\\Export\\\\ReportList\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillReportBundle/Export/Export/ReportList.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -1347,15 +901,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillReportBundle/Export/Export/ReportList.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\ReportBundle\\\\Export\\\\Export\\\\ReportListProvider\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillReportBundle/Export/Export/ReportListProvider.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -1437,15 +982,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\TaskBundle\\\\Controller\\\\TaskController\\:\\:applyTransitionAction\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillTaskBundle/Controller/TaskController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -1491,33 +1027,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillTaskBundle/Form/SingleTaskType.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\TaskBundle\\\\Menu\\\\MenuBuilder\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillTaskBundle/Menu/MenuBuilder.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\TaskBundle\\\\Menu\\\\SectionMenuBuilder\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillTaskBundle/Menu/SectionMenuBuilder.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\TaskBundle\\\\Menu\\\\UserMenuBuilder\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillTaskBundle/Menu/UserMenuBuilder.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
@@ -1554,33 +1063,6 @@ parameters:
 | 
			
		||||
			count: 3
 | 
			
		||||
			path: src/Bundle/ChillTaskBundle/Timeline/TaskLifeCycleEventTimelineProvider.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\ThirdPartyBundle\\\\Controller\\\\ThirdPartyController\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillThirdPartyBundle/Controller/ThirdPartyController.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\ThirdPartyBundle\\\\Form\\\\Type\\\\PickThirdPartyType\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillThirdPartyBundle/Form/Type/PickThirdPartyType.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
					#^Parameter \\$translator of method Chill\\\\ThirdPartyBundle\\\\Menu\\\\MenuBuilder\\:\\:__construct\\(\\) has typehint with deprecated interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\:
 | 
			
		||||
					since Symfony 4\\.2, use Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface instead$#
 | 
			
		||||
				"""
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillThirdPartyBundle/Menu/MenuBuilder.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message:
 | 
			
		||||
				"""
 | 
			
		||||
 
 | 
			
		||||
@@ -295,11 +295,6 @@ parameters:
 | 
			
		||||
			count: 3
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Form/Type/DataTransformer/DateIntervalTransformer.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#"
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Form/Type/DataTransformer/ObjectToIdTransformer.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
 | 
			
		||||
			count: 2
 | 
			
		||||
@@ -315,11 +310,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Security/PasswordRecover/TokenManager.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
 | 
			
		||||
			count: 3
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Templating/Entity/AddressRender.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
 | 
			
		||||
			count: 1
 | 
			
		||||
@@ -330,11 +320,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Timeline/TimelineBuilder.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillMainBundle/Validation/Validator/ValidPhonenumber.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
 | 
			
		||||
			count: 1
 | 
			
		||||
@@ -405,11 +390,6 @@ parameters:
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Form/Type/PersonPhoneType.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message: "#^Method Chill\\\\PersonBundle\\\\Repository\\\\AccompanyingPeriod\\\\AccompanyingPeriodWorkRepository\\:\\:buildQueryBySocialActionWithDescendants\\(\\) has invalid return type Chill\\\\PersonBundle\\\\Repository\\\\AccompanyingPeriod\\\\QueryBuilder\\.$#"
 | 
			
		||||
			count: 1
 | 
			
		||||
			path: src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/AccompanyingPeriodWorkRepository.php
 | 
			
		||||
 | 
			
		||||
		-
 | 
			
		||||
			message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
 | 
			
		||||
			count: 3
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 | 
			
		||||
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
 | 
			
		||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
			
		||||
         xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
 | 
			
		||||
         xsi:noNamespaceSchemaLocation="tests/app/vendor/phpunit/phpunit/phpunit.xsd"
 | 
			
		||||
         backupGlobals="false"
 | 
			
		||||
         colors="true"
 | 
			
		||||
         bootstrap="tests/app/tests/bootstrap.php"
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1523
									
								
								psalm-baseline.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1523
									
								
								psalm-baseline.xml
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										16
									
								
								psalm.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								psalm.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
<?xml version="1.0"?>
 | 
			
		||||
<psalm
 | 
			
		||||
    errorLevel="7"
 | 
			
		||||
    resolveFromConfigFile="true"
 | 
			
		||||
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
			
		||||
    xmlns="https://getpsalm.org/schema/config"
 | 
			
		||||
    xsi:schemaLocation="https://getpsalm.org/schema/config tests/app/vendor/vimeo/psalm/config.xsd"
 | 
			
		||||
    errorBaseline="psalm-baseline.xml"
 | 
			
		||||
>
 | 
			
		||||
    <projectFiles>
 | 
			
		||||
        <directory name="src" />
 | 
			
		||||
        <ignoreFiles>
 | 
			
		||||
            <directory name="./tests/" />
 | 
			
		||||
        </ignoreFiles>
 | 
			
		||||
    </projectFiles>
 | 
			
		||||
</psalm>
 | 
			
		||||
@@ -31,13 +31,16 @@ use DateTime;
 | 
			
		||||
use Doctrine\ORM\EntityManagerInterface;
 | 
			
		||||
use InvalidArgumentException;
 | 
			
		||||
use Psr\Log\LoggerInterface;
 | 
			
		||||
use RuntimeException;
 | 
			
		||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
 | 
			
		||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
 | 
			
		||||
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
 | 
			
		||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
 | 
			
		||||
use Symfony\Component\Form\FormInterface;
 | 
			
		||||
use Symfony\Component\HttpFoundation\Request;
 | 
			
		||||
use Symfony\Component\HttpFoundation\Response;
 | 
			
		||||
use Symfony\Component\Security\Core\Role\Role;
 | 
			
		||||
 | 
			
		||||
use Symfony\Component\Serializer\SerializerInterface;
 | 
			
		||||
use function array_key_exists;
 | 
			
		||||
 | 
			
		||||
@@ -198,12 +201,36 @@ final class ActivityController extends AbstractController
 | 
			
		||||
            'role' => new Role('CHILL_ACTIVITY_UPDATE'),
 | 
			
		||||
            'activityType' => $entity->getActivityType(),
 | 
			
		||||
            'accompanyingPeriod' => $accompanyingPeriod,
 | 
			
		||||
        ])->handleRequest($request);
 | 
			
		||||
        ]);
 | 
			
		||||
 | 
			
		||||
        if ($form->has('documents')) {
 | 
			
		||||
            $form->add('gendocTemplateId', HiddenType::class, [
 | 
			
		||||
                'mapped' => false,
 | 
			
		||||
                'data' => null,
 | 
			
		||||
                'attr' => [
 | 
			
		||||
                    // required for js
 | 
			
		||||
                    'data-template-id' => 'data-template-id',
 | 
			
		||||
                ],
 | 
			
		||||
            ]);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $form->handleRequest($request);
 | 
			
		||||
 | 
			
		||||
        if ($form->isSubmitted() && $form->isValid()) {
 | 
			
		||||
            $this->entityManager->persist($entity);
 | 
			
		||||
            $this->entityManager->flush();
 | 
			
		||||
 | 
			
		||||
            if ($form->has('gendocTemplateId') && null !== $form['gendocTemplateId']->getData()) {
 | 
			
		||||
                return $this->redirectToRoute(
 | 
			
		||||
                    'chill_docgenerator_generate_from_template',
 | 
			
		||||
                    [
 | 
			
		||||
                        'template' => $form->get('gendocTemplateId')->getData(),
 | 
			
		||||
                        'entityClassName' => Activity::class,
 | 
			
		||||
                        'entityId' => $entity->getId(),
 | 
			
		||||
                    ]
 | 
			
		||||
                );
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            $this->addFlash('success', $this->get('translator')->trans('Success : activity updated!'));
 | 
			
		||||
 | 
			
		||||
            $params = $this->buildParamsToUrl($person, $accompanyingPeriod);
 | 
			
		||||
@@ -254,7 +281,7 @@ final class ActivityController extends AbstractController
 | 
			
		||||
        if ($person instanceof Person) {
 | 
			
		||||
            $this->denyAccessUnlessGranted(ActivityVoter::SEE, $person);
 | 
			
		||||
            $activities = $this->activityACLAwareRepository
 | 
			
		||||
                ->findByPerson($person, ActivityVoter::SEE, 0, null);
 | 
			
		||||
                ->findByPerson($person, ActivityVoter::SEE, 0, null, ['date' => 'DESC', 'id' => 'DESC']);
 | 
			
		||||
 | 
			
		||||
            $event = new PrivacyEvent($person, [
 | 
			
		||||
                'element_class' => Activity::class,
 | 
			
		||||
@@ -267,7 +294,7 @@ final class ActivityController extends AbstractController
 | 
			
		||||
            $this->denyAccessUnlessGranted(ActivityVoter::SEE, $accompanyingPeriod);
 | 
			
		||||
 | 
			
		||||
            $activities = $this->activityACLAwareRepository
 | 
			
		||||
                ->findByAccompanyingPeriod($accompanyingPeriod, ActivityVoter::SEE);
 | 
			
		||||
                ->findByAccompanyingPeriod($accompanyingPeriod, ActivityVoter::SEE, 0, null, ['date' => 'DESC', 'id' => 'DESC']);
 | 
			
		||||
 | 
			
		||||
            $view = 'ChillActivityBundle:Activity:listAccompanyingCourse.html.twig';
 | 
			
		||||
        }
 | 
			
		||||
@@ -307,8 +334,10 @@ final class ActivityController extends AbstractController
 | 
			
		||||
            $activityData = $request->query->get('activityData');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!$activityType instanceof \Chill\ActivityBundle\Entity\ActivityType
 | 
			
		||||
            || !$activityType->isActive()) {
 | 
			
		||||
        if (
 | 
			
		||||
            !$activityType instanceof \Chill\ActivityBundle\Entity\ActivityType
 | 
			
		||||
            || !$activityType->isActive()
 | 
			
		||||
        ) {
 | 
			
		||||
            $params = $this->buildParamsToUrl($person, $accompanyingPeriod);
 | 
			
		||||
 | 
			
		||||
            if (null !== $activityData) {
 | 
			
		||||
@@ -389,12 +418,36 @@ final class ActivityController extends AbstractController
 | 
			
		||||
            'role' => new Role('CHILL_ACTIVITY_CREATE'),
 | 
			
		||||
            'activityType' => $entity->getActivityType(),
 | 
			
		||||
            'accompanyingPeriod' => $accompanyingPeriod,
 | 
			
		||||
        ])->handleRequest($request);
 | 
			
		||||
        ]);
 | 
			
		||||
 | 
			
		||||
        if ($form->has('documents')) {
 | 
			
		||||
            $form->add('gendocTemplateId', HiddenType::class, [
 | 
			
		||||
                'mapped' => false,
 | 
			
		||||
                'data' => null,
 | 
			
		||||
                'attr' => [
 | 
			
		||||
                    // required for js
 | 
			
		||||
                    'data-template-id' => 'data-template-id',
 | 
			
		||||
                ],
 | 
			
		||||
            ]);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $form->handleRequest($request);
 | 
			
		||||
 | 
			
		||||
        if ($form->isSubmitted() && $form->isValid()) {
 | 
			
		||||
            $this->entityManager->persist($entity);
 | 
			
		||||
            $this->entityManager->flush();
 | 
			
		||||
 | 
			
		||||
            if ($form->has('gendocTemplateId') && null !== $form['gendocTemplateId']->getData()) {
 | 
			
		||||
                return $this->redirectToRoute(
 | 
			
		||||
                    'chill_docgenerator_generate_from_template',
 | 
			
		||||
                    [
 | 
			
		||||
                        'template' => $form->get('gendocTemplateId')->getData(),
 | 
			
		||||
                        'entityClassName' => Activity::class,
 | 
			
		||||
                        'entityId' => $entity->getId(),
 | 
			
		||||
                    ]
 | 
			
		||||
                );
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            $this->addFlash('success', $this->get('translator')->trans('Success : activity created!'));
 | 
			
		||||
 | 
			
		||||
            $params = $this->buildParamsToUrl($person, $accompanyingPeriod);
 | 
			
		||||
@@ -468,20 +521,21 @@ final class ActivityController extends AbstractController
 | 
			
		||||
 | 
			
		||||
    public function showAction(Request $request, int $id): Response
 | 
			
		||||
    {
 | 
			
		||||
        $view = null;
 | 
			
		||||
        $entity = $this->activityRepository->find($id);
 | 
			
		||||
 | 
			
		||||
        [$person, $accompanyingPeriod] = $this->getEntity($request);
 | 
			
		||||
        if (null === $entity) {
 | 
			
		||||
            throw $this->createNotFoundException('Unable to find Activity entity.');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $accompanyingPeriod = $entity->getAccompanyingPeriod();
 | 
			
		||||
        $person = $entity->getPerson();
 | 
			
		||||
 | 
			
		||||
        if ($accompanyingPeriod instanceof AccompanyingPeriod) {
 | 
			
		||||
            $view = 'ChillActivityBundle:Activity:showAccompanyingCourse.html.twig';
 | 
			
		||||
        } elseif ($person instanceof Person) {
 | 
			
		||||
            $view = 'ChillActivityBundle:Activity:showPerson.html.twig';
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $entity = $this->activityRepository->find($id);
 | 
			
		||||
 | 
			
		||||
        if (null === $entity) {
 | 
			
		||||
            throw $this->createNotFoundException('Unable to find Activity entity.');
 | 
			
		||||
        } else {
 | 
			
		||||
            throw new RuntimeException('the activity should be linked with a period or person');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (null !== $accompanyingPeriod) {
 | 
			
		||||
@@ -490,8 +544,7 @@ final class ActivityController extends AbstractController
 | 
			
		||||
            $entity->personsNotAssociated = $entity->getPersonsNotAssociated();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // TODO revoir le Voter de Activity pour tenir compte qu'une activité peut appartenir a une période
 | 
			
		||||
        // $this->denyAccessUnlessGranted('CHILL_ACTIVITY_SEE', $entity);
 | 
			
		||||
        $this->denyAccessUnlessGranted(ActivityVoter::SEE, $entity);
 | 
			
		||||
 | 
			
		||||
        $deleteForm = $this->createDeleteForm($entity->getId(), $person, $accompanyingPeriod);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -14,7 +14,6 @@ namespace Chill\ActivityBundle\Controller;
 | 
			
		||||
use Chill\ActivityBundle\Entity\ActivityReasonCategory;
 | 
			
		||||
use Chill\ActivityBundle\Form\ActivityReasonCategoryType;
 | 
			
		||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
 | 
			
		||||
 | 
			
		||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
 | 
			
		||||
use Symfony\Component\HttpFoundation\Request;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -14,7 +14,6 @@ namespace Chill\ActivityBundle\Controller;
 | 
			
		||||
use Chill\ActivityBundle\Entity\ActivityReason;
 | 
			
		||||
use Chill\ActivityBundle\Form\ActivityReasonType;
 | 
			
		||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
 | 
			
		||||
 | 
			
		||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
 | 
			
		||||
use Symfony\Component\HttpFoundation\Request;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ use Chill\MainBundle\Entity\RoleScope;
 | 
			
		||||
use Doctrine\Common\DataFixtures\AbstractFixture;
 | 
			
		||||
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
 | 
			
		||||
use Doctrine\Persistence\ObjectManager;
 | 
			
		||||
 | 
			
		||||
use function in_array;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 
 | 
			
		||||
@@ -13,6 +13,7 @@ namespace Chill\ActivityBundle\DependencyInjection;
 | 
			
		||||
 | 
			
		||||
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
 | 
			
		||||
use Symfony\Component\Config\Definition\ConfigurationInterface;
 | 
			
		||||
 | 
			
		||||
use function is_int;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@ declare(strict_types=1);
 | 
			
		||||
namespace Chill\ActivityBundle\Entity;
 | 
			
		||||
 | 
			
		||||
use Chill\ActivityBundle\Validator\Constraints as ActivityValidator;
 | 
			
		||||
use Chill\DocStoreBundle\Entity\Document;
 | 
			
		||||
use Chill\DocStoreBundle\Entity\StoredObject;
 | 
			
		||||
use Chill\MainBundle\Entity\Center;
 | 
			
		||||
use Chill\MainBundle\Entity\Embeddable\CommentEmbeddable;
 | 
			
		||||
use Chill\MainBundle\Entity\HasCenterInterface;
 | 
			
		||||
@@ -67,7 +67,7 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\ManyToOne(targetEntity="Chill\ActivityBundle\Entity\ActivityType")
 | 
			
		||||
     * @Groups({"read"})
 | 
			
		||||
     * @Groups({"read", "docgen:read"})
 | 
			
		||||
     * @SerializedName("activityType")
 | 
			
		||||
     * @ORM\JoinColumn(name="type_id")
 | 
			
		||||
     */
 | 
			
		||||
@@ -75,16 +75,19 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\ManyToOne(targetEntity="Chill\ActivityBundle\Entity\ActivityPresence")
 | 
			
		||||
     * @Groups({"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private ?ActivityPresence $attendee = null;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\Embedded(class="Chill\MainBundle\Entity\Embeddable\CommentEmbeddable", columnPrefix="comment_")
 | 
			
		||||
     * @Groups({"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private CommentEmbeddable $comment;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\Column(type="datetime")
 | 
			
		||||
     * @Groups({"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private DateTime $date;
 | 
			
		||||
 | 
			
		||||
@@ -100,6 +103,7 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\Column(type="boolean", options={"default": false})
 | 
			
		||||
     * @Groups({"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private bool $emergency = false;
 | 
			
		||||
 | 
			
		||||
@@ -107,13 +111,13 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
 | 
			
		||||
     * @ORM\Id
 | 
			
		||||
     * @ORM\Column(name="id", type="integer")
 | 
			
		||||
     * @ORM\GeneratedValue(strategy="AUTO")
 | 
			
		||||
     * @Groups({"read"})
 | 
			
		||||
     * @Groups({"read", "docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private ?int $id = null;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Location")
 | 
			
		||||
     * @groups({"read"})
 | 
			
		||||
     * @groups({"read", "docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private ?Location $location = null;
 | 
			
		||||
 | 
			
		||||
@@ -124,42 +128,45 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\ManyToMany(targetEntity="Chill\PersonBundle\Entity\Person")
 | 
			
		||||
     * @Groups({"read"})
 | 
			
		||||
     * @Groups({"read", "docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private ?Collection $persons = null;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\ManyToMany(targetEntity="Chill\ActivityBundle\Entity\ActivityReason")
 | 
			
		||||
     * @Groups({"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private Collection $reasons;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Scope")
 | 
			
		||||
     * @Groups({"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private ?Scope $scope = null;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\Column(type="string", options={"default": ""})
 | 
			
		||||
     * @Groups({"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private string $sentReceived = '';
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\ManyToMany(targetEntity="Chill\PersonBundle\Entity\SocialWork\SocialAction")
 | 
			
		||||
     * @ORM\JoinTable(name="chill_activity_activity_chill_person_socialaction")
 | 
			
		||||
     * @Groups({"read"})
 | 
			
		||||
     * @Groups({"read", "docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private Collection $socialActions;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\ManyToMany(targetEntity="Chill\PersonBundle\Entity\SocialWork\SocialIssue")
 | 
			
		||||
     * @ORM\JoinTable(name="chill_activity_activity_chill_person_socialissue")
 | 
			
		||||
     * @Groups({"read"})
 | 
			
		||||
     * @Groups({"read", "docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private Collection $socialIssues;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\ManyToMany(targetEntity="Chill\ThirdPartyBundle\Entity\ThirdParty")
 | 
			
		||||
     * @Groups({"read"})
 | 
			
		||||
     * @Groups({"read", "docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private ?Collection $thirdParties = null;
 | 
			
		||||
 | 
			
		||||
@@ -170,12 +177,13 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\User")
 | 
			
		||||
     * @Groups({"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private User $user;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\ManyToMany(targetEntity="Chill\MainBundle\Entity\User")
 | 
			
		||||
     * @Groups({"read"})
 | 
			
		||||
     * @Groups({"read", "docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private ?Collection $users = null;
 | 
			
		||||
 | 
			
		||||
@@ -191,7 +199,7 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
 | 
			
		||||
        $this->socialActions = new ArrayCollection();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function addDocument(Document $document): self
 | 
			
		||||
    public function addDocument(StoredObject $document): self
 | 
			
		||||
    {
 | 
			
		||||
        $this->documents[] = $document;
 | 
			
		||||
 | 
			
		||||
@@ -302,6 +310,18 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
 | 
			
		||||
        return $this->documents;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @Groups({"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    public function getDurationMinute(): int
 | 
			
		||||
    {
 | 
			
		||||
        if (null === $this->durationTime) {
 | 
			
		||||
            return 0;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return (int) round(($this->durationTime->getTimestamp() + $this->durationTime->getOffset()) / 60.0, 0);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getDurationTime(): ?DateTime
 | 
			
		||||
    {
 | 
			
		||||
        return $this->durationTime;
 | 
			
		||||
@@ -337,7 +357,7 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
 | 
			
		||||
        if (null !== $this->accompanyingPeriod) {
 | 
			
		||||
            $personsAssociated = [];
 | 
			
		||||
 | 
			
		||||
            foreach ($this->accompanyingPeriod->getParticipations() as $participation) {
 | 
			
		||||
            foreach ($this->accompanyingPeriod->getOpenParticipations() as $participation) {
 | 
			
		||||
                if ($this->persons->contains($participation->getPerson())) {
 | 
			
		||||
                    $personsAssociated[] = $participation->getPerson();
 | 
			
		||||
                }
 | 
			
		||||
@@ -402,6 +422,18 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
 | 
			
		||||
        return $this->travelTime;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @Groups({"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    public function getTravelTimeMinute(): int
 | 
			
		||||
    {
 | 
			
		||||
        if (null === $this->travelTime) {
 | 
			
		||||
            return 0;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return (int) round(($this->travelTime->getTimestamp() + $this->travelTime->getOffset()) / 60.0, 0);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @deprecated
 | 
			
		||||
     */
 | 
			
		||||
@@ -425,7 +457,7 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
 | 
			
		||||
        return $this->getEmergency();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function removeDocument(Document $document): void
 | 
			
		||||
    public function removeDocument(StoredObject $document): void
 | 
			
		||||
    {
 | 
			
		||||
        $this->documents->removeElement($document);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -12,6 +12,7 @@ declare(strict_types=1);
 | 
			
		||||
namespace Chill\ActivityBundle\Entity;
 | 
			
		||||
 | 
			
		||||
use Doctrine\ORM\Mapping as ORM;
 | 
			
		||||
use Symfony\Component\Serializer\Annotation as Serializer;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Class ActivityPresence.
 | 
			
		||||
@@ -31,11 +32,14 @@ class ActivityPresence
 | 
			
		||||
     * @ORM\Id
 | 
			
		||||
     * @ORM\Column(name="id", type="integer")
 | 
			
		||||
     * @ORM\GeneratedValue(strategy="AUTO")
 | 
			
		||||
     * @Serializer\Groups({"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private ?int $id;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\Column(type="json")
 | 
			
		||||
     * @Serializer\Groups({"docgen:read"})
 | 
			
		||||
     * @Serializer\Context({"is-translatable": true}, groups={"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private array $name = [];
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -13,8 +13,10 @@ namespace Chill\ActivityBundle\Entity;
 | 
			
		||||
 | 
			
		||||
use Doctrine\ORM\Mapping as ORM;
 | 
			
		||||
use InvalidArgumentException;
 | 
			
		||||
use Symfony\Component\Serializer\Annotation as Serializer;
 | 
			
		||||
use Symfony\Component\Serializer\Annotation\Groups;
 | 
			
		||||
use Symfony\Component\Validator\Constraints as Assert;
 | 
			
		||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Class ActivityType.
 | 
			
		||||
@@ -118,6 +120,7 @@ class ActivityType
 | 
			
		||||
     * @ORM\Id
 | 
			
		||||
     * @ORM\Column(name="id", type="integer")
 | 
			
		||||
     * @ORM\GeneratedValue(strategy="AUTO")
 | 
			
		||||
     * @Groups({"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private ?int $id;
 | 
			
		||||
 | 
			
		||||
@@ -133,7 +136,8 @@ class ActivityType
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\Column(type="json")
 | 
			
		||||
     * @Groups({"read"})
 | 
			
		||||
     * @Groups({"read", "docgen:read"})
 | 
			
		||||
     * @Serializer\Context({"is-translatable": true}, groups={"docgen:read"})
 | 
			
		||||
     */
 | 
			
		||||
    private array $name = [];
 | 
			
		||||
 | 
			
		||||
@@ -190,7 +194,6 @@ class ActivityType
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @ORM\Column(type="smallint", nullable=false, options={"default": 1})
 | 
			
		||||
     * @Assert\EqualTo(propertyPath="socialIssuesVisible", message="This parameter must be equal to social issue parameter")
 | 
			
		||||
     */
 | 
			
		||||
    private int $socialActionsVisible = self::FIELD_INVISIBLE;
 | 
			
		||||
 | 
			
		||||
@@ -260,6 +263,23 @@ class ActivityType
 | 
			
		||||
     */
 | 
			
		||||
    private int $userVisible = self::FIELD_REQUIRED;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @Assert\Callback
 | 
			
		||||
     *
 | 
			
		||||
     * @param mixed $payload
 | 
			
		||||
     */
 | 
			
		||||
    public function checkSocialActionsVisibility(ExecutionContextInterface $context, $payload)
 | 
			
		||||
    {
 | 
			
		||||
        if ($this->socialIssuesVisible !== $this->socialActionsVisible) {
 | 
			
		||||
            if (!(2 === $this->socialIssuesVisible && 1 === $this->socialActionsVisible)) {
 | 
			
		||||
                $context
 | 
			
		||||
                    ->buildViolation('The socialActionsVisible value is not compatible with the socialIssuesVisible value')
 | 
			
		||||
                    ->atPath('socialActionsVisible')
 | 
			
		||||
                    ->addViolation();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Get active
 | 
			
		||||
     * return true if the type is active.
 | 
			
		||||
 
 | 
			
		||||
@@ -25,6 +25,7 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
 | 
			
		||||
use Symfony\Component\Form\FormBuilderInterface;
 | 
			
		||||
use Symfony\Component\Security\Core\Role\Role;
 | 
			
		||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
 | 
			
		||||
 | 
			
		||||
use function array_key_exists;
 | 
			
		||||
use function count;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -24,9 +24,10 @@ use Doctrine\ORM\Query;
 | 
			
		||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
 | 
			
		||||
use Symfony\Component\Form\FormBuilderInterface;
 | 
			
		||||
use Symfony\Component\Security\Core\Role\Role;
 | 
			
		||||
use Symfony\Component\Translation\TranslatorInterface;
 | 
			
		||||
use Symfony\Component\Validator\Constraints\Callback;
 | 
			
		||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
 | 
			
		||||
use Symfony\Contracts\Translation\TranslatorInterface;
 | 
			
		||||
 | 
			
		||||
use function array_key_exists;
 | 
			
		||||
use function count;
 | 
			
		||||
use function in_array;
 | 
			
		||||
@@ -189,7 +190,9 @@ class ListActivity implements ListInterface
 | 
			
		||||
 | 
			
		||||
    public function initiateQuery(array $requiredModifiers, array $acl, array $data = [])
 | 
			
		||||
    {
 | 
			
		||||
        $centers = array_map(static function ($el) { return $el['center']; }, $acl);
 | 
			
		||||
        $centers = array_map(static function ($el) {
 | 
			
		||||
            return $el['center'];
 | 
			
		||||
        }, $acl);
 | 
			
		||||
 | 
			
		||||
        // throw an error if any fields are present
 | 
			
		||||
        if (!array_key_exists('fields', $data)) {
 | 
			
		||||
 
 | 
			
		||||
@@ -21,7 +21,7 @@ use Symfony\Component\Form\FormBuilderInterface;
 | 
			
		||||
use Symfony\Component\Form\FormError;
 | 
			
		||||
use Symfony\Component\Form\FormEvent;
 | 
			
		||||
use Symfony\Component\Form\FormEvents;
 | 
			
		||||
use Symfony\Component\Translation\TranslatorInterface;
 | 
			
		||||
use Symfony\Contracts\Translation\TranslatorInterface;
 | 
			
		||||
 | 
			
		||||
class ActivityDateFilter implements FilterInterface
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -25,6 +25,7 @@ use Symfony\Bridge\Doctrine\Form\Type\EntityType;
 | 
			
		||||
use Symfony\Component\Form\FormBuilderInterface;
 | 
			
		||||
use Symfony\Component\Security\Core\Role\Role;
 | 
			
		||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
 | 
			
		||||
 | 
			
		||||
use function array_key_exists;
 | 
			
		||||
use function count;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -24,6 +24,7 @@ use Symfony\Bridge\Doctrine\Form\Type\EntityType;
 | 
			
		||||
use Symfony\Component\Form\FormBuilderInterface;
 | 
			
		||||
use Symfony\Component\Security\Core\Role\Role;
 | 
			
		||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
 | 
			
		||||
 | 
			
		||||
use function count;
 | 
			
		||||
 | 
			
		||||
class ActivityTypeFilter implements ExportElementValidatedInterface, FilterInterface
 | 
			
		||||
 
 | 
			
		||||
@@ -29,8 +29,9 @@ use Symfony\Component\Form\FormError;
 | 
			
		||||
use Symfony\Component\Form\FormEvent;
 | 
			
		||||
use Symfony\Component\Form\FormEvents;
 | 
			
		||||
use Symfony\Component\Form\FormInterface;
 | 
			
		||||
use Symfony\Component\Translation\TranslatorInterface;
 | 
			
		||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
 | 
			
		||||
use Symfony\Contracts\Translation\TranslatorInterface;
 | 
			
		||||
 | 
			
		||||
use function count;
 | 
			
		||||
 | 
			
		||||
class PersonHavingActivityBetweenDateFilter implements ExportElementValidatedInterface, FilterInterface
 | 
			
		||||
 
 | 
			
		||||
@@ -48,6 +48,7 @@ use Symfony\Component\Form\FormEvent;
 | 
			
		||||
use Symfony\Component\Form\FormEvents;
 | 
			
		||||
use Symfony\Component\OptionsResolver\OptionsResolver;
 | 
			
		||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
 | 
			
		||||
 | 
			
		||||
use function in_array;
 | 
			
		||||
 | 
			
		||||
class ActivityType extends AbstractType
 | 
			
		||||
@@ -306,6 +307,7 @@ class ActivityType extends AbstractType
 | 
			
		||||
                'allow_add' => true,
 | 
			
		||||
                'button_add_label' => 'activity.Insert a document',
 | 
			
		||||
                'button_remove_label' => 'activity.Remove a document',
 | 
			
		||||
                'empty_collection_explain' => 'No documents',
 | 
			
		||||
            ]);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -36,8 +36,10 @@ class AccompanyingCourseMenuBuilder implements LocalMenuBuilderInterface
 | 
			
		||||
    {
 | 
			
		||||
        $period = $parameters['accompanyingCourse'];
 | 
			
		||||
 | 
			
		||||
        if (AccompanyingPeriod::STEP_DRAFT !== $period->getStep()
 | 
			
		||||
            && $this->security->isGranted(ActivityVoter::SEE, $period)) {
 | 
			
		||||
        if (
 | 
			
		||||
            AccompanyingPeriod::STEP_DRAFT !== $period->getStep()
 | 
			
		||||
            && $this->security->isGranted(ActivityVoter::SEE, $period)
 | 
			
		||||
        ) {
 | 
			
		||||
            $menu->addChild($this->translator->trans('Activity'), [
 | 
			
		||||
                'route' => 'chill_activity_activity_list',
 | 
			
		||||
                'routeParameters' => [
 | 
			
		||||
 
 | 
			
		||||
@@ -14,6 +14,7 @@ namespace Chill\ActivityBundle\Menu;
 | 
			
		||||
use Chill\MainBundle\Routing\LocalMenuBuilderInterface;
 | 
			
		||||
use Knp\Menu\MenuItem;
 | 
			
		||||
use Symfony\Component\Security\Core\Security;
 | 
			
		||||
 | 
			
		||||
use function in_array;
 | 
			
		||||
 | 
			
		||||
final class AdminMenuBuilder implements LocalMenuBuilderInterface
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@ use Chill\ActivityBundle\Security\Authorization\ActivityVoter;
 | 
			
		||||
use Chill\MainBundle\Routing\LocalMenuBuilderInterface;
 | 
			
		||||
use Knp\Menu\MenuItem;
 | 
			
		||||
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
 | 
			
		||||
use Symfony\Component\Translation\TranslatorInterface;
 | 
			
		||||
use Symfony\Contracts\Translation\TranslatorInterface;
 | 
			
		||||
 | 
			
		||||
class PersonMenuBuilder implements LocalMenuBuilderInterface
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,45 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Chill is a software for social workers
 | 
			
		||||
 *
 | 
			
		||||
 * For the full copyright and license information, please view
 | 
			
		||||
 * the LICENSE file that was distributed with this source code.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
declare(strict_types=1);
 | 
			
		||||
 | 
			
		||||
namespace Chill\ActivityBundle\Notification;
 | 
			
		||||
 | 
			
		||||
use Chill\ActivityBundle\Entity\Activity;
 | 
			
		||||
use Chill\ActivityBundle\Repository\ActivityRepository;
 | 
			
		||||
use Chill\MainBundle\Entity\Notification;
 | 
			
		||||
use Chill\MainBundle\Notification\NotificationHandlerInterface;
 | 
			
		||||
 | 
			
		||||
final class ActivityNotificationHandler implements NotificationHandlerInterface
 | 
			
		||||
{
 | 
			
		||||
    private ActivityRepository $activityRepository;
 | 
			
		||||
 | 
			
		||||
    public function __construct(ActivityRepository $activityRepository)
 | 
			
		||||
    {
 | 
			
		||||
        $this->activityRepository = $activityRepository;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getTemplate(Notification $notification, array $options = []): string
 | 
			
		||||
    {
 | 
			
		||||
        return '@ChillActivity/Activity/showInNotification.html.twig';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getTemplateData(Notification $notification, array $options = []): array
 | 
			
		||||
    {
 | 
			
		||||
        return [
 | 
			
		||||
            'notification' => $notification,
 | 
			
		||||
            'activity' => $this->activityRepository->find($notification->getRelatedEntityId()),
 | 
			
		||||
        ];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function supports(Notification $notification, array $options = []): bool
 | 
			
		||||
    {
 | 
			
		||||
        return $notification->getRelatedEntityClass() === Activity::class;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -1,33 +0,0 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Chill is a software for social workers
 | 
			
		||||
 *
 | 
			
		||||
 * For the full copyright and license information, please view
 | 
			
		||||
 * the LICENSE file that was distributed with this source code.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
declare(strict_types=1);
 | 
			
		||||
 | 
			
		||||
namespace Chill\ActivityBundle\Notification;
 | 
			
		||||
 | 
			
		||||
use Chill\ActivityBundle\Entity\Activity;
 | 
			
		||||
use Chill\MainBundle\Entity\Notification;
 | 
			
		||||
 | 
			
		||||
final class ActivityNotificationRenderer
 | 
			
		||||
{
 | 
			
		||||
    public function getTemplate()
 | 
			
		||||
    {
 | 
			
		||||
        return '@ChillActivity/Activity/showInNotification.html.twig';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getTemplateData(Notification $notification)
 | 
			
		||||
    {
 | 
			
		||||
        return ['notification' => $notification];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function supports(Notification $notification, array $options = []): bool
 | 
			
		||||
    {
 | 
			
		||||
        return $notification->getRelatedEntityClass() === Activity::class;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -22,6 +22,7 @@ use Doctrine\ORM\EntityManagerInterface;
 | 
			
		||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
 | 
			
		||||
use Symfony\Component\Security\Core\Role\Role;
 | 
			
		||||
use Symfony\Component\Security\Core\Security;
 | 
			
		||||
 | 
			
		||||
use function count;
 | 
			
		||||
use function in_array;
 | 
			
		||||
 | 
			
		||||
@@ -167,7 +168,9 @@ final class ActivityACLAwareRepository implements ActivityACLAwareRepositoryInte
 | 
			
		||||
            $reachableScopes = $this->authorizationHelper->getReachableScopes($this->tokenStorage->getToken()->getUser(), $role, $center);
 | 
			
		||||
            // we get the ids for those scopes
 | 
			
		||||
            $reachablesScopesId = array_map(
 | 
			
		||||
                static function (Scope $scope) { return $scope->getId(); },
 | 
			
		||||
                static function (Scope $scope) {
 | 
			
		||||
                    return $scope->getId();
 | 
			
		||||
                },
 | 
			
		||||
                $reachableScopes
 | 
			
		||||
            );
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -9,8 +9,9 @@ div.new-activity-select-type {
 | 
			
		||||
      display: flex;
 | 
			
		||||
      flex-direction: row;
 | 
			
		||||
      flex-wrap: wrap;
 | 
			
		||||
      justify-content: center;
 | 
			
		||||
      justify-content: flex-start;
 | 
			
		||||
      gap: 12px;
 | 
			
		||||
      margin-bottom: 30px;
 | 
			
		||||
 | 
			
		||||
      div.bloc {
 | 
			
		||||
         width: 200px;
 | 
			
		||||
@@ -27,26 +28,28 @@ div.new-activity-select-type {
 | 
			
		||||
// precise dashboard specific details
 | 
			
		||||
 | 
			
		||||
p.date-label {
 | 
			
		||||
    display: inline-block;
 | 
			
		||||
    margin: 0 0.5em 0 0;
 | 
			
		||||
    font-weight: 700;
 | 
			
		||||
    font-size: 18pt;
 | 
			
		||||
   display: inline-block;
 | 
			
		||||
   margin: 0 0.5em 0 0;
 | 
			
		||||
   font-weight: 700;
 | 
			
		||||
   font-size: 18pt;
 | 
			
		||||
}
 | 
			
		||||
div.dashboard,
 | 
			
		||||
h4.badge-title,
 | 
			
		||||
h3.badge-title,
 | 
			
		||||
h2.badge-title {
 | 
			
		||||
    ul.list-content {
 | 
			
		||||
        font-size: 70%;
 | 
			
		||||
        list-style-type: none;
 | 
			
		||||
        padding-left: 0;
 | 
			
		||||
        margin: 0;
 | 
			
		||||
        li {
 | 
			
		||||
            margin-bottom: 0.2em;
 | 
			
		||||
            // exception: change bg color for action badges above dashboard
 | 
			
		||||
            .bg-light {
 | 
			
		||||
                background-color: $chill-light-gray !important;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
   ul.list-content {
 | 
			
		||||
      font-size: 70%;
 | 
			
		||||
      list-style-type: none;
 | 
			
		||||
      padding-left: 0;
 | 
			
		||||
      margin: 0;
 | 
			
		||||
      li {
 | 
			
		||||
         margin-bottom: 0.2em;
 | 
			
		||||
         // exception: change bg color for action badges above dashboard
 | 
			
		||||
         .bg-light {
 | 
			
		||||
               background-color: $chill-light-gray !important;
 | 
			
		||||
         }
 | 
			
		||||
      }
 | 
			
		||||
   }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
//// ACTIVITY SHOW AND FORM PAGES
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@ import Location from './components/Location.vue';
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
   name: "App",
 | 
			
		||||
    props: ['hasSocialIssues', 'hasLocation', 'hasPerson'],
 | 
			
		||||
   props: ['hasSocialIssues', 'hasLocation', 'hasPerson'],
 | 
			
		||||
   components: {
 | 
			
		||||
      ConcernedGroups,
 | 
			
		||||
      SocialIssuesAcc,
 | 
			
		||||
 
 | 
			
		||||
@@ -17,6 +17,14 @@ const getLocations = () => fetchResults('/api/1.0/main/location.json');
 | 
			
		||||
 | 
			
		||||
const getLocationTypes = () => fetchResults('/api/1.0/main/location-type.json');
 | 
			
		||||
 | 
			
		||||
const getUserCurrentLocation = 
 | 
			
		||||
    () => fetch('/api/1.0/main/user-current-location.json')
 | 
			
		||||
        .then(response => {
 | 
			
		||||
            if (response.ok) { return response.json(); }
 | 
			
		||||
            throw Error('Error with request resource response');
 | 
			
		||||
         });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
*   Load Location Type by defaultFor
 | 
			
		||||
*   @param {string} entity - can be "person" or "thirdparty"
 | 
			
		||||
@@ -48,5 +56,6 @@ export {
 | 
			
		||||
   getLocations,
 | 
			
		||||
   getLocationTypes,
 | 
			
		||||
   getLocationTypeByDefaultFor,
 | 
			
		||||
   postLocation
 | 
			
		||||
   postLocation,
 | 
			
		||||
   getUserCurrentLocation
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
@@ -1,45 +1,52 @@
 | 
			
		||||
<template>
 | 
			
		||||
    <teleport to="#add-persons" v-if="isComponentVisible">
 | 
			
		||||
   <teleport to="#add-persons" v-if="isComponentVisible">
 | 
			
		||||
 | 
			
		||||
        <div class="flex-bloc concerned-groups" :class="getContext">
 | 
			
		||||
            <persons-bloc
 | 
			
		||||
                v-for="bloc in contextPersonsBlocs"
 | 
			
		||||
                v-bind:key="bloc.key"
 | 
			
		||||
                v-bind:bloc="bloc"
 | 
			
		||||
                v-bind:blocWidth="getBlocWidth"
 | 
			
		||||
                v-bind:setPersonsInBloc="setPersonsInBloc">
 | 
			
		||||
            </persons-bloc>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div v-if="getContext === 'accompanyingCourse' && suggestedEntities.length > 0">
 | 
			
		||||
            <ul class="list-suggest add-items inline">
 | 
			
		||||
                <li v-for="p in suggestedEntities" @click="addSuggestedEntity(p)">
 | 
			
		||||
                    <span>{{ p.text }}</span>
 | 
			
		||||
                </li>
 | 
			
		||||
            </ul>
 | 
			
		||||
        </div>
 | 
			
		||||
      <div class="flex-bloc concerned-groups" :class="getContext">
 | 
			
		||||
         <persons-bloc
 | 
			
		||||
               v-for="bloc in contextPersonsBlocs"
 | 
			
		||||
               v-bind:key="bloc.key"
 | 
			
		||||
               v-bind:bloc="bloc"
 | 
			
		||||
               v-bind:blocWidth="getBlocWidth"
 | 
			
		||||
               v-bind:setPersonsInBloc="setPersonsInBloc">
 | 
			
		||||
         </persons-bloc>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div v-if="getContext === 'accompanyingCourse' && suggestedEntities.length > 0">
 | 
			
		||||
         <ul class="list-suggest add-items inline">
 | 
			
		||||
               <li v-for="(p, i) in suggestedEntities" @click="addSuggestedEntity(p)" :key="`suggestedEntities-${i}`">
 | 
			
		||||
                  <person-text v-if="p.type === 'person'" :person="p"></person-text>
 | 
			
		||||
                  <span v-else>{{ p.text }}</span>
 | 
			
		||||
               </li>
 | 
			
		||||
         </ul>
 | 
			
		||||
      </div>
 | 
			
		||||
 | 
			
		||||
        <add-persons
 | 
			
		||||
            buttonTitle="activity.add_persons"
 | 
			
		||||
            modalTitle="activity.add_persons"
 | 
			
		||||
            v-bind:key="addPersons.key"
 | 
			
		||||
            v-bind:options="addPersonsOptions"
 | 
			
		||||
            @addNewPersons="addNewPersons"
 | 
			
		||||
            ref="addPersons">
 | 
			
		||||
        </add-persons>
 | 
			
		||||
      <ul class="record_actions">
 | 
			
		||||
         <li class="add-persons">
 | 
			
		||||
            <add-persons
 | 
			
		||||
               buttonTitle="activity.add_persons"
 | 
			
		||||
               modalTitle="activity.add_persons"
 | 
			
		||||
               v-bind:key="addPersons.key"
 | 
			
		||||
               v-bind:options="addPersonsOptions"
 | 
			
		||||
               @addNewPersons="addNewPersons"
 | 
			
		||||
               ref="addPersons">
 | 
			
		||||
            </add-persons>
 | 
			
		||||
         </li>
 | 
			
		||||
      </ul>
 | 
			
		||||
 | 
			
		||||
    </teleport>
 | 
			
		||||
   </teleport>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import { mapState, mapGetters } from 'vuex';
 | 
			
		||||
import AddPersons from 'ChillPersonAssets/vuejs/_components/AddPersons.vue';
 | 
			
		||||
import PersonsBloc from './ConcernedGroups/PersonsBloc.vue';
 | 
			
		||||
import PersonText from 'ChillPersonAssets/vuejs/_components/Entity/PersonText.vue';
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
   name: "ConcernedGroups",
 | 
			
		||||
   components: {
 | 
			
		||||
      AddPersons,
 | 
			
		||||
      PersonsBloc
 | 
			
		||||
      PersonsBloc,
 | 
			
		||||
      PersonText
 | 
			
		||||
   },
 | 
			
		||||
   data() {
 | 
			
		||||
      return {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,22 +1,29 @@
 | 
			
		||||
<template>
 | 
			
		||||
   <li>
 | 
			
		||||
      <span :title="person.text">
 | 
			
		||||
         <span class="chill_denomination">{{ textCutted }}</span>
 | 
			
		||||
         <a @click.prevent="$emit('remove', person)"></a>
 | 
			
		||||
      <span :title="person.text" @click.prevent="$emit('remove', person)">
 | 
			
		||||
         <span class="chill_denomination">
 | 
			
		||||
            <person-text :person="person" :isCut="true"></person-text>
 | 
			
		||||
         </span>
 | 
			
		||||
      </span>
 | 
			
		||||
   </li>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import PersonText from 'ChillPersonAssets/vuejs/_components/Entity/PersonText.vue';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
   name: "PersonBadge",
 | 
			
		||||
   props: ['person'],
 | 
			
		||||
   computed: {
 | 
			
		||||
      textCutted() {
 | 
			
		||||
         let more = (this.person.text.length > 15) ?'…' : '';
 | 
			
		||||
         return this.person.text.slice(0,15) + more;
 | 
			
		||||
      }
 | 
			
		||||
   components: {
 | 
			
		||||
      PersonText
 | 
			
		||||
   },
 | 
			
		||||
   // computed: {
 | 
			
		||||
   //    textCutted() {
 | 
			
		||||
   //       let more = (this.person.text.length > 15) ?'…' : '';
 | 
			
		||||
   //       return this.person.text.slice(0,15) + more;
 | 
			
		||||
   //    }
 | 
			
		||||
   // },
 | 
			
		||||
   emits: ['remove'],
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 
 | 
			
		||||
@@ -15,14 +15,16 @@
 | 
			
		||||
                    :searchable="true"
 | 
			
		||||
                    :placeholder="$t('activity.choose_location')"
 | 
			
		||||
                    :custom-label="customLabel"
 | 
			
		||||
                    :options="locations"
 | 
			
		||||
                    :select-label="$t('multiselect.select_label')"
 | 
			
		||||
                    :deselect-label="$t('multiselect.deselect_label')"
 | 
			
		||||
                    :selected-label="$t('multiselect.selected_label')"
 | 
			
		||||
                    :options="availableLocations"
 | 
			
		||||
                    group-values="locations"
 | 
			
		||||
                    group-label="locationGroup"
 | 
			
		||||
                    v-model="location"
 | 
			
		||||
                >
 | 
			
		||||
                </VueMultiselect>
 | 
			
		||||
 | 
			
		||||
                <new-location v-bind:locations="locations"></new-location>
 | 
			
		||||
                <new-location v-bind:availableLocations="availableLocations"></new-location>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
    </teleport>
 | 
			
		||||
@@ -32,7 +34,6 @@
 | 
			
		||||
import { mapState, mapGetters } from "vuex";
 | 
			
		||||
import VueMultiselect from "vue-multiselect";
 | 
			
		||||
import NewLocation from "./Location/NewLocation.vue";
 | 
			
		||||
import { getLocations, getLocationTypeByDefaultFor } from "../api.js";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
    name: "Location",
 | 
			
		||||
@@ -40,13 +41,8 @@ export default {
 | 
			
		||||
        NewLocation,
 | 
			
		||||
        VueMultiselect,
 | 
			
		||||
    },
 | 
			
		||||
    data() {
 | 
			
		||||
        return {
 | 
			
		||||
            locations: [],
 | 
			
		||||
        };
 | 
			
		||||
    },
 | 
			
		||||
    computed: {
 | 
			
		||||
        ...mapState(["activity"]),
 | 
			
		||||
        ...mapState(["activity", "availableLocations"]),
 | 
			
		||||
        ...mapGetters(["suggestedEntities"]),
 | 
			
		||||
        location: {
 | 
			
		||||
            get() {
 | 
			
		||||
@@ -57,53 +53,6 @@ export default {
 | 
			
		||||
            },
 | 
			
		||||
        },
 | 
			
		||||
    },
 | 
			
		||||
    mounted() {
 | 
			
		||||
        getLocations().then(
 | 
			
		||||
            (results) => {
 | 
			
		||||
                getLocationTypeByDefaultFor('person').then(
 | 
			
		||||
                    (personLocationType) => {
 | 
			
		||||
                        if (personLocationType) {
 | 
			
		||||
                            const personLocation = this.makeAccompanyingPeriodLocation(personLocationType);
 | 
			
		||||
                            const concernedPersonsLocation =
 | 
			
		||||
                                this.makeConcernedPersonsLocation(personLocationType);
 | 
			
		||||
                            getLocationTypeByDefaultFor('thirdparty').then(
 | 
			
		||||
                                thirdpartyLocationType => {
 | 
			
		||||
                                    const concernedThirdPartiesLocation =
 | 
			
		||||
                                        this.makeConcernedThirdPartiesLocation(thirdpartyLocationType);
 | 
			
		||||
                                    this.locations = [
 | 
			
		||||
                                        {
 | 
			
		||||
                                            locationGroup: 'Localisation du parcours',
 | 
			
		||||
                                            locations: [personLocation]
 | 
			
		||||
                                        },
 | 
			
		||||
                                        {
 | 
			
		||||
                                            locationGroup: 'Parties concernées',
 | 
			
		||||
                                            locations: [...concernedPersonsLocation, ...concernedThirdPartiesLocation]
 | 
			
		||||
                                        },
 | 
			
		||||
                                        {
 | 
			
		||||
                                            locationGroup: 'Autres localisations',
 | 
			
		||||
                                            locations: results
 | 
			
		||||
                                        }
 | 
			
		||||
                                    ];
 | 
			
		||||
                                }
 | 
			
		||||
                            )
 | 
			
		||||
                        } else {
 | 
			
		||||
                            this.locations = [
 | 
			
		||||
                                {
 | 
			
		||||
                                    locationGroup: 'Localisations',
 | 
			
		||||
                                    locations: response.results
 | 
			
		||||
                                }
 | 
			
		||||
                            ];
 | 
			
		||||
                        }
 | 
			
		||||
                        if (window.default_location_id) {
 | 
			
		||||
                            let location = this.locations.filter(
 | 
			
		||||
                                (l) => l.id === window.default_location_id
 | 
			
		||||
                            );
 | 
			
		||||
                            this.$store.dispatch("updateLocation", location);
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                )
 | 
			
		||||
            })
 | 
			
		||||
    },
 | 
			
		||||
    methods: {
 | 
			
		||||
        labelAccompanyingCourseLocation(value) {
 | 
			
		||||
            return `${value.address.text} (${value.locationType.title.fr})`
 | 
			
		||||
@@ -117,58 +66,6 @@ export default {
 | 
			
		||||
                    : value.locationType.title.fr
 | 
			
		||||
                : '';
 | 
			
		||||
        },
 | 
			
		||||
        makeConcernedPersonsLocation(locationType) {
 | 
			
		||||
            let locations = [];
 | 
			
		||||
            this.suggestedEntities.forEach(
 | 
			
		||||
                (e) => {
 | 
			
		||||
                    if (e.type === 'person' && e.current_household_address !== null){
 | 
			
		||||
                        locations.push({
 | 
			
		||||
                            type: 'location',
 | 
			
		||||
                            id: -this.suggestedEntities.indexOf(e)*10,
 | 
			
		||||
                            onthefly: true,
 | 
			
		||||
                            name: e.text,
 | 
			
		||||
                            address: {
 | 
			
		||||
                                id: e.current_household_address.address_id,
 | 
			
		||||
                            },
 | 
			
		||||
                            locationType: locationType
 | 
			
		||||
                        });
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            )
 | 
			
		||||
            return locations;
 | 
			
		||||
        },
 | 
			
		||||
        makeConcernedThirdPartiesLocation(locationType) {
 | 
			
		||||
            let locations = [];
 | 
			
		||||
            this.suggestedEntities.forEach(
 | 
			
		||||
                (e) => {
 | 
			
		||||
                    if (e.type === 'thirdparty' && e.address !== null){
 | 
			
		||||
                        locations.push({
 | 
			
		||||
                            type: 'location',
 | 
			
		||||
                            id: -this.suggestedEntities.indexOf(e)*10,
 | 
			
		||||
                            onthefly: true,
 | 
			
		||||
                            name: e.text,
 | 
			
		||||
                            address: { id: e.address.address_id },
 | 
			
		||||
                            locationType: locationType
 | 
			
		||||
                        });
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            )
 | 
			
		||||
            return locations;
 | 
			
		||||
        },
 | 
			
		||||
        makeAccompanyingPeriodLocation(locationType) {
 | 
			
		||||
            const accPeriodLocation = this.activity.accompanyingPeriod.location;
 | 
			
		||||
            return {
 | 
			
		||||
                type: 'location',
 | 
			
		||||
                id: -1,
 | 
			
		||||
                onthefly: true,
 | 
			
		||||
                name: '__AccompanyingCourseLocation__',
 | 
			
		||||
                address: {
 | 
			
		||||
                    id: accPeriodLocation.address_id,
 | 
			
		||||
                    text: `${accPeriodLocation.text} - ${accPeriodLocation.postcode.code} ${accPeriodLocation.postcode.name}`
 | 
			
		||||
                },
 | 
			
		||||
                locationType: locationType
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
};
 | 
			
		||||
</script>
 | 
			
		||||
 
 | 
			
		||||
@@ -18,15 +18,6 @@
 | 
			
		||||
                </template>
 | 
			
		||||
                <template v-slot:body>
 | 
			
		||||
                    <form>
 | 
			
		||||
                        <div class="form-floating mb-3">
 | 
			
		||||
                            <p v-if="errors.length">
 | 
			
		||||
                                <b>{{ $t('activity.errors') }}</b>
 | 
			
		||||
                                <ul>
 | 
			
		||||
                                    <li v-for="error in errors" :key="error">{{ error }}</li>
 | 
			
		||||
                                </ul>
 | 
			
		||||
                            </p>
 | 
			
		||||
                        </div>
 | 
			
		||||
 | 
			
		||||
                        <div class="form-floating mb-3">
 | 
			
		||||
                            <select class="form-select form-select-lg" id="type" required v-model="selectType">
 | 
			
		||||
                                <option selected disabled value="">{{ $t('activity.choose_location_type') }}</option>
 | 
			
		||||
@@ -62,6 +53,12 @@
 | 
			
		||||
                            <input class="form-control form-control-lg" id="email" v-model="inputEmail" placeholder />
 | 
			
		||||
                            <label for="email">{{ $t('activity.location_fields.email') }}</label>
 | 
			
		||||
                        </div>
 | 
			
		||||
 | 
			
		||||
                        <div class="alert alert-warning" v-if="errors.length">
 | 
			
		||||
                            <ul>
 | 
			
		||||
                                <li v-for="(e, i) in errors" :key="i">{{ e }}</li>
 | 
			
		||||
                            </ul>
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </form>
 | 
			
		||||
                </template>
 | 
			
		||||
                <template v-slot:footer>
 | 
			
		||||
@@ -81,7 +78,8 @@
 | 
			
		||||
import Modal from 'ChillMainAssets/vuejs/_components/Modal.vue';
 | 
			
		||||
import AddAddress from "ChillMainAssets/vuejs/Address/components/AddAddress.vue";
 | 
			
		||||
import { mapState } from "vuex";
 | 
			
		||||
import { getLocationTypes, postLocation } from "../../api";
 | 
			
		||||
import { getLocationTypes } from "../../api";
 | 
			
		||||
import { makeFetch } from 'ChillMainAssets/lib/api/apiMethods';
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
    name: "NewLocation",
 | 
			
		||||
@@ -89,7 +87,7 @@ export default {
 | 
			
		||||
        Modal,
 | 
			
		||||
        AddAddress,
 | 
			
		||||
    },
 | 
			
		||||
    props: ['locations'],
 | 
			
		||||
    props: ['availableLocations'],
 | 
			
		||||
    data() {
 | 
			
		||||
        return {
 | 
			
		||||
            errors: [],
 | 
			
		||||
@@ -223,7 +221,6 @@ export default {
 | 
			
		||||
        },
 | 
			
		||||
        saveNewLocation() {
 | 
			
		||||
            if (this.checkForm()) {
 | 
			
		||||
                console.log('saveNewLocation', this.selected);
 | 
			
		||||
                let body = {
 | 
			
		||||
                    type: 'location',
 | 
			
		||||
                    name: this.selected.name,
 | 
			
		||||
@@ -242,23 +239,28 @@ export default {
 | 
			
		||||
                        }
 | 
			
		||||
                    });
 | 
			
		||||
                }
 | 
			
		||||
                postLocation(body)
 | 
			
		||||
                    .then(
 | 
			
		||||
                        location => new Promise(resolve => {
 | 
			
		||||
                            this.locations.push(location);
 | 
			
		||||
                            this.$store.dispatch('updateLocation', location);
 | 
			
		||||
                            resolve();
 | 
			
		||||
                            this.modal.showModal = false;
 | 
			
		||||
                        })
 | 
			
		||||
                    ).catch(
 | 
			
		||||
                        err => {
 | 
			
		||||
                            this.errors.push(err.message);
 | 
			
		||||
 | 
			
		||||
                makeFetch('POST', '/api/1.0/main/location.json', body)
 | 
			
		||||
                    .then(response => {
 | 
			
		||||
                         this.$store.dispatch('addAvailableLocationGroup', {
 | 
			
		||||
                            locationGroup: 'Localisations nouvellement créées',
 | 
			
		||||
                            locations: [response]
 | 
			
		||||
                        });
 | 
			
		||||
                        this.$store.dispatch('updateLocation', response);
 | 
			
		||||
                        this.modal.showModal = false;
 | 
			
		||||
                    })
 | 
			
		||||
                    .catch((error) => {
 | 
			
		||||
                        if (error.name === 'ValidationException') {
 | 
			
		||||
                            for (let v of error.violations) {
 | 
			
		||||
                                this.errors.push(v);
 | 
			
		||||
                            }
 | 
			
		||||
                        } else {
 | 
			
		||||
                            this.errors.push('An error occurred');
 | 
			
		||||
                        }
 | 
			
		||||
                    );
 | 
			
		||||
                    })
 | 
			
		||||
            };
 | 
			
		||||
        },
 | 
			
		||||
        submitNewAddress(payload) {
 | 
			
		||||
            console.log('submitNewAddress', payload);
 | 
			
		||||
            this.selected.addressId = payload.addressId;
 | 
			
		||||
            this.addAddress.context.addressId = payload.addressId;
 | 
			
		||||
            this.addAddress.context.edit = true;
 | 
			
		||||
 
 | 
			
		||||
@@ -9,9 +9,9 @@
 | 
			
		||||
 | 
			
		||||
            <check-social-issue
 | 
			
		||||
               v-for="issue in socialIssuesList"
 | 
			
		||||
               v-bind:key="issue.id"
 | 
			
		||||
               v-bind:issue="issue"
 | 
			
		||||
               v-bind:selection="socialIssuesSelected"
 | 
			
		||||
               :key="issue.id"
 | 
			
		||||
               :issue="issue"
 | 
			
		||||
               :selection="socialIssuesSelected"
 | 
			
		||||
               @updateSelected="updateIssuesSelected">
 | 
			
		||||
            </check-social-issue>
 | 
			
		||||
 | 
			
		||||
@@ -21,18 +21,18 @@
 | 
			
		||||
               label="text"
 | 
			
		||||
               track-by="id"
 | 
			
		||||
               open-direction="bottom"
 | 
			
		||||
               v-bind:close-on-select="true"
 | 
			
		||||
               v-bind:preserve-search="false"
 | 
			
		||||
               v-bind:reset-after="true"
 | 
			
		||||
               v-bind:hide-selected="true"
 | 
			
		||||
               v-bind:taggable="false"
 | 
			
		||||
               v-bind:multiple="false"
 | 
			
		||||
               v-bind:searchable="true"
 | 
			
		||||
               v-bind:allow-empty="true"
 | 
			
		||||
               v-bind:show-labels="false"
 | 
			
		||||
               v-bind:loading="issueIsLoading"
 | 
			
		||||
               v-bind:placeholder="$t('activity.choose_other_social_issue')"
 | 
			
		||||
               v-bind:options="socialIssuesOther"
 | 
			
		||||
               :close-on-select="true"
 | 
			
		||||
               :preserve-search="false"
 | 
			
		||||
               :reset-after="true"
 | 
			
		||||
               :hide-selected="true"
 | 
			
		||||
               :taggable="false"
 | 
			
		||||
               :multiple="false"
 | 
			
		||||
               :searchable="true"
 | 
			
		||||
               :allow-empty="true"
 | 
			
		||||
               :show-labels="false"
 | 
			
		||||
               :loading="issueIsLoading"
 | 
			
		||||
               :placeholder="$t('activity.choose_other_social_issue')"
 | 
			
		||||
               :options="socialIssuesOther"
 | 
			
		||||
               @select="addIssueInList">
 | 
			
		||||
            </VueMultiselect>
 | 
			
		||||
            </div>
 | 
			
		||||
@@ -58,9 +58,9 @@
 | 
			
		||||
                 <check-social-action
 | 
			
		||||
                     v-if="socialIssuesSelected.length || socialActionsSelected.length"
 | 
			
		||||
                     v-for="action in socialActionsList"
 | 
			
		||||
                     v-bind:key="action.id"
 | 
			
		||||
                     v-bind:action="action"
 | 
			
		||||
                     v-bind:selection="socialActionsSelected"
 | 
			
		||||
                     :key="action.id"
 | 
			
		||||
                     :action="action"
 | 
			
		||||
                     :selection="socialActionsSelected"
 | 
			
		||||
                     @updateSelected="updateActionsSelected">
 | 
			
		||||
                 </check-social-action>
 | 
			
		||||
             </template>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
import { personMessages } from 'ChillPersonAssets/vuejs/_js/i18n'
 | 
			
		||||
import { multiSelectMessages } from 'ChillMainAssets/vuejs/_js/i18n'
 | 
			
		||||
 | 
			
		||||
const activityMessages = {
 | 
			
		||||
   fr: {
 | 
			
		||||
@@ -33,12 +34,11 @@ const activityMessages = {
 | 
			
		||||
          },
 | 
			
		||||
          create_address: 'Créer une adresse',
 | 
			
		||||
          edit_address: "Modifier l'adresse"
 | 
			
		||||
 | 
			
		||||
      }
 | 
			
		||||
   }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Object.assign(activityMessages.fr, personMessages.fr);
 | 
			
		||||
Object.assign(activityMessages.fr, personMessages.fr, multiSelectMessages.fr);
 | 
			
		||||
 | 
			
		||||
export {
 | 
			
		||||
   activityMessages
 | 
			
		||||
 
 | 
			
		||||
@@ -2,17 +2,25 @@ import { createApp } from 'vue';
 | 
			
		||||
import { _createI18n } from 'ChillMainAssets/vuejs/_js/i18n'
 | 
			
		||||
import { activityMessages } from './i18n'
 | 
			
		||||
import store from './store'
 | 
			
		||||
import PickTemplate from 'ChillDocGeneratorAssets/vuejs/_components/PickTemplate.vue';
 | 
			
		||||
import {fetchTemplates} from 'ChillDocGeneratorAssets/api/pickTemplate.js';
 | 
			
		||||
 | 
			
		||||
import App from './App.vue';
 | 
			
		||||
 | 
			
		||||
const i18n = _createI18n(activityMessages);
 | 
			
		||||
 | 
			
		||||
// app for activity
 | 
			
		||||
 | 
			
		||||
const hasSocialIssues = document.querySelector('#social-issues-acc') !== null;
 | 
			
		||||
const hasLocation = document.querySelector('#location') !== null;
 | 
			
		||||
const hasPerson = document.querySelector('#add-persons') !== null;
 | 
			
		||||
 | 
			
		||||
const app = createApp({
 | 
			
		||||
   template: `<app :hasSocialIssues="hasSocialIssues", :hasLocation="hasLocation", :hasPerson="hasPerson"></app>`,
 | 
			
		||||
   template: `<app
 | 
			
		||||
       :hasSocialIssues="hasSocialIssues"
 | 
			
		||||
       :hasLocation="hasLocation"
 | 
			
		||||
       :hasPerson="hasPerson"
 | 
			
		||||
    ></app>`,
 | 
			
		||||
    data() {
 | 
			
		||||
       return {
 | 
			
		||||
           hasSocialIssues,
 | 
			
		||||
@@ -25,3 +33,54 @@ const app = createApp({
 | 
			
		||||
.use(i18n)
 | 
			
		||||
.component('app', App)
 | 
			
		||||
.mount('#activity');
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// app for picking template
 | 
			
		||||
 | 
			
		||||
const i18nGendoc = _createI18n({});
 | 
			
		||||
 | 
			
		||||
document.querySelectorAll('div[data-docgen-template-picker]').forEach(el => {
 | 
			
		||||
    fetchTemplates(el.dataset.entityClass).then(templates => {
 | 
			
		||||
        const picker = {
 | 
			
		||||
            template:
 | 
			
		||||
                '<pick-template :templates="this.templates" :preventDefaultMoveToGenerate="true" ' +
 | 
			
		||||
                    ':entityClass="faked" @go-to-generate-document="generateDoc"></pick-template>',
 | 
			
		||||
            components: {
 | 
			
		||||
                PickTemplate,
 | 
			
		||||
            },
 | 
			
		||||
            data() {
 | 
			
		||||
                return {
 | 
			
		||||
                    templates: templates,
 | 
			
		||||
                    entityId: el.dataset.entityId,
 | 
			
		||||
                }
 | 
			
		||||
            },
 | 
			
		||||
            methods: {
 | 
			
		||||
                generateDoc({event, link, template}) {
 | 
			
		||||
                    console.log('generateDoc');
 | 
			
		||||
                    console.log('link', link);
 | 
			
		||||
                    console.log('template', template);
 | 
			
		||||
 | 
			
		||||
                    let hiddenInput = document.querySelector("input[data-template-id]");
 | 
			
		||||
 | 
			
		||||
                    if (hiddenInput === null) {
 | 
			
		||||
                        console.error('hidden input not found');
 | 
			
		||||
                        return;
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    hiddenInput.value = template;
 | 
			
		||||
 | 
			
		||||
                    let form = document.querySelector('form[name="chill_activitybundle_activity"');
 | 
			
		||||
 | 
			
		||||
                    if (form === null) {
 | 
			
		||||
                        console.error('form not found');
 | 
			
		||||
                        return;
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    form.submit();
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        };
 | 
			
		||||
        createApp(picker).use(i18nGendoc).mount(el);
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
import 'es6-promise/auto';
 | 
			
		||||
import { createStore } from 'vuex';
 | 
			
		||||
import { postLocation } from './api';
 | 
			
		||||
import prepareLocations from './store.locations.js';
 | 
			
		||||
 | 
			
		||||
const debug = process.env.NODE_ENV !== 'production';
 | 
			
		||||
//console.log('window.activity', window.activity);
 | 
			
		||||
@@ -25,6 +26,7 @@ const store = createStore({
 | 
			
		||||
        activity: window.activity,
 | 
			
		||||
        socialIssuesOther: [],
 | 
			
		||||
        socialActionsList: [],
 | 
			
		||||
        availableLocations: [],
 | 
			
		||||
    },
 | 
			
		||||
    getters: {
 | 
			
		||||
        suggestedEntities(state) {
 | 
			
		||||
@@ -200,6 +202,9 @@ const store = createStore({
 | 
			
		||||
            console.log("### mutation: updateLocation", value);
 | 
			
		||||
            state.activity.location = value;
 | 
			
		||||
        },
 | 
			
		||||
        addAvailableLocationGroup(state, group) {
 | 
			
		||||
            state.availableLocations.push(group);
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    actions: {
 | 
			
		||||
        addIssueSelected({ commit }, issue) {
 | 
			
		||||
@@ -235,6 +240,9 @@ const store = createStore({
 | 
			
		||||
            });
 | 
			
		||||
            commit("updateActionsSelected", payload);
 | 
			
		||||
        },
 | 
			
		||||
        addAvailableLocationGroup({ commit }, payload) {
 | 
			
		||||
            commit("addAvailableLocationGroup", payload);
 | 
			
		||||
        },
 | 
			
		||||
        addPersonsInvolved({ commit }, payload) {
 | 
			
		||||
            //console.log('### action addPersonsInvolved', payload.result.type);
 | 
			
		||||
            switch (payload.result.type) {
 | 
			
		||||
@@ -335,4 +343,6 @@ const store = createStore({
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
prepareLocations(store);
 | 
			
		||||
 | 
			
		||||
export default store;
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,121 @@
 | 
			
		||||
import {getLocations, getLocationTypeByDefaultFor, getUserCurrentLocation} from "./api";
 | 
			
		||||
 | 
			
		||||
const makeConcernedPersonsLocation = (locationType, store) => {
 | 
			
		||||
    let locations = [];
 | 
			
		||||
    store.getters.suggestedEntities.forEach(
 | 
			
		||||
        (e) => {
 | 
			
		||||
            if (e.type === 'person' && e.current_household_address !== null){
 | 
			
		||||
                locations.push({
 | 
			
		||||
                    type: 'location',
 | 
			
		||||
                    id: -store.getters.suggestedEntities.indexOf(e)*10,
 | 
			
		||||
                    onthefly: true,
 | 
			
		||||
                    name: e.text,
 | 
			
		||||
                    address: {
 | 
			
		||||
                        id: e.current_household_address.address_id,
 | 
			
		||||
                    },
 | 
			
		||||
                    locationType: locationType
 | 
			
		||||
                });
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    )
 | 
			
		||||
    return locations;
 | 
			
		||||
};
 | 
			
		||||
const makeConcernedThirdPartiesLocation = (locationType, store) => {
 | 
			
		||||
    let locations = [];
 | 
			
		||||
    store.getters.suggestedEntities.forEach(
 | 
			
		||||
        (e) => {
 | 
			
		||||
            if (e.type === 'thirdparty' && e.address !== null){
 | 
			
		||||
                locations.push({
 | 
			
		||||
                    type: 'location',
 | 
			
		||||
                    id: -store.getters.suggestedEntities.indexOf(e)*10,
 | 
			
		||||
                    onthefly: true,
 | 
			
		||||
                    name: e.text,
 | 
			
		||||
                    address: { id: e.address.address_id },
 | 
			
		||||
                    locationType: locationType
 | 
			
		||||
                });
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    )
 | 
			
		||||
    return locations;
 | 
			
		||||
};
 | 
			
		||||
const makeAccompanyingPeriodLocation = (locationType, store) => {
 | 
			
		||||
    const accPeriodLocation = store.state.activity.accompanyingPeriod.location;
 | 
			
		||||
    return {
 | 
			
		||||
        type: 'location',
 | 
			
		||||
        id: -1,
 | 
			
		||||
        onthefly: true,
 | 
			
		||||
        name: '__AccompanyingCourseLocation__',
 | 
			
		||||
        address: {
 | 
			
		||||
            id: accPeriodLocation.address_id,
 | 
			
		||||
            text: `${accPeriodLocation.text} - ${accPeriodLocation.postcode.code} ${accPeriodLocation.postcode.name}`
 | 
			
		||||
        },
 | 
			
		||||
        locationType: locationType
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export default function prepareLocations(store) {
 | 
			
		||||
 | 
			
		||||
// find the locations
 | 
			
		||||
    let allLocations = getLocations().then(
 | 
			
		||||
        (results) => {
 | 
			
		||||
            store.commit('addAvailableLocationGroup', {
 | 
			
		||||
                locationGroup: 'Autres localisations',
 | 
			
		||||
                locations: results
 | 
			
		||||
            });
 | 
			
		||||
        }
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
    let currentLocation = getUserCurrentLocation().then(
 | 
			
		||||
        userCurrentLocation => {
 | 
			
		||||
            if (null !== userCurrentLocation) {
 | 
			
		||||
                store.commit('addAvailableLocationGroup', {
 | 
			
		||||
                    locationGroup: 'Ma localisation',
 | 
			
		||||
                    locations: [userCurrentLocation]
 | 
			
		||||
                });
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
    let partiesLocations = [], partyPromise;
 | 
			
		||||
    ['person', 'thirdparty'].forEach(kind => {
 | 
			
		||||
        partyPromise = getLocationTypeByDefaultFor(kind).then(
 | 
			
		||||
            (kindLocationType) => {
 | 
			
		||||
                if (kindLocationType) {
 | 
			
		||||
                    let concernedKindLocations;
 | 
			
		||||
                    if (kind === 'person') {
 | 
			
		||||
                        concernedKindLocations = makeConcernedPersonsLocation(kindLocationType, store);
 | 
			
		||||
                        // add location for the parcours into suggestions
 | 
			
		||||
                        const personLocation = makeAccompanyingPeriodLocation(kindLocationType, store);
 | 
			
		||||
                        store.commit('addAvailableLocationGroup', {
 | 
			
		||||
                            locationGroup: 'Localisation du parcours',
 | 
			
		||||
                            locations: [personLocation]
 | 
			
		||||
                        });
 | 
			
		||||
                    } else {
 | 
			
		||||
                        concernedKindLocations = makeConcernedThirdPartiesLocation(kindLocationType, store);
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    store.commit('addAvailableLocationGroup', {
 | 
			
		||||
                        locationGroup: kind === 'person' ? 'Usagers concernés' : 'Tiers concernés',
 | 
			
		||||
                        locations: concernedKindLocations,
 | 
			
		||||
                    });
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        );
 | 
			
		||||
        partiesLocations.push(partyPromise);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
// when all location are loaded
 | 
			
		||||
    Promise.all([allLocations, currentLocation, ...partiesLocations]).then(() => {
 | 
			
		||||
        console.log('current location in activity', store.state.activity.location);
 | 
			
		||||
        console.log('default loation id', window.default_location_id);
 | 
			
		||||
        if (window.default_location_id) {
 | 
			
		||||
            for (let group of store.state.availableLocations) {
 | 
			
		||||
                let location = group.locations.find((l) => l.id === window.default_location_id);
 | 
			
		||||
                if (location !== undefined & store.state.activity.location === null) {
 | 
			
		||||
                    store.dispatch('updateLocation', location);
 | 
			
		||||
                    break;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
@@ -18,7 +18,8 @@ use Symfony\Component\HttpFoundation\Request;
 | 
			
		||||
 | 
			
		||||
// This check prevents access to debug front controllers that are deployed by accident to production servers.
 | 
			
		||||
// Feel free to remove this, extend it, or make something more sophisticated.
 | 
			
		||||
if (isset($_SERVER['HTTP_CLIENT_IP'])
 | 
			
		||||
if (
 | 
			
		||||
    isset($_SERVER['HTTP_CLIENT_IP'])
 | 
			
		||||
    || isset($_SERVER['HTTP_X_FORWARDED_FOR'])
 | 
			
		||||
    || !(in_array($_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1'], true) || \PHP_SAPI === 'cli-server')
 | 
			
		||||
) {
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,170 @@
 | 
			
		||||
{% set t = activity.type %}
 | 
			
		||||
<div class="item-bloc activity-item{% if itemBlocClass is defined %} {{ itemBlocClass }}{% endif %}">
 | 
			
		||||
 | 
			
		||||
    <div class="item-row">
 | 
			
		||||
        <div class="wrap-list">
 | 
			
		||||
            <div class="wl-row">
 | 
			
		||||
                <div class="wl-col title">
 | 
			
		||||
                    {% if activity.date %}
 | 
			
		||||
                        <p class="date-label">
 | 
			
		||||
                            {{ activity.date|format_date('short') }}
 | 
			
		||||
                        </p>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="wl-col list">
 | 
			
		||||
                    <h2 class="badge-title">
 | 
			
		||||
                        <span class="title_label"></span>
 | 
			
		||||
                        <span class="title_action">
 | 
			
		||||
                            {{ activity.type.name | localize_translatable_string }}
 | 
			
		||||
 | 
			
		||||
                            {% if activity.emergency %}
 | 
			
		||||
                                <span class="badge bg-danger rounded-pill fs-6 float-end">{{ 'Emergency'|trans|upper }}</span>
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
                        </span>
 | 
			
		||||
                    </h2>
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="item-row column separator">
 | 
			
		||||
        <div class="wrap-list">
 | 
			
		||||
            {% if activity.location and t.locationVisible %}
 | 
			
		||||
                <div class="wl-row">
 | 
			
		||||
                    <div class="wl-col title"><h3>{{ 'location'|trans }}</h3></div>
 | 
			
		||||
                    <div class="wl-col list">
 | 
			
		||||
                        <p class="wl-item">
 | 
			
		||||
                            {{ activity.location.name }}
 | 
			
		||||
                            <span>({{ activity.location.locationType.title|localize_translatable_string }})</span>
 | 
			
		||||
                        </p>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
 | 
			
		||||
            {% if activity.attendee and t.attendeeVisible %}
 | 
			
		||||
                <div class="wl-row">
 | 
			
		||||
                    <div class="wl-col title"><h3>{{ 'Attendee'|trans }}</h3></div>
 | 
			
		||||
                    <div class="wl-col list">
 | 
			
		||||
                        <p class="wl-item">
 | 
			
		||||
                            {{ activity.attendee.name|localize_translatable_string }}
 | 
			
		||||
                        </p>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
 | 
			
		||||
            {% if activity.sentReceived is not empty and t.sentReceivedVisible %}
 | 
			
		||||
                <div class="wl-row">
 | 
			
		||||
                    <div class="wl-col title"><h3>{{ 'Sent received'|trans }}</h3></div>
 | 
			
		||||
                    <div class="wl-col list">
 | 
			
		||||
                        <p class="wl-item">
 | 
			
		||||
                            {{ activity.sentReceived|capitalize|trans }}
 | 
			
		||||
                        </p>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
 | 
			
		||||
            {% if activity.user and t.userVisible %}
 | 
			
		||||
                <div class="wl-row">
 | 
			
		||||
                    <div class="wl-col title"><h3>{{ 'Referrer'|trans }}</h3></div>
 | 
			
		||||
                    <div class="wl-col list">
 | 
			
		||||
                        <p class="wl-item">
 | 
			
		||||
                            {{ activity.user|chill_entity_render_box }}
 | 
			
		||||
                        </p>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        {% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {
 | 
			
		||||
            'context': context,
 | 
			
		||||
            'render': 'wrap-list',
 | 
			
		||||
            'entity': activity,
 | 
			
		||||
            'badge_person': true
 | 
			
		||||
        } %}
 | 
			
		||||
 | 
			
		||||
        <div class="wrap-list">
 | 
			
		||||
            {%- if activity.reasons is not empty and t.reasonsVisible -%}
 | 
			
		||||
                <div class="wl-row">
 | 
			
		||||
                    <div class="wl-col title">
 | 
			
		||||
                        <h3>{{ 'Reasons'|trans }}</h3>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    <div class="wl-col list">
 | 
			
		||||
                        {% for r in activity.reasons %}
 | 
			
		||||
                            <p class="wl-item reasons">
 | 
			
		||||
                                {{ r|chill_entity_render_box }}
 | 
			
		||||
                            </p>
 | 
			
		||||
                        {% endfor %}
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
 | 
			
		||||
            {%- if activity.socialIssues is not empty and t.socialIssuesVisible -%}
 | 
			
		||||
                <div class="wl-row">
 | 
			
		||||
                    <div class="wl-col title">
 | 
			
		||||
                        <h3>{{ 'Social issues'|trans }}</h3>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    <div class="wl-col list">
 | 
			
		||||
                        {% for r in activity.socialIssues %}
 | 
			
		||||
                            <p class="wl-item social-issues">
 | 
			
		||||
                                {{ r|chill_entity_render_box }}
 | 
			
		||||
                            </p>
 | 
			
		||||
                        {% endfor %}
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
 | 
			
		||||
            {%- if activity.socialActions is not empty and t.socialActionsVisible -%}
 | 
			
		||||
                <div class="wl-row">
 | 
			
		||||
                    <div class="wl-col title">
 | 
			
		||||
                        <h3>{{ 'Social actions'|trans }}</h3>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    <div class="wl-col list">
 | 
			
		||||
                        {% for r in activity.socialActions %}
 | 
			
		||||
                            <p class="wl-item social-actions">
 | 
			
		||||
                                {{ r|chill_entity_render_box }}
 | 
			
		||||
                            </p>
 | 
			
		||||
                        {% endfor %}
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
 | 
			
		||||
            {% if activity.comment.comment is not empty and is_granted('CHILL_ACTIVITY_SEE_DETAILS', activity) %}
 | 
			
		||||
                <div class="wl-row">
 | 
			
		||||
                    <div class="wl-col title">
 | 
			
		||||
                        <h3>{{ 'Comment'|trans }}</h3>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    <div class="wl-col list">
 | 
			
		||||
                        {{ activity.comment|chill_entity_render_box({
 | 
			
		||||
                            'disable_markdown': false,
 | 
			
		||||
                            'limit_lines': 3,
 | 
			
		||||
                            'metadata': false
 | 
			
		||||
                        }) }}
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
 | 
			
		||||
            {#  Only if ACL SEE_DETAILS AND/OR only on template SHOW ??
 | 
			
		||||
                durationTime
 | 
			
		||||
                travelTime
 | 
			
		||||
                comment
 | 
			
		||||
                documents
 | 
			
		||||
                attendee
 | 
			
		||||
            #}
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="item-row separator">
 | 
			
		||||
        <div class="item-col item-meta">
 | 
			
		||||
            {% set notif_counter = chill_count_notifications('Chill\\ActivityBundle\\Entity\\Activity', activity.id) %}
 | 
			
		||||
            {% if notif_counter.total > 0 %}
 | 
			
		||||
                {{ chill_counter_notifications('Chill\\ActivityBundle\\Entity\\Activity', activity.id) }}
 | 
			
		||||
            {% endif %}
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="item-col">
 | 
			
		||||
            <ul class="record_actions">
 | 
			
		||||
                {{ recordAction }}
 | 
			
		||||
            </ul>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
@@ -3,11 +3,13 @@
 | 
			
		||||
    {{ path(pathname, parms) }}
 | 
			
		||||
{% endmacro %}
 | 
			
		||||
 | 
			
		||||
{% macro insert_onthefly(type, entity) %}
 | 
			
		||||
{% macro insert_onthefly(type, entity, parent = null) %}
 | 
			
		||||
    {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
 | 
			
		||||
        action: 'show', displayBadge: true,
 | 
			
		||||
        targetEntity: { name: type, id: entity.id },
 | 
			
		||||
        buttonText: entity|chill_entity_render_string
 | 
			
		||||
        buttonText: entity|chill_entity_render_string,
 | 
			
		||||
        isDead: entity.deathdate is defined and entity.deathdate is not null,
 | 
			
		||||
        parent: parent
 | 
			
		||||
    } %}
 | 
			
		||||
{% endmacro %}
 | 
			
		||||
 | 
			
		||||
@@ -59,7 +61,7 @@
 | 
			
		||||
    }]) %}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{% if (with_display == 'bloc') %}
 | 
			
		||||
{% if (render == 'bloc') %}
 | 
			
		||||
<div class="{{ context }} flex-bloc concerned-groups">
 | 
			
		||||
    {% for bloc in blocks %}
 | 
			
		||||
 | 
			
		||||
@@ -90,7 +92,7 @@
 | 
			
		||||
</div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{% if (with_display == 'row') %}
 | 
			
		||||
{% if (render == 'row') %}
 | 
			
		||||
<div class="concerned-groups">
 | 
			
		||||
    {% for bloc in blocks %}
 | 
			
		||||
    <div class="group">
 | 
			
		||||
@@ -115,7 +117,7 @@
 | 
			
		||||
</div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{% if (with_display == 'wrap-list') %}
 | 
			
		||||
{% if (render == 'wrap-list') %}
 | 
			
		||||
<div class="concerned-groups wrap-list">
 | 
			
		||||
    {% for bloc in blocks %}
 | 
			
		||||
        <div class="wl-row">
 | 
			
		||||
 
 | 
			
		||||
@@ -83,15 +83,15 @@
 | 
			
		||||
    {{ form_row(edit_form.comment) }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{%- if edit_form.documents is defined -%}
 | 
			
		||||
    {{ form_row(edit_form.documents) }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{%- if edit_form.attendee is defined -%}
 | 
			
		||||
    {{ form_row(edit_form.attendee) }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{# TODO .. status #}
 | 
			
		||||
{%- if edit_form.documents is defined -%}
 | 
			
		||||
    {{ form_row(edit_form.documents) }}
 | 
			
		||||
    <div data-docgen-template-picker="data-docgen-template-picker" data-entity-class="Chill\ActivityBundle\Entity\Activity" data-entity-id="{{ entity.id }}"></div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{% set person_id = null %}
 | 
			
		||||
{% if entity.person %}
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@
 | 
			
		||||
 | 
			
		||||
{% block js %}
 | 
			
		||||
    {{ parent() }}
 | 
			
		||||
    {{ encore_entry_link_tags('mod_async_upload') }}
 | 
			
		||||
    {{ encore_entry_script_tags('mod_async_upload') }}
 | 
			
		||||
    <script type="text/javascript">
 | 
			
		||||
        window.addEventListener('DOMContentLoaded', function (e) {
 | 
			
		||||
            chill.displayAlertWhenLeavingModifiedForm('form[name="{{ edit_form.vars.form.vars.name }}"]',
 | 
			
		||||
 
 | 
			
		||||
@@ -30,7 +30,7 @@
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block js %}
 | 
			
		||||
    {{ encore_entry_link_tags('mod_async_upload') }}
 | 
			
		||||
    {{ encore_entry_script_tags('mod_async_upload') }}
 | 
			
		||||
    <script type="text/javascript">
 | 
			
		||||
        window.addEventListener('DOMContentLoaded', function (e) {
 | 
			
		||||
            chill.displayAlertWhenLeavingModifiedForm('form[name="{{ edit_form.vars.form.vars.name }}"]',
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,65 @@
 | 
			
		||||
{% macro recordAction(activity, context = null, person_id = null, accompanying_course_id = null) %}
 | 
			
		||||
    {% if is_granted('CHILL_ACTIVITY_SEE_DETAILS', activity) %}
 | 
			
		||||
        {% if no_action is not defined or no_action == false %}
 | 
			
		||||
            <li>
 | 
			
		||||
                <a class="btn btn-misc" href="{{ chill_path_add_return_path('chill_main_notification_create', {
 | 
			
		||||
                    'entityClass': 'Chill\\ActivityBundle\\Entity\\Activity',
 | 
			
		||||
                    'entityId': activity.id
 | 
			
		||||
                }) }}">
 | 
			
		||||
                    <i class="fa fa-paper-plane fa-fw"></i>
 | 
			
		||||
                    {{ 'notification.Notify'|trans }}</a>
 | 
			
		||||
            </li>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        {% if context == 'person' and activity.accompanyingPeriod is not empty %}
 | 
			
		||||
            {#
 | 
			
		||||
                Disable person_id in following links, for redirect to accompanyingCourse context
 | 
			
		||||
            #}
 | 
			
		||||
            {% set person_id = null %}
 | 
			
		||||
            {% set accompanying_course_id = activity.accompanyingPeriod.id %}
 | 
			
		||||
            <li>
 | 
			
		||||
                <a href="{{ chill_path_add_return_path('chill_activity_activity_list',{
 | 
			
		||||
                        'accompanying_period_id': accompanying_course_id
 | 
			
		||||
                    }) }}"
 | 
			
		||||
                    class="btn btn-primary"
 | 
			
		||||
                    title="{{ 'See activity in accompanying course context'|trans }}">
 | 
			
		||||
                    <i class="fa fa-random fa-fw"></i>
 | 
			
		||||
                    {{ 'Period number %number%'|trans({'%number%': accompanying_course_id}) }}
 | 
			
		||||
                </a>
 | 
			
		||||
            </li>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        <li>
 | 
			
		||||
            <a href="{{ path('chill_activity_activity_show', {'id': activity.id,
 | 
			
		||||
                    'person_id': person_id,
 | 
			
		||||
                    'accompanying_period_id': accompanying_course_id
 | 
			
		||||
                }) }}"
 | 
			
		||||
                class="btn btn-show"
 | 
			
		||||
                title="{{ 'Show'|trans }}"></a>
 | 
			
		||||
        </li>
 | 
			
		||||
        {% if no_action is not defined or no_action == false %}
 | 
			
		||||
            {% if is_granted('CHILL_ACTIVITY_UPDATE', activity) %}
 | 
			
		||||
                <li>
 | 
			
		||||
                    <a href="{{ path('chill_activity_activity_edit', {'id': activity.id,
 | 
			
		||||
                            'person_id': person_id,
 | 
			
		||||
                            'accompanying_period_id': accompanying_course_id
 | 
			
		||||
                        }) }}"
 | 
			
		||||
                        class="btn btn-update"
 | 
			
		||||
                        title="{{ 'Edit'|trans }}"></a>
 | 
			
		||||
                </li>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
            {% if is_granted('CHILL_ACTIVITY_DELETE', activity) %}
 | 
			
		||||
                <li>
 | 
			
		||||
                    <a href="{{ path('chill_activity_activity_delete', {'id': activity.id,
 | 
			
		||||
                            'person_id': person_id,
 | 
			
		||||
                            'accompanying_period_id': accompanying_course_id
 | 
			
		||||
                        }) }}"
 | 
			
		||||
                        class="btn btn-delete"
 | 
			
		||||
                        title="{{ 'Delete'|trans }}"></a>
 | 
			
		||||
                </li>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
        {% endif %}
 | 
			
		||||
    {% endif %}
 | 
			
		||||
{% endmacro %}
 | 
			
		||||
 | 
			
		||||
<div class="context-{{ context }}">
 | 
			
		||||
 | 
			
		||||
    {% if activities|length == 0 %}
 | 
			
		||||
@@ -8,202 +70,10 @@
 | 
			
		||||
    {% else %}
 | 
			
		||||
        <div class="flex-table activity-list">
 | 
			
		||||
            {% for activity in activities %}
 | 
			
		||||
                {% set t = activity.type %}
 | 
			
		||||
                <div class="item-bloc">
 | 
			
		||||
 | 
			
		||||
                    <div class="item-row">
 | 
			
		||||
                        <div class="wrap-list">
 | 
			
		||||
                            <div class="wl-row">
 | 
			
		||||
                                <div class="wl-col title">
 | 
			
		||||
                                    {% if activity.date %}
 | 
			
		||||
                                        <p class="date-label">
 | 
			
		||||
                                            {{ activity.date|format_date('short') }}
 | 
			
		||||
                                        </p>
 | 
			
		||||
                                    {% endif %}
 | 
			
		||||
                                </div>
 | 
			
		||||
                                <div class="wl-col list">
 | 
			
		||||
                                    <h2 class="badge-title">
 | 
			
		||||
                                        <span class="title_label"></span>
 | 
			
		||||
                                        <span class="title_action">
 | 
			
		||||
                                            {{ activity.type.name | localize_translatable_string }}
 | 
			
		||||
 | 
			
		||||
                                            {% if activity.emergency %}
 | 
			
		||||
                                                <span class="badge bg-danger rounded-pill fs-6 float-end">{{ 'Emergency'|trans|upper }}</span>
 | 
			
		||||
                                            {% endif %}
 | 
			
		||||
                                        </span>
 | 
			
		||||
                                    </h2>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </div>
 | 
			
		||||
 | 
			
		||||
                    <div class="item-row column separator">
 | 
			
		||||
                        <div class="wrap-list">
 | 
			
		||||
                            {% if activity.location and t.locationVisible %}
 | 
			
		||||
                                <div class="wl-row">
 | 
			
		||||
                                    <div class="wl-col title"><h3>{{ 'location'|trans }}</h3></div>
 | 
			
		||||
                                    <div class="wl-col list">
 | 
			
		||||
                                        <p class="wl-item">
 | 
			
		||||
                                            <span>{{ activity.location.locationType.title|localize_translatable_string }}</span>
 | 
			
		||||
                                            {{ activity.location.name }}
 | 
			
		||||
                                        </p>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
 | 
			
		||||
                            {% if activity.sentReceived is not empty and t.sentReceivedVisible %}
 | 
			
		||||
                                <div class="wl-row">
 | 
			
		||||
                                    <div class="wl-col title"><h3>{{ 'Sent received'|trans }}</h3></div>
 | 
			
		||||
                                    <div class="wl-col list">
 | 
			
		||||
                                        <p class="wl-item">
 | 
			
		||||
                                            {{ activity.sentReceived|capitalize|trans }}
 | 
			
		||||
                                        </p>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
 | 
			
		||||
                            {% if activity.user and t.userVisible %}
 | 
			
		||||
                                <div class="wl-row">
 | 
			
		||||
                                    <div class="wl-col title"><h3>{{ 'Referrer'|trans }}</h3></div>
 | 
			
		||||
                                    <div class="wl-col list">
 | 
			
		||||
                                        <p class="wl-item">
 | 
			
		||||
                                            {{ activity.user.usernameCanonical|chill_entity_render_string|capitalize }}
 | 
			
		||||
                                        </p>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
                        </div>
 | 
			
		||||
 | 
			
		||||
                        {% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {
 | 
			
		||||
                            'context': context,
 | 
			
		||||
                            'with_display': 'wrap-list',
 | 
			
		||||
                            'entity': activity,
 | 
			
		||||
                            'badge_person': true
 | 
			
		||||
                        } %}
 | 
			
		||||
 | 
			
		||||
                        <div class="wrap-list">
 | 
			
		||||
                            {%- if activity.reasons is not empty and t.reasonsVisible -%}
 | 
			
		||||
                                <div class="wl-row">
 | 
			
		||||
                                    <div class="wl-col title">
 | 
			
		||||
                                        <h3>{{ 'Reasons'|trans }}</h3>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                    <div class="wl-col list">
 | 
			
		||||
                                        {% for r in activity.reasons %}
 | 
			
		||||
                                            <p class="wl-item reasons">
 | 
			
		||||
                                                {{ r|chill_entity_render_box }}
 | 
			
		||||
                                            </p>
 | 
			
		||||
                                        {% endfor %}
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
 | 
			
		||||
                            {%- if activity.socialIssues is not empty and t.socialIssuesVisible -%}
 | 
			
		||||
                                <div class="wl-row">
 | 
			
		||||
                                    <div class="wl-col title">
 | 
			
		||||
                                        <h3>{{ 'Social issues'|trans }}</h3>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                    <div class="wl-col list">
 | 
			
		||||
                                        {% for r in activity.socialIssues %}
 | 
			
		||||
                                            <p class="wl-item social-issues">
 | 
			
		||||
                                                {{ r|chill_entity_render_box }}
 | 
			
		||||
                                            </p>
 | 
			
		||||
                                        {% endfor %}
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
 | 
			
		||||
                            {%- if activity.socialActions is not empty and t.socialActionsVisible -%}
 | 
			
		||||
                                <div class="wl-row">
 | 
			
		||||
                                    <div class="wl-col title">
 | 
			
		||||
                                        <h3>{{ 'Social actions'|trans }}</h3>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                    <div class="wl-col list">
 | 
			
		||||
                                        {% for r in activity.socialActions %}
 | 
			
		||||
                                            <p class="wl-item social-actions">
 | 
			
		||||
                                                {{ r|chill_entity_render_box }}
 | 
			
		||||
                                            </p>
 | 
			
		||||
                                        {% endfor %}
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
 | 
			
		||||
                            {#  Only if ACL SEE_DETAILS AND/OR only on template SHOW ??
 | 
			
		||||
                                durationTime
 | 
			
		||||
                                travelTime
 | 
			
		||||
                                comment
 | 
			
		||||
                                {% if activity.comment.comment is not empty and is_granted('CHILL_ACTIVITY_SEE_DETAILS', activity) %}
 | 
			
		||||
                                    <div class="wl-row">
 | 
			
		||||
                                        <div class="wl-col title">
 | 
			
		||||
                                            <h3>{{ 'Comment'|trans }}</h3>
 | 
			
		||||
                                        </div>
 | 
			
		||||
                                        <div class="wl-col list">
 | 
			
		||||
                                            {{ activity.comment|chill_entity_render_box({
 | 
			
		||||
                                                'disable_markdown': false,
 | 
			
		||||
                                                'limit_lines': 3,
 | 
			
		||||
                                                'metadata': false
 | 
			
		||||
                                            }) }}
 | 
			
		||||
                                        </div>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                {% endif %}
 | 
			
		||||
                                documents
 | 
			
		||||
                                attendee
 | 
			
		||||
                            #}
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </div>
 | 
			
		||||
 | 
			
		||||
                    <div class="item-row separator">
 | 
			
		||||
                        <ul class="record_actions">
 | 
			
		||||
                            {% if context == 'person' and activity.accompanyingPeriod is not empty %}
 | 
			
		||||
                                {#
 | 
			
		||||
                                    Disable person_id in following links, for redirect to accompanyingCourse context
 | 
			
		||||
                                #}
 | 
			
		||||
                                {% set person_id = null %}
 | 
			
		||||
                                {% set accompanying_course_id = activity.accompanyingPeriod.id %}
 | 
			
		||||
                                <li>
 | 
			
		||||
                                    <a href="{{ chill_path_add_return_path('chill_activity_activity_list',{
 | 
			
		||||
                                           'accompanying_period_id': accompanying_course_id
 | 
			
		||||
                                       }) }}"
 | 
			
		||||
                                       class="btn btn-primary"
 | 
			
		||||
                                       title="{{ 'See activity in accompanying course context'|trans }}">
 | 
			
		||||
                                       <i class="fa fa-random fa-fw"></i>
 | 
			
		||||
                                       {{ 'Period number %number%'|trans({'%number%': accompanying_course_id}) }}
 | 
			
		||||
                                    </a>
 | 
			
		||||
                                </li>
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
                            <li>
 | 
			
		||||
                                <a href="{{ path('chill_activity_activity_show', {'id': activity.id,
 | 
			
		||||
                                        'person_id': person_id,
 | 
			
		||||
                                        'accompanying_period_id': accompanying_course_id
 | 
			
		||||
                                    }) }}"
 | 
			
		||||
                                   class="btn btn-show"
 | 
			
		||||
                                   title="{{ 'Show'|trans }}"></a>
 | 
			
		||||
                            </li>
 | 
			
		||||
                            {% if no_action is not defined or no_action == false %}
 | 
			
		||||
                                {% if is_granted('CHILL_ACTIVITY_UPDATE', activity) %}
 | 
			
		||||
                                    <li>
 | 
			
		||||
                                        <a href="{{ path('chill_activity_activity_edit', {'id': activity.id,
 | 
			
		||||
                                                'person_id': person_id,
 | 
			
		||||
                                                'accompanying_period_id': accompanying_course_id
 | 
			
		||||
                                            }) }}"
 | 
			
		||||
                                           class="btn btn-update"
 | 
			
		||||
                                           title="{{ 'Edit'|trans }}"></a>
 | 
			
		||||
                                    </li>
 | 
			
		||||
                                {% endif %}
 | 
			
		||||
                                {% if is_granted('CHILL_ACTIVITY_DELETE', activity) %}
 | 
			
		||||
                                    <li>
 | 
			
		||||
                                        <a href="{{ path('chill_activity_activity_delete', {'id': activity.id,
 | 
			
		||||
                                                'person_id': person_id,
 | 
			
		||||
                                                'accompanying_period_id': accompanying_course_id
 | 
			
		||||
                                            }) }}"
 | 
			
		||||
                                           class="btn btn-delete"
 | 
			
		||||
                                           title="{{ 'Delete'|trans }}"></a>
 | 
			
		||||
                                    </li>
 | 
			
		||||
                                {% endif %}
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
                        </ul>
 | 
			
		||||
                    </div>
 | 
			
		||||
 | 
			
		||||
                </div>
 | 
			
		||||
                {% include 'ChillActivityBundle:Activity:_list_item.html.twig' with {
 | 
			
		||||
                    'context': context,
 | 
			
		||||
                    'recordAction': _self.recordAction(activity, context, person_id, accompanying_course_id)
 | 
			
		||||
                } %}
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
        </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,17 @@
 | 
			
		||||
 | 
			
		||||
{% block title %}{{ 'Activity list' |trans }}{% endblock title %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{% block js %}
 | 
			
		||||
    {{ parent() }}
 | 
			
		||||
    {{ encore_entry_script_tags('mod_notification_toggle_read_status') }}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block css %}
 | 
			
		||||
    {{ parent() }}
 | 
			
		||||
    {{ encore_entry_link_tags('mod_notification_toggle_read_status') }}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
 | 
			
		||||
    {% set person_id = null %}
 | 
			
		||||
 
 | 
			
		||||
@@ -20,6 +20,16 @@
 | 
			
		||||
 | 
			
		||||
{% block title %}{{ 'Activity list' |trans }}{% endblock title %}
 | 
			
		||||
 | 
			
		||||
{% block js %}
 | 
			
		||||
    {{ parent() }}
 | 
			
		||||
    {{ encore_entry_script_tags('mod_notification_toggle_read_status') }}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block css %}
 | 
			
		||||
    {{ parent() }}
 | 
			
		||||
    {{ encore_entry_link_tags('mod_notification_toggle_read_status') }}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block personcontent %}
 | 
			
		||||
 | 
			
		||||
    {% set person_id = null %}
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@
 | 
			
		||||
                        <p class="date-label">{{ activity.date|format_date('short') }}</p>
 | 
			
		||||
                    {%- endif -%}
 | 
			
		||||
 | 
			
		||||
                    <span class="like-h3">{{ activity.type.name | localize_translatable_string }}</span>
 | 
			
		||||
                    <span class="like-h3">{{ activity.type.name|localize_translatable_string }}</span>
 | 
			
		||||
 | 
			
		||||
                    {% if activity.emergency %}
 | 
			
		||||
                        <span class="badge bg-danger rounded-pill fs-6">{{ 'Emergency'|trans|upper }}</span>
 | 
			
		||||
@@ -41,14 +41,14 @@
 | 
			
		||||
                        {% if activity.user and t.userVisible %}
 | 
			
		||||
                            <li>
 | 
			
		||||
                                <span class="item-key">{{ 'Referrer'|trans ~ ': ' }}</span>
 | 
			
		||||
                                <b>{{ activity.user.usernameCanonical }}</b>
 | 
			
		||||
                                <b>{{ activity.user|chill_entity_render_box}}</b>
 | 
			
		||||
                            </li>
 | 
			
		||||
                        {% endif %}
 | 
			
		||||
 | 
			
		||||
                        <li class="associated-persons">
 | 
			
		||||
                            <span class="item-key">{{ 'Participants'|trans ~ ' : ' }}</span>
 | 
			
		||||
                            {% for p in activity.personsAssociated %}
 | 
			
		||||
                                <span class="badge-person">{{ p|chill_entity_render_box }}</span>
 | 
			
		||||
                                <span class="badge-person">{{ p|chill_entity_render_box({'addAgeBadge': true}) }}</span>
 | 
			
		||||
                            {% endfor %}
 | 
			
		||||
                        </li>
 | 
			
		||||
                    </ul>
 | 
			
		||||
 
 | 
			
		||||
@@ -87,6 +87,7 @@
 | 
			
		||||
 | 
			
		||||
{%- if form.documents is defined -%}
 | 
			
		||||
    {{ form_row(form.documents) }}
 | 
			
		||||
    <div data-docgen-template-picker="data-docgen-template-picker" data-entity-class="Chill\ActivityBundle\Entity\Activity" data-entity-id="{{ entity.id }}"></div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{%- if form.attendee is defined -%}
 | 
			
		||||
 
 | 
			
		||||
@@ -17,10 +17,6 @@
 | 
			
		||||
    {{ parent() }}
 | 
			
		||||
    {{ encore_entry_script_tags('mod_async_upload') }}
 | 
			
		||||
    <script type="text/javascript">
 | 
			
		||||
        window.addEventListener('DOMContentLoaded', function (e) {
 | 
			
		||||
            chill.displayAlertWhenLeavingUnsubmittedForm('form[name="{{ form.vars.form.vars.name }}"]',
 | 
			
		||||
            '{{ "You are going to leave a page with unsubmitted data. Are you sure you want to leave ?"|trans }}');
 | 
			
		||||
        });
 | 
			
		||||
        window.activity = {{ activity_json|json_encode|raw }};
 | 
			
		||||
        {% if default_location is not null %}window.default_location_id = {{ default_location.id }}{% endif %};
 | 
			
		||||
    </script>
 | 
			
		||||
 
 | 
			
		||||
@@ -14,7 +14,7 @@
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block js %}
 | 
			
		||||
    {{ encore_entry_link_tags('mod_async_upload') }}
 | 
			
		||||
    {{ encore_entry_script_tags('mod_async_upload') }}
 | 
			
		||||
    <script type="text/javascript">
 | 
			
		||||
        window.addEventListener('DOMContentLoaded', function (e) {
 | 
			
		||||
            chill.displayAlertWhenLeavingUnsubmittedForm('form[name="{{ form.vars.form.vars.name }}"]',
 | 
			
		||||
 
 | 
			
		||||
@@ -25,7 +25,7 @@
 | 
			
		||||
                    'activityData': activityData
 | 
			
		||||
                }) }}">
 | 
			
		||||
 | 
			
		||||
                    <div class="bloc btn btn-primary btn-lg btn-block">
 | 
			
		||||
                    <div class="btn btn-primary">
 | 
			
		||||
                        {{ activityType.name|localize_translatable_string }}
 | 
			
		||||
                    </div>
 | 
			
		||||
                </a>
 | 
			
		||||
 
 | 
			
		||||
@@ -34,7 +34,7 @@
 | 
			
		||||
        <div class="item-row separator">
 | 
			
		||||
            <dl class="chill_view_data">
 | 
			
		||||
                <dt class="inline">{{ 'Referrer'|trans|capitalize }}</dt>
 | 
			
		||||
                <dd>{{ entity.user }}</dd>
 | 
			
		||||
                <dd>{{ entity.user|chill_entity_render_box }}</dd>
 | 
			
		||||
 | 
			
		||||
                {%- if entity.scope -%}
 | 
			
		||||
                    <dt class="inline">{{ 'Scope'|trans }}</dt>
 | 
			
		||||
@@ -85,8 +85,8 @@
 | 
			
		||||
 | 
			
		||||
{% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {
 | 
			
		||||
    'context': context,
 | 
			
		||||
    'with_display': 'bloc',
 | 
			
		||||
    'badge_person': 'true'
 | 
			
		||||
    'render': 'bloc',
 | 
			
		||||
    'badge_person': true
 | 
			
		||||
} %}
 | 
			
		||||
 | 
			
		||||
<h2 class="chill-blue">{{ 'Activity data'|trans }}</h2>
 | 
			
		||||
@@ -103,8 +103,8 @@
 | 
			
		||||
                <dd>
 | 
			
		||||
                    {% if entity.location is not null %}
 | 
			
		||||
                        <p>
 | 
			
		||||
                            <span>{{ entity.location.locationType.title|localize_translatable_string }}</span>
 | 
			
		||||
                            {{ entity.location.name }}
 | 
			
		||||
                            <span>({{ entity.location.locationType.title|localize_translatable_string }})</span>
 | 
			
		||||
                        </p>
 | 
			
		||||
                        <div class="ms-3">{{ entity.location.address|chill_entity_render_box }}</div>
 | 
			
		||||
                    {% else %}
 | 
			
		||||
@@ -165,11 +165,7 @@
 | 
			
		||||
                <dt class="inline">{{ 'Attendee'|trans }}</dt>
 | 
			
		||||
                <dd>
 | 
			
		||||
                    {% if entity.attendee is not null %}
 | 
			
		||||
                        {% if entity.attendee %}
 | 
			
		||||
                            {{ 'present'|trans|capitalize }}
 | 
			
		||||
                        {% else %}
 | 
			
		||||
                            {{ 'not present'|trans|capitalize }}
 | 
			
		||||
                        {% endif %}
 | 
			
		||||
                        {{ entity.attendee.name|localize_translatable_string }}
 | 
			
		||||
                    {% else %}
 | 
			
		||||
                        <span class="chill-no-data-statement">{{ 'None'|trans|capitalize }}</span>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
@@ -181,6 +177,13 @@
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="notification notification-list">
 | 
			
		||||
    {% set notifications =  chill_list_notifications('Chill\\ActivityBundle\\Entity\\Activity', entity.id) %}
 | 
			
		||||
    {% if notifications is not empty %}
 | 
			
		||||
        {{ notifications|raw }}
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
{% set person_id = null %}
 | 
			
		||||
{% if person %}
 | 
			
		||||
    {% set person_id = person.id %}
 | 
			
		||||
@@ -197,24 +200,21 @@
 | 
			
		||||
            {{ 'Back to the list'|trans }}
 | 
			
		||||
        </a>
 | 
			
		||||
    </li>
 | 
			
		||||
    {% if is_granted('CHILL_ACTIVITY_UPDATE', entity) %}
 | 
			
		||||
    <li>
 | 
			
		||||
        <a class="btn btn-update" href="{{ path('chill_activity_activity_edit', { 'id': entity.id, 'person_id': person_id, 'accompanying_period_id': accompanying_course_id }) }}">
 | 
			
		||||
            {{ 'Edit'|trans }}
 | 
			
		||||
        <a class="btn btn-notify" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\ActivityBundle\\Entity\\Activity', 'entityId': entity.id}) }}">
 | 
			
		||||
            {{ 'notification.Notify'|trans }}
 | 
			
		||||
        </a>
 | 
			
		||||
    </li>
 | 
			
		||||
    {% if is_granted('CHILL_ACTIVITY_UPDATE', entity) %}
 | 
			
		||||
        <li>
 | 
			
		||||
            <a href="{{ path('chill_activity_activity_edit', { 'id': entity.id, 'person_id': person_id, 'accompanying_period_id': accompanying_course_id }) }}"
 | 
			
		||||
               class="btn btn-update">{{ 'Edit'|trans }}</a>
 | 
			
		||||
        </li>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% if is_granted('CHILL_ACTIVITY_DELETE', entity) %}
 | 
			
		||||
    <li>
 | 
			
		||||
        <a href="{{ path('chill_activity_activity_delete', { 'id': entity.id, 'person_id' : person_id, 'accompanying_period_id': accompanying_course_id } ) }}" class="btn btn-delete">
 | 
			
		||||
            {{ 'Delete'|trans }}
 | 
			
		||||
        </a>
 | 
			
		||||
        <a href="{{ path('chill_activity_activity_delete', { 'id': entity.id, 'person_id' : person_id, 'accompanying_period_id': accompanying_course_id } ) }}"
 | 
			
		||||
           class="btn btn-delete" title="{{ 'Delete'|trans }}"></a>
 | 
			
		||||
    </li>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</ul>
 | 
			
		||||
<script>
 | 
			
		||||
    import ShowPane from "../../../../ChillMainBundle/Resources/public/vuejs/Address/components/ShowPane";
 | 
			
		||||
    export default {
 | 
			
		||||
        components: {ShowPane}
 | 
			
		||||
    }
 | 
			
		||||
</script>
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,18 @@
 | 
			
		||||
 | 
			
		||||
{% block title 'Show the activity'|trans %}
 | 
			
		||||
 | 
			
		||||
{% block js %}
 | 
			
		||||
    {{ parent() }}
 | 
			
		||||
    {{ encore_entry_script_tags('mod_notification_toggle_read_status') }}
 | 
			
		||||
    {{ encore_entry_script_tags('mod_async_upload') }}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block css %}
 | 
			
		||||
    {{ parent() }}
 | 
			
		||||
    {{ encore_entry_link_tags('mod_notification_toggle_read_status') }}
 | 
			
		||||
    {{ encore_entry_link_tags('mod_async_upload') }}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% import 'ChillActivityBundle:ActivityReason:macro.html.twig' as m %}
 | 
			
		||||
 | 
			
		||||
{% block content -%}
 | 
			
		||||
@@ -11,3 +23,7 @@
 | 
			
		||||
    {% include 'ChillActivityBundle:Activity:show.html.twig' with {'context': 'accompanyingCourse'} %}
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock content %}
 | 
			
		||||
 | 
			
		||||
{% block block_post_menu %}
 | 
			
		||||
<div class="post-menu pt-4"></div>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,2 +1,27 @@
 | 
			
		||||
{% macro recordAction(activity) %}
 | 
			
		||||
    <li>
 | 
			
		||||
        <a href="{{ path('chill_activity_activity_show', {'id': activity.id }) }}"
 | 
			
		||||
           class="btn btn-show" title="{{ 'Show the activity'|trans }}"></a>
 | 
			
		||||
    </li>
 | 
			
		||||
{% endmacro %}
 | 
			
		||||
 | 
			
		||||
<a href="{{ path('chill_activity_activity_show', {'id': notification.relatedEntityId })  }}">Go to Activity</a>
 | 
			
		||||
{% if activity is not null %}
 | 
			
		||||
    <div class="flex-table">
 | 
			
		||||
        {% if is_granted('CHILL_ACTIVITY_SEE', activity) %}
 | 
			
		||||
            {% include 'ChillActivityBundle:Activity:_list_item.html.twig' with {
 | 
			
		||||
                'recordAction': _self.recordAction(activity),
 | 
			
		||||
                'context': 'accompanyingCourse',
 | 
			
		||||
                'itemBlocClass': 'bg-chill-llight-gray'
 | 
			
		||||
            } %}
 | 
			
		||||
        {% else %}
 | 
			
		||||
            <div class="alert alert-warning border-warning border-1">
 | 
			
		||||
                {{ 'This is the minimal activity data'|trans ~ ': ' ~ activity.id }}<br>
 | 
			
		||||
                {{ 'you are not allowed to see it details'|trans }}
 | 
			
		||||
            </div>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
    </div>
 | 
			
		||||
{% else %}
 | 
			
		||||
    <div class="alert alert-warning border-warning border-1">
 | 
			
		||||
        {{ 'You get notified of an activity which does not exists any more'|trans }}
 | 
			
		||||
    </div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,18 @@
 | 
			
		||||
 | 
			
		||||
{% block title 'Show the activity'|trans %}
 | 
			
		||||
 | 
			
		||||
{% block js %}
 | 
			
		||||
    {{ parent() }}
 | 
			
		||||
    {{ encore_entry_script_tags('mod_notification_toggle_read_status') }}
 | 
			
		||||
    {{ encore_entry_link_tags('mod_async_upload') }}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block css %}
 | 
			
		||||
    {{ parent() }}
 | 
			
		||||
    {{ encore_entry_link_tags('mod_notification_toggle_read_status') }}
 | 
			
		||||
    {{ encore_entry_link_tags('mod_async_upload') }}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% import 'ChillActivityBundle:ActivityReason:macro.html.twig' as m %}
 | 
			
		||||
 | 
			
		||||
{% block personcontent -%}
 | 
			
		||||
@@ -11,3 +23,20 @@
 | 
			
		||||
    {% include 'ChillActivityBundle:Activity:show.html.twig' with {'context': 'person'} %}
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock personcontent %}
 | 
			
		||||
 | 
			
		||||
{% block block_post_menu %}
 | 
			
		||||
    <div class="post-menu pt-4">
 | 
			
		||||
 | 
			
		||||
        <div class="d-grid gap-2">
 | 
			
		||||
            <a class="btn btn-notify" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\ActivityBundle\\Entity\\Activity', 'entityId': entity.id}) }}">
 | 
			
		||||
                {{ 'notification.Notify'|trans }}
 | 
			
		||||
            </a>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        {% set notifications =  chill_list_notifications('Chill\\ActivityBundle\\Entity\\Activity', entity.id) %}
 | 
			
		||||
        {% if notifications is not empty %}
 | 
			
		||||
            {{ notifications|raw }}
 | 
			
		||||
        {% endif %}
 | 
			
		||||
 | 
			
		||||
    </div>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
@@ -15,6 +15,7 @@ use Chill\MainBundle\Entity\Center;
 | 
			
		||||
use Chill\MainBundle\Security\Authorization\AbstractChillVoter;
 | 
			
		||||
use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
 | 
			
		||||
use Chill\MainBundle\Security\ProvideRoleHierarchyInterface;
 | 
			
		||||
 | 
			
		||||
use function in_array;
 | 
			
		||||
 | 
			
		||||
class ActivityStatsVoter extends AbstractChillVoter implements ProvideRoleHierarchyInterface
 | 
			
		||||
@@ -64,8 +65,10 @@ class ActivityStatsVoter extends AbstractChillVoter implements ProvideRoleHierar
 | 
			
		||||
 | 
			
		||||
    protected function supports($attribute, $subject)
 | 
			
		||||
    {
 | 
			
		||||
        if ($subject instanceof Center
 | 
			
		||||
            && in_array($attribute, $this->getAttributes(), true)) {
 | 
			
		||||
        if (
 | 
			
		||||
            $subject instanceof Center
 | 
			
		||||
            && in_array($attribute, $this->getAttributes(), true)
 | 
			
		||||
        ) {
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -24,6 +24,7 @@ use Chill\PersonBundle\Security\Authorization\PersonVoter;
 | 
			
		||||
use RuntimeException;
 | 
			
		||||
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
 | 
			
		||||
use Symfony\Component\Security\Core\Security;
 | 
			
		||||
 | 
			
		||||
use function in_array;
 | 
			
		||||
 | 
			
		||||
class ActivityVoter extends AbstractChillVoter implements ProvideRoleHierarchyInterface
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,216 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Chill is a software for social workers
 | 
			
		||||
 *
 | 
			
		||||
 * For the full copyright and license information, please view
 | 
			
		||||
 * the LICENSE file that was distributed with this source code.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
declare(strict_types=1);
 | 
			
		||||
 | 
			
		||||
namespace Chill\ActivityBundle\Service\DocGenerator;
 | 
			
		||||
 | 
			
		||||
use Chill\ActivityBundle\Entity\Activity;
 | 
			
		||||
use Chill\DocGeneratorBundle\Context\DocGeneratorContextWithAdminFormInterface;
 | 
			
		||||
use Chill\DocGeneratorBundle\Context\DocGeneratorContextWithPublicFormInterface;
 | 
			
		||||
use Chill\DocGeneratorBundle\Context\Exception\UnexpectedTypeException;
 | 
			
		||||
use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate;
 | 
			
		||||
use Chill\DocGeneratorBundle\Service\Context\BaseContextData;
 | 
			
		||||
use Chill\DocStoreBundle\Entity\StoredObject;
 | 
			
		||||
use Chill\DocStoreBundle\Repository\DocumentCategoryRepository;
 | 
			
		||||
use Chill\MainBundle\Templating\TranslatableStringHelperInterface;
 | 
			
		||||
use Chill\PersonBundle\Entity\AccompanyingPeriod;
 | 
			
		||||
use Chill\PersonBundle\Entity\Person;
 | 
			
		||||
use Chill\PersonBundle\Templating\Entity\PersonRenderInterface;
 | 
			
		||||
use Doctrine\ORM\EntityManagerInterface;
 | 
			
		||||
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
 | 
			
		||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
 | 
			
		||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
 | 
			
		||||
use Symfony\Component\Form\FormBuilderInterface;
 | 
			
		||||
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
 | 
			
		||||
use Symfony\Contracts\Translation\TranslatorInterface;
 | 
			
		||||
 | 
			
		||||
class ActivityContext implements
 | 
			
		||||
    DocGeneratorContextWithAdminFormInterface,
 | 
			
		||||
    DocGeneratorContextWithPublicFormInterface
 | 
			
		||||
{
 | 
			
		||||
    private BaseContextData $baseContextData;
 | 
			
		||||
 | 
			
		||||
    private DocumentCategoryRepository $documentCategoryRepository;
 | 
			
		||||
 | 
			
		||||
    private EntityManagerInterface $em;
 | 
			
		||||
 | 
			
		||||
    private NormalizerInterface $normalizer;
 | 
			
		||||
 | 
			
		||||
    private PersonRenderInterface $personRender;
 | 
			
		||||
 | 
			
		||||
    private TranslatableStringHelperInterface $translatableStringHelper;
 | 
			
		||||
 | 
			
		||||
    private TranslatorInterface $translator;
 | 
			
		||||
 | 
			
		||||
    public function __construct(
 | 
			
		||||
        DocumentCategoryRepository $documentCategoryRepository,
 | 
			
		||||
        NormalizerInterface $normalizer,
 | 
			
		||||
        TranslatableStringHelperInterface $translatableStringHelper,
 | 
			
		||||
        EntityManagerInterface $em,
 | 
			
		||||
        PersonRenderInterface $personRender,
 | 
			
		||||
        TranslatorInterface $translator,
 | 
			
		||||
        BaseContextData $baseContextData
 | 
			
		||||
    ) {
 | 
			
		||||
        $this->documentCategoryRepository = $documentCategoryRepository;
 | 
			
		||||
        $this->normalizer = $normalizer;
 | 
			
		||||
        $this->translatableStringHelper = $translatableStringHelper;
 | 
			
		||||
        $this->em = $em;
 | 
			
		||||
        $this->personRender = $personRender;
 | 
			
		||||
        $this->translator = $translator;
 | 
			
		||||
        $this->baseContextData = $baseContextData;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function adminFormReverseTransform(array $data): array
 | 
			
		||||
    {
 | 
			
		||||
        return $data;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function adminFormTransform(array $data): array
 | 
			
		||||
    {
 | 
			
		||||
        return [
 | 
			
		||||
            'mainPerson' => $data['mainPerson'] ?? false,
 | 
			
		||||
            'mainPersonLabel' => $data['mainPersonLabel'] ?? $this->translator->trans('docgen.Main person'),
 | 
			
		||||
            'person1' => $data['person1'] ?? false,
 | 
			
		||||
            'person1Label' => $data['person1Label'] ?? $this->translator->trans('docgen.person 1'),
 | 
			
		||||
            'person2' => $data['person2'] ?? false,
 | 
			
		||||
            'person2Label' => $data['person2Label'] ?? $this->translator->trans('docgen.person 2'),
 | 
			
		||||
        ];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function buildAdminForm(FormBuilderInterface $builder): void
 | 
			
		||||
    {
 | 
			
		||||
        $builder
 | 
			
		||||
            ->add('mainPerson', CheckboxType::class, [
 | 
			
		||||
                'required' => false,
 | 
			
		||||
                'label' => 'docgen.Ask for main person',
 | 
			
		||||
            ])
 | 
			
		||||
            ->add('mainPersonLabel', TextType::class, [
 | 
			
		||||
                'label' => 'main person label',
 | 
			
		||||
                'required' => true,
 | 
			
		||||
            ])
 | 
			
		||||
            ->add('person1', CheckboxType::class, [
 | 
			
		||||
                'required' => false,
 | 
			
		||||
                'label' => 'docgen.Ask for person 1',
 | 
			
		||||
            ])
 | 
			
		||||
            ->add('person1Label', TextType::class, [
 | 
			
		||||
                'label' => 'person 1 label',
 | 
			
		||||
                'required' => true,
 | 
			
		||||
            ])
 | 
			
		||||
            ->add('person2', CheckboxType::class, [
 | 
			
		||||
                'required' => false,
 | 
			
		||||
                'label' => 'docgen.Ask for person 2',
 | 
			
		||||
            ])
 | 
			
		||||
            ->add('person2Label', TextType::class, [
 | 
			
		||||
                'label' => 'person 2 label',
 | 
			
		||||
                'required' => true,
 | 
			
		||||
            ]);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @param Activity $entity
 | 
			
		||||
     */
 | 
			
		||||
    public function buildPublicForm(FormBuilderInterface $builder, DocGeneratorTemplate $template, $entity): void
 | 
			
		||||
    {
 | 
			
		||||
        $options = $template->getOptions();
 | 
			
		||||
        $persons = $entity->getPersons();
 | 
			
		||||
 | 
			
		||||
        foreach (['mainPerson', 'person1', 'person2'] as $key) {
 | 
			
		||||
            if ($options[$key] ?? false) {
 | 
			
		||||
                $builder->add($key, EntityType::class, [
 | 
			
		||||
                    'class' => Person::class,
 | 
			
		||||
                    'choices' => $persons,
 | 
			
		||||
                    'choice_label' => function (Person $p) {
 | 
			
		||||
                        return $this->personRender->renderString($p, []);
 | 
			
		||||
                    },
 | 
			
		||||
                    'multiple' => false,
 | 
			
		||||
                    'expanded' => true,
 | 
			
		||||
                    'label' => $options[$key . 'Label'],
 | 
			
		||||
                ]);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getData(DocGeneratorTemplate $template, $entity, array $contextGenerationData = []): array
 | 
			
		||||
    {
 | 
			
		||||
        if (!$entity instanceof Activity) {
 | 
			
		||||
            throw new UnexpectedTypeException($entity, Activity::class);
 | 
			
		||||
        }
 | 
			
		||||
        $options = $template->getOptions();
 | 
			
		||||
 | 
			
		||||
        $data = [];
 | 
			
		||||
        $data = array_merge($data, $this->baseContextData->getData());
 | 
			
		||||
        $data['activity'] = $this->normalizer->normalize($entity, 'docgen', ['docgen:expects' => Activity::class, 'groups' => 'docgen:read']);
 | 
			
		||||
 | 
			
		||||
        $data['course'] = $this->normalizer->normalize($entity->getAccompanyingPeriod(), 'docgen', ['docgen:expects' => AccompanyingPeriod::class, 'groups' => 'docgen:read']);
 | 
			
		||||
        $data['person'] = $this->normalizer->normalize($entity->getPerson(), 'docgen', ['docgen:expects' => Person::class, 'groups' => 'docgen:read']);
 | 
			
		||||
 | 
			
		||||
        foreach (['mainPerson', 'person1', 'person2'] as $k) {
 | 
			
		||||
            if ($options[$k]) {
 | 
			
		||||
                $data[$k] = $this->normalizer->normalize($contextGenerationData[$k], 'docgen', [
 | 
			
		||||
                    'docgen:expects' => Person::class,
 | 
			
		||||
                    'groups' => 'docgen:read',
 | 
			
		||||
                    'docgen:person:with-household' => true,
 | 
			
		||||
                    'docgen:person:with-relations' => true,
 | 
			
		||||
                ]);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return $data;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getDescription(): string
 | 
			
		||||
    {
 | 
			
		||||
        return 'docgen.A basic context for activity';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getEntityClass(): string
 | 
			
		||||
    {
 | 
			
		||||
        return Activity::class;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getFormData(DocGeneratorTemplate $template, $entity): array
 | 
			
		||||
    {
 | 
			
		||||
        return [
 | 
			
		||||
            'activity' => $entity,
 | 
			
		||||
        ];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static function getKey(): string
 | 
			
		||||
    {
 | 
			
		||||
        return self::class;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getName(): string
 | 
			
		||||
    {
 | 
			
		||||
        return 'docgen.Activity basic';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function hasAdminForm(): bool
 | 
			
		||||
    {
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function hasPublicForm(DocGeneratorTemplate $template, $entity): bool
 | 
			
		||||
    {
 | 
			
		||||
        $options = $template->getOptions();
 | 
			
		||||
 | 
			
		||||
        return $options['mainPerson'] || $options['person1'] || $options['person2'];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @param Activity $entity
 | 
			
		||||
     */
 | 
			
		||||
    public function storeGenerated(DocGeneratorTemplate $template, StoredObject $storedObject, object $entity, array $contextGenerationData): void
 | 
			
		||||
    {
 | 
			
		||||
        $entity->addDocument($storedObject);
 | 
			
		||||
 | 
			
		||||
        $this->em->persist($storedObject);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -66,7 +66,7 @@ final class ActivityReasonCategoryControllerTest extends WebTestCase
 | 
			
		||||
        $crawler = $client->followRedirect();
 | 
			
		||||
 | 
			
		||||
        // Check the entity has been delete on the list
 | 
			
		||||
        $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
 | 
			
		||||
        $this->assertDoesNotMatchRegularExpression('/Foo/', $client->getResponse()->getContent());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
     */
 | 
			
		||||
 
 | 
			
		||||
@@ -66,7 +66,7 @@ final class ActivityReasonControllerTest extends WebTestCase
 | 
			
		||||
        $crawler = $client->followRedirect();
 | 
			
		||||
 | 
			
		||||
        // Check the entity has been delete on the list
 | 
			
		||||
        $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
 | 
			
		||||
        $this->assertDoesNotMatchRegularExpression('/Foo/', $client->getResponse()->getContent());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
     */
 | 
			
		||||
 
 | 
			
		||||
@@ -66,7 +66,7 @@ final class ActivityTypeControllerTest extends WebTestCase
 | 
			
		||||
        $crawler = $client->followRedirect();
 | 
			
		||||
 | 
			
		||||
        // Check the entity has been delete on the list
 | 
			
		||||
        $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
 | 
			
		||||
        $this->assertDoesNotMatchRegularExpression('/Foo/', $client->getResponse()->getContent());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
     */
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@
 | 
			
		||||
 | 
			
		||||
declare(strict_types=1);
 | 
			
		||||
 | 
			
		||||
namespace Chill\ActivityBundle\Tests\Aggregator;
 | 
			
		||||
namespace Chill\ActivityBundle\Tests\Export\Aggregator;
 | 
			
		||||
 | 
			
		||||
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
 | 
			
		||||
 | 
			
		||||
@@ -26,7 +26,7 @@ final class ActivityReasonAggregatorTest extends AbstractAggregatorTest
 | 
			
		||||
     */
 | 
			
		||||
    private $aggregator;
 | 
			
		||||
 | 
			
		||||
    public function setUp()
 | 
			
		||||
    protected function setUp(): void
 | 
			
		||||
    {
 | 
			
		||||
        self::bootKernel();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@
 | 
			
		||||
 | 
			
		||||
declare(strict_types=1);
 | 
			
		||||
 | 
			
		||||
namespace Chill\ActivityBundle\Tests\Aggregator;
 | 
			
		||||
namespace Chill\ActivityBundle\Tests\Export\Aggregator;
 | 
			
		||||
 | 
			
		||||
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
 | 
			
		||||
 | 
			
		||||
@@ -26,7 +26,7 @@ final class ActivityTypeAggregatorTest extends AbstractAggregatorTest
 | 
			
		||||
     */
 | 
			
		||||
    private $aggregator;
 | 
			
		||||
 | 
			
		||||
    public function setUp()
 | 
			
		||||
    protected function setUp(): void
 | 
			
		||||
    {
 | 
			
		||||
        self::bootKernel();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@
 | 
			
		||||
 | 
			
		||||
declare(strict_types=1);
 | 
			
		||||
 | 
			
		||||
namespace Chill\ActivityBundle\Tests\Aggregator;
 | 
			
		||||
namespace Chill\ActivityBundle\Tests\Export\Aggregator;
 | 
			
		||||
 | 
			
		||||
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
 | 
			
		||||
 | 
			
		||||
@@ -26,7 +26,7 @@ final class ActivityUserAggregatorTest extends AbstractAggregatorTest
 | 
			
		||||
     */
 | 
			
		||||
    private $aggregator;
 | 
			
		||||
 | 
			
		||||
    public function setUp()
 | 
			
		||||
    protected function setUp(): void
 | 
			
		||||
    {
 | 
			
		||||
        self::bootKernel();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@ final class CountActivityTest extends AbstractExportTest
 | 
			
		||||
     */
 | 
			
		||||
    private $export;
 | 
			
		||||
 | 
			
		||||
    public function setUp()
 | 
			
		||||
    protected function setUp(): void
 | 
			
		||||
    {
 | 
			
		||||
        self::bootKernel();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@ final class ListActivityTest extends AbstractExportTest
 | 
			
		||||
     */
 | 
			
		||||
    private $export;
 | 
			
		||||
 | 
			
		||||
    public function setUp()
 | 
			
		||||
    protected function setUp(): void
 | 
			
		||||
    {
 | 
			
		||||
        self::bootKernel();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,7 @@ final class StatActivityDurationSumTest extends AbstractExportTest
 | 
			
		||||
     */
 | 
			
		||||
    private $export;
 | 
			
		||||
 | 
			
		||||
    public function setUp()
 | 
			
		||||
    protected function setUp(): void
 | 
			
		||||
    {
 | 
			
		||||
        self::bootKernel();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@
 | 
			
		||||
 | 
			
		||||
declare(strict_types=1);
 | 
			
		||||
 | 
			
		||||
namespace Chill\ActivityBundle\Tests\Filter;
 | 
			
		||||
namespace Chill\ActivityBundle\Tests\Export\Filter;
 | 
			
		||||
 | 
			
		||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
 | 
			
		||||
use Doctrine\Common\Collections\ArrayCollection;
 | 
			
		||||
@@ -25,7 +25,7 @@ final class ActivityReasonFilterTest extends AbstractFilterTest
 | 
			
		||||
     */
 | 
			
		||||
    private $filter;
 | 
			
		||||
 | 
			
		||||
    public function setUp()
 | 
			
		||||
    protected function setUp(): void
 | 
			
		||||
    {
 | 
			
		||||
        self::bootKernel();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@
 | 
			
		||||
 | 
			
		||||
declare(strict_types=1);
 | 
			
		||||
 | 
			
		||||
namespace Chill\ActivityBundle\Tests\Filter;
 | 
			
		||||
namespace Chill\ActivityBundle\Tests\Export\Filter;
 | 
			
		||||
 | 
			
		||||
use Chill\MainBundle\Test\Export\AbstractFilterTest;
 | 
			
		||||
use DateTime;
 | 
			
		||||
@@ -26,7 +26,7 @@ final class PersonHavingActivityBetweenDateFilterTest extends AbstractFilterTest
 | 
			
		||||
     */
 | 
			
		||||
    private $filter;
 | 
			
		||||
 | 
			
		||||
    public function setUp()
 | 
			
		||||
    protected function setUp(): void
 | 
			
		||||
    {
 | 
			
		||||
        self::bootKernel();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -45,7 +45,7 @@ final class ActivityTypeTest extends KernelTestCase
 | 
			
		||||
     */
 | 
			
		||||
    protected $user;
 | 
			
		||||
 | 
			
		||||
    public function setUp()
 | 
			
		||||
    protected function setUp(): void
 | 
			
		||||
    {
 | 
			
		||||
        self::bootKernel();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -29,7 +29,7 @@ final class TranslatableActivityReasonTest extends TypeTestCase
 | 
			
		||||
     */
 | 
			
		||||
    private static $prophet;
 | 
			
		||||
 | 
			
		||||
    public function setUp()
 | 
			
		||||
    protected function setUp(): void
 | 
			
		||||
    {
 | 
			
		||||
        parent::setUp();
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -31,7 +31,7 @@ final class TranslatableActivityTypeTest extends KernelTestCase
 | 
			
		||||
     */
 | 
			
		||||
    protected $container;
 | 
			
		||||
 | 
			
		||||
    public function setUp()
 | 
			
		||||
    protected function setUp(): void
 | 
			
		||||
    {
 | 
			
		||||
        self::bootKernel();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -29,9 +29,13 @@ use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
 | 
			
		||||
final class ActivityVoterTest extends KernelTestCase
 | 
			
		||||
{
 | 
			
		||||
    use PrepareActivityTrait;
 | 
			
		||||
 | 
			
		||||
    use PrepareCenterTrait;
 | 
			
		||||
 | 
			
		||||
    use PreparePersonTrait;
 | 
			
		||||
 | 
			
		||||
    use PrepareScopeTrait;
 | 
			
		||||
 | 
			
		||||
    use PrepareUserTrait;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
@@ -44,7 +48,7 @@ final class ActivityVoterTest extends KernelTestCase
 | 
			
		||||
     */
 | 
			
		||||
    protected $voter;
 | 
			
		||||
 | 
			
		||||
    public function setUp()
 | 
			
		||||
    protected function setUp(): void
 | 
			
		||||
    {
 | 
			
		||||
        self::bootKernel();
 | 
			
		||||
        $this->voter = self::$kernel->getContainer()
 | 
			
		||||
 
 | 
			
		||||
@@ -24,6 +24,7 @@ use RuntimeException;
 | 
			
		||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
 | 
			
		||||
use Symfony\Component\Security\Core\Role\Role;
 | 
			
		||||
use Symfony\Component\Security\Core\User\UserInterface;
 | 
			
		||||
 | 
			
		||||
use function implode;
 | 
			
		||||
use function in_array;
 | 
			
		||||
use function strtr;
 | 
			
		||||
 
 | 
			
		||||
@@ -17,6 +17,7 @@ use Symfony\Component\Validator\Constraint;
 | 
			
		||||
use Symfony\Component\Validator\ConstraintValidator;
 | 
			
		||||
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
 | 
			
		||||
use Symfony\Component\Validator\Exception\UnexpectedValueException;
 | 
			
		||||
 | 
			
		||||
use function array_merge;
 | 
			
		||||
use function count;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -32,3 +32,8 @@ services:
 | 
			
		||||
        autowire: true
 | 
			
		||||
        autoconfigure: true
 | 
			
		||||
        resource: '../Validator/Constraints/'
 | 
			
		||||
 | 
			
		||||
    Chill\ActivityBundle\Service\DocGenerator\:
 | 
			
		||||
        autowire: true
 | 
			
		||||
        autoconfigure: true
 | 
			
		||||
        resource: '../Service/DocGenerator/'
 | 
			
		||||
 
 | 
			
		||||
@@ -13,6 +13,7 @@ namespace Chill\Migrations\Activity;
 | 
			
		||||
 | 
			
		||||
use Doctrine\DBAL\Schema\Schema;
 | 
			
		||||
use Doctrine\Migrations\AbstractMigration;
 | 
			
		||||
 | 
			
		||||
use function count;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 
 | 
			
		||||
@@ -76,7 +76,7 @@ activity:
 | 
			
		||||
    Insert a document: Insérer un document
 | 
			
		||||
    Remove a document: Supprimer le document
 | 
			
		||||
    comment: Commentaire
 | 
			
		||||
 | 
			
		||||
No documents: Aucun document
 | 
			
		||||
 | 
			
		||||
#timeline
 | 
			
		||||
'%user% has done an %activity_type%': '%user% a effectué une activité de type "%activity_type%"'
 | 
			
		||||
@@ -224,3 +224,11 @@ Aggregate by activity reason: Aggréger par sujet de l'activité
 | 
			
		||||
Last activities: Les dernières activités
 | 
			
		||||
 | 
			
		||||
See activity in accompanying course context: Voir l'activité dans le contexte du parcours d'accompagnement
 | 
			
		||||
 | 
			
		||||
You get notified of an activity which does not exists any more: Cette notification ne correspond pas à une activité valide.
 | 
			
		||||
you are not allowed to see it details: La notification fait référence à une activité à laquelle vous n'avez pas accès.
 | 
			
		||||
This is the minimal activity data: Activité n°
 | 
			
		||||
 | 
			
		||||
docgen:
 | 
			
		||||
    Activity basic: Echange
 | 
			
		||||
    A basic context for activity: Contexte pour les échanges
 | 
			
		||||
 
 | 
			
		||||
@@ -20,3 +20,4 @@ For this type of activity, you must add at least one social action: Pour ce type
 | 
			
		||||
 | 
			
		||||
# admin
 | 
			
		||||
This parameter must be equal to social issue parameter: Ce paramètre doit être égal au paramètre "Visibilité du champs Problématiques sociales"
 | 
			
		||||
The socialActionsVisible value is not compatible with the socialIssuesVisible value: Cette valeur du paramètre "Visibilité du champs Actions sociales" n'est pas compatible avec la valeur du paramètre "Visibilité du champs Problématiques sociales"
 | 
			
		||||
@@ -32,6 +32,8 @@ final class AsideActivityController extends CRUDController
 | 
			
		||||
    {
 | 
			
		||||
        $asideActivity = new AsideActivity();
 | 
			
		||||
 | 
			
		||||
        $asideActivity->setAgent($this->getUser());
 | 
			
		||||
 | 
			
		||||
        $duration = $request->query->get('duration', '300');
 | 
			
		||||
        $duration = DateTime::createFromFormat('U', $duration);
 | 
			
		||||
        $asideActivity->setDuration($duration);
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ use DateTimeImmutable;
 | 
			
		||||
use Doctrine\Bundle\FixturesBundle\Fixture;
 | 
			
		||||
use Doctrine\Common\DataFixtures\DependentFixtureInterface;
 | 
			
		||||
use Doctrine\Persistence\ObjectManager;
 | 
			
		||||
 | 
			
		||||
use function random_int;
 | 
			
		||||
 | 
			
		||||
class LoadAsideActivity extends Fixture implements DependentFixtureInterface
 | 
			
		||||
 
 | 
			
		||||
@@ -18,10 +18,12 @@ class LoadAsideActivityCategory extends \Doctrine\Bundle\FixturesBundle\Fixture
 | 
			
		||||
{
 | 
			
		||||
    public function load(ObjectManager $manager)
 | 
			
		||||
    {
 | 
			
		||||
        foreach ([
 | 
			
		||||
            'Appel téléphonique',
 | 
			
		||||
            'Formation',
 | 
			
		||||
        ] as $key => $label) {
 | 
			
		||||
        foreach (
 | 
			
		||||
            [
 | 
			
		||||
                'Appel téléphonique',
 | 
			
		||||
                'Formation',
 | 
			
		||||
            ] as $key => $label
 | 
			
		||||
        ) {
 | 
			
		||||
            $category = new AsideActivityCategory();
 | 
			
		||||
            $category->setTitle(['fr' => $label]);
 | 
			
		||||
            $manager->persist($category);
 | 
			
		||||
 
 | 
			
		||||
@@ -13,6 +13,7 @@ namespace Chill\AsideActivityBundle\DependencyInjection;
 | 
			
		||||
 | 
			
		||||
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
 | 
			
		||||
use Symfony\Component\Config\Definition\ConfigurationInterface;
 | 
			
		||||
 | 
			
		||||
use function is_int;
 | 
			
		||||
 | 
			
		||||
class Configuration implements ConfigurationInterface
 | 
			
		||||
 
 | 
			
		||||
@@ -167,7 +167,6 @@ class AsideActivityCategory
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $this->parent = $parent;
 | 
			
		||||
        dump($this);
 | 
			
		||||
 | 
			
		||||
        return $this;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -14,9 +14,9 @@ namespace Chill\AsideActivityBundle\Form;
 | 
			
		||||
use Chill\AsideActivityBundle\Entity\AsideActivity;
 | 
			
		||||
use Chill\AsideActivityBundle\Entity\AsideActivityCategory;
 | 
			
		||||
use Chill\AsideActivityBundle\Templating\Entity\CategoryRender;
 | 
			
		||||
use Chill\MainBundle\Entity\User;
 | 
			
		||||
use Chill\MainBundle\Form\Type\ChillDateType;
 | 
			
		||||
use Chill\MainBundle\Form\Type\ChillTextareaType;
 | 
			
		||||
use Chill\MainBundle\Form\Type\PickUserDynamicType;
 | 
			
		||||
use DateInterval;
 | 
			
		||||
use DateTime;
 | 
			
		||||
use DateTimeImmutable;
 | 
			
		||||
@@ -32,6 +32,7 @@ use Symfony\Component\Form\FormEvent;
 | 
			
		||||
use Symfony\Component\Form\FormEvents;
 | 
			
		||||
use Symfony\Component\OptionsResolver\OptionsResolver;
 | 
			
		||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
 | 
			
		||||
 | 
			
		||||
use function in_array;
 | 
			
		||||
 | 
			
		||||
final class AsideActivityFormType extends AbstractType
 | 
			
		||||
@@ -67,22 +68,10 @@ final class AsideActivityFormType extends AbstractType
 | 
			
		||||
        ];
 | 
			
		||||
 | 
			
		||||
        $builder
 | 
			
		||||
            ->add(
 | 
			
		||||
                'agent',
 | 
			
		||||
                EntityType::class,
 | 
			
		||||
                [
 | 
			
		||||
                    'label' => 'For agent',
 | 
			
		||||
                    'required' => true,
 | 
			
		||||
                    'class' => User::class,
 | 
			
		||||
                    'data' => $this->storage->getToken()->getUser(),
 | 
			
		||||
                    'query_builder' => static function (EntityRepository $er) {
 | 
			
		||||
                        return $er->createQueryBuilder('u')->where('u.enabled = true');
 | 
			
		||||
                    },
 | 
			
		||||
                    'attr' => ['class' => 'select2 '],
 | 
			
		||||
                    'placeholder' => 'Choose the agent for whom this activity is created',
 | 
			
		||||
                    'choice_label' => 'username',
 | 
			
		||||
                ]
 | 
			
		||||
            )
 | 
			
		||||
            ->add('agent', PickUserDynamicType::class, [
 | 
			
		||||
                'label' => 'For agent',
 | 
			
		||||
                'required' => true,
 | 
			
		||||
            ])
 | 
			
		||||
            ->add(
 | 
			
		||||
                'date',
 | 
			
		||||
                ChillDateType::class,
 | 
			
		||||
 
 | 
			
		||||
@@ -13,6 +13,7 @@ namespace Chill\AsideActivityBundle\Menu;
 | 
			
		||||
 | 
			
		||||
use Knp\Menu\MenuItem;
 | 
			
		||||
use Symfony\Component\Security\Core\Security;
 | 
			
		||||
 | 
			
		||||
use function in_array;
 | 
			
		||||
 | 
			
		||||
final class AdminMenuBuilder implements \Chill\MainBundle\Routing\LocalMenuBuilderInterface
 | 
			
		||||
 
 | 
			
		||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user