Skip to content
/ yeswiki Public
forked from YesWiki/yeswiki

Commit

Permalink
Merge pull request YesWiki#5 from J9rem/fix/pr-recurrent-date-field
Browse files Browse the repository at this point in the history
Fix/pr recurrent date field
  • Loading branch information
Zoldiru authored and Alex Chivot committed Apr 24, 2024
2 parents 191784e + 61add48 commit 941f003
Show file tree
Hide file tree
Showing 13 changed files with 409 additions and 272 deletions.
1 change: 0 additions & 1 deletion tools/bazar/fields/DateField.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ protected function renderInput($entry)
'hasTime' => $hasTime,
'value' => $value,
'data' => $entry["{$this->getPropertyName()}_data"] ?? [],
'type' => $this->type,
'canRegisterMultipleEntries' => $this->getService(DateService::class)->canRegisterMultipleEntries($entry)
]);
}
Expand Down
9 changes: 6 additions & 3 deletions tools/bazar/lang/bazar_ca.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@
// templates/tableau.twig
// 'SUM' => 'Somme',
'URL' => 'Url',

// templates/bazar/fields/date.twig
// 'EVENT_IS_RECURRENT' => 'Cet évènement est récurrent : %{repetition}, %{nb} fois maximum',
// 'EVENT_IS_RECURRENT' => 'Cet évènement est récurrent : %{repetition}',
// 'EVENT_LIMIT_DATE' => 'jusqu\'au %{date}',
// 'EVENT_REPETITION_FOR_DAYS' => 'tous les %{x} jours',
// 'EVENT_REPETITION_FOR_MONTHS' => 'tous les %{x} mois, %{monthRepetition}',
Expand All @@ -388,6 +388,7 @@
// 'EVENT_IS_LINKED_TO_RECURRENT' => 'Cet évènement est un évènement récurrent lié à la fiche %{link}',

// templates/bazar/inputs/date.twig
// 'EVENT_ACTIVATE_CUSTOM' => 'Voir les options supplémentaires',
// 'EVENT_EVERY_DAYS' => 'Tous les jours',
// 'EVENT_EVERY_X_DAYS' => 'Tous les X jours',
// 'EVENT_EVERY_WEEKS' => 'Toutes les semaines',
Expand All @@ -402,10 +403,12 @@
// 'EVENT_FORTH_Y_OF_MONTH' => 'Le quatrième Y du mois',
// 'EVENT_IS_LINKED_TO_RECURRENT_EDIT' => 'Cette évènement est un évènement récurrent lié à la fiche %{link}.<br/>Toute modification de cette fiche cassera le lien avec l\'évènement de base !',
// 'EVENT_LAST_Y_OF_MONTH' => 'Le dernier Y du mois',
// 'EVENT_NB_MAX_REPETITIONS' => '%{X} fois maximum',
// 'EVENT_NO_LIMIT_DATE' => 'Sans date de fin de répétition, seuls 300 évènements seront créés !',
// 'EVENT_NO_REPETITION' => 'Pas de répétition',
// 'EVENT_NTH_OF_MONTH' => 'Chaque Y du mois',
// 'EVENT_ON_MONTH' => 'En :',
// 'EVENT_RECURRENT' => 'Récurrence',
// 'EVENT_REMOVE_CUSTOM' => 'Masques les options supplémentaires',
// 'EVENTS_REPETITIONS' => 'Répétitions',
// 'EVENT_SECOND_Y_OF_MONTH' => 'Le second Y du mois',
// 'EVENT_THIRD_Y_OF_MONTH' => 'Le troisième Y du mois',
Expand Down
6 changes: 4 additions & 2 deletions tools/bazar/lang/bazar_en.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@
// 'EVENT_IS_LINKED_TO_RECURRENT' => 'Cet évènement est un évènement récurrent lié à la fiche %{link}',

// templates/bazar/inputs/date.twig
//'EVENT_RECURRENT' => 'Récurrence',
// 'EVENT_ACTIVATE_CUSTOM' => 'Voir les options supplémentaires',
// 'EVENT_EVERY_DAYS' => 'Tous les jours',
// 'EVENT_EVERY_X_DAYS' => 'Tous les X jours',
// 'EVENT_EVERY_WEEKS' => 'Toutes les semaines',
Expand All @@ -405,10 +405,12 @@
// 'EVENT_FORTH_Y_OF_MONTH' => 'Le quatrième Y du mois',
// 'EVENT_IS_LINKED_TO_RECURRENT_EDIT' => 'Cette évènement est un évènement récurrent lié à la fiche %{link}.<br/>Toute modification de cette fiche cassera le lien avec l\'évènement de base !',
// 'EVENT_LAST_Y_OF_MONTH' => 'Le dernier Y du mois',
// 'EVENT_NB_MAX_REPETITIONS' => '%{X} fois maximum',
// 'EVENT_NO_LIMIT_DATE' => 'Sans date de fin de répétition, seuls 300 évènements seront créés !',
// 'EVENT_NO_REPETITION' => 'Pas de répétition',
// 'EVENT_NTH_OF_MONTH' => 'Chaque Y du mois',
// 'EVENT_ON_MONTH' => 'En :',
// 'EVENT_RECURRENT' => 'Récurrence',
// 'EVENT_REMOVE_CUSTOM' => 'Masques les options supplémentaires',
// 'EVENTS_REPETITIONS' => 'Répétitions',
// 'EVENT_SECOND_Y_OF_MONTH' => 'Le second Y du mois',
// 'EVENT_THIRD_Y_OF_MONTH' => 'Le troisième Y du mois',
Expand Down
7 changes: 5 additions & 2 deletions tools/bazar/lang/bazar_es.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@
'URL' => 'Url',

// templates/bazar/fields/date.twig
// 'EVENT_IS_RECURRENT' => 'Cet évènement est récurrent : %{repetition}, %{nb} fois maximum',
// 'EVENT_IS_RECURRENT' => 'Cet évènement est récurrent : %{repetition}',
// 'EVENT_LIMIT_DATE' => 'jusqu\'au %{date}',
// 'EVENT_REPETITION_FOR_DAYS' => 'tous les %{x} jours',
// 'EVENT_REPETITION_FOR_MONTHS' => 'tous les %{x} mois, %{monthRepetition}',
Expand All @@ -389,6 +389,7 @@
// 'EVENT_IS_LINKED_TO_RECURRENT' => 'Cet évènement est un évènement récurrent lié à la fiche %{link}',

// templates/bazar/inputs/date.twig
// 'EVENT_ACTIVATE_CUSTOM' => 'Voir les options supplémentaires',
// 'EVENT_EVERY_DAYS' => 'Tous les jours',
// 'EVENT_EVERY_X_DAYS' => 'Tous les X jours',
// 'EVENT_EVERY_WEEKS' => 'Toutes les semaines',
Expand All @@ -403,10 +404,12 @@
// 'EVENT_FORTH_Y_OF_MONTH' => 'Le quatrième Y du mois',
// 'EVENT_IS_LINKED_TO_RECURRENT_EDIT' => 'Cette évènement est un évènement récurrent lié à la fiche %{link}.<br/>Toute modification de cette fiche cassera le lien avec l\'évènement de base !',
// 'EVENT_LAST_Y_OF_MONTH' => 'Le dernier Y du mois',
// 'EVENT_NB_MAX_REPETITIONS' => '%{X} fois maximum',
// 'EVENT_NO_LIMIT_DATE' => 'Sans date de fin de répétition, seuls 300 évènements seront créés !',
// 'EVENT_NO_REPETITION' => 'Pas de répétition',
// 'EVENT_NTH_OF_MONTH' => 'Chaque Y du mois',
// 'EVENT_ON_MONTH' => 'En :',
// 'EVENT_RECURRENT' => 'Récurrence',
// 'EVENT_REMOVE_CUSTOM' => 'Masques les options supplémentaires',
// 'EVENTS_REPETITIONS' => 'Répétitions',
// 'EVENT_SECOND_Y_OF_MONTH' => 'Le second Y du mois',
// 'EVENT_THIRD_Y_OF_MONTH' => 'Le troisième Y du mois',
Expand Down
7 changes: 5 additions & 2 deletions tools/bazar/lang/bazar_fr.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@
// templates/tableau.twig
'SUM' => 'Somme',
'URL' => 'Url',

// templates/bazar/fields/date.twig
'EVENT_IS_RECURRENT' => 'Cet évènement est récurrent : %{repetition}',
'EVENT_LIMIT_DATE' => 'jusqu\'au %{date}',
Expand All @@ -393,7 +393,7 @@
'EVENT_IS_LINKED_TO_RECURRENT' => 'Cet évènement est un évènement récurrent lié à la fiche %{link}',

// templates/bazar/inputs/date.twig
'EVENT_RECURRENT' => 'Récurrence',
'EVENT_ACTIVATE_CUSTOM' => 'Voir les options supplémentaires',
'EVENT_EVERY_DAYS' => 'Tous les jours',
'EVENT_EVERY_X_DAYS' => 'Tous les X jours',
'EVENT_EVERY_WEEKS' => 'Toutes les semaines',
Expand All @@ -408,9 +408,12 @@
'EVENT_FORTH_Y_OF_MONTH' => 'Le quatrième Y du mois',
'EVENT_IS_LINKED_TO_RECURRENT_EDIT' => 'Cette évènement est un évènement récurrent lié à la fiche %{link}.<br/>Toute modification de cette fiche cassera le lien avec l\'évènement de base !',
'EVENT_LAST_Y_OF_MONTH' => 'Le dernier Y du mois',
'EVENT_NO_LIMIT_DATE' => 'Sans date de fin de répétition, seuls 300 évènements seront créés !',
'EVENT_NO_REPETITION' => 'Pas de répétition',
'EVENT_NTH_OF_MONTH' => 'Chaque Y du mois',
'EVENT_ON_MONTH' => 'En :',
'EVENT_RECURRENT' => 'Récurrence',
'EVENT_REMOVE_CUSTOM' => 'Masques les options supplémentaires',
'EVENTS_REPETITIONS' => 'Répétitions',
'EVENT_SECOND_Y_OF_MONTH' => 'Le second Y du mois',
'EVENT_THIRD_Y_OF_MONTH' => 'Le troisième Y du mois',
Expand Down
7 changes: 5 additions & 2 deletions tools/bazar/lang/bazar_nl.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
'URL' => 'Url',

// templates/bazar/fields/date.twig
// 'EVENT_IS_RECURRENT' => 'Cet évènement est récurrent : %{repetition}, %{nb} fois maximum',
// 'EVENT_IS_RECURRENT' => 'Cet évènement est récurrent : %{repetition}',
// 'EVENT_LIMIT_DATE' => 'jusqu\'au %{date}',
// 'EVENT_REPETITION_FOR_DAYS' => 'tous les %{x} jours',
// 'EVENT_REPETITION_FOR_MONTHS' => 'tous les %{x} mois, %{monthRepetition}',
Expand All @@ -388,6 +388,7 @@
// 'EVENT_IS_LINKED_TO_RECURRENT' => 'Cet évènement est un évènement récurrent lié à la fiche %{link}',

// templates/bazar/inputs/date.twig
// 'EVENT_ACTIVATE_CUSTOM' => 'Voir les options supplémentaires',
// 'EVENT_EVERY_DAYS' => 'Tous les jours',
// 'EVENT_EVERY_X_DAYS' => 'Tous les X jours',
// 'EVENT_EVERY_WEEKS' => 'Toutes les semaines',
Expand All @@ -402,10 +403,12 @@
// 'EVENT_FORTH_Y_OF_MONTH' => 'Le quatrième Y du mois',
// 'EVENT_IS_LINKED_TO_RECURRENT_EDIT' => 'Cette évènement est un évènement récurrent lié à la fiche %{link}.<br/>Toute modification de cette fiche cassera le lien avec l\'évènement de base !',
// 'EVENT_LAST_Y_OF_MONTH' => 'Le dernier Y du mois',
// 'EVENT_NB_MAX_REPETITIONS' => '%{X} fois maximum',
// 'EVENT_NO_LIMIT_DATE' => 'Sans date de fin de répétition, seuls 300 évènements seront créés !',
// 'EVENT_NO_REPETITION' => 'Pas de répétition',
// 'EVENT_NTH_OF_MONTH' => 'Chaque Y du mois',
// 'EVENT_ON_MONTH' => 'En :',
// 'EVENT_RECURRENT' => 'Récurrence',
// 'EVENT_REMOVE_CUSTOM' => 'Masques les options supplémentaires',
// 'EVENTS_REPETITIONS' => 'Répétitions',
// 'EVENT_SECOND_Y_OF_MONTH' => 'Le second Y du mois',
// 'EVENT_THIRD_Y_OF_MONTH' => 'Le troisième Y du mois',
Expand Down
7 changes: 5 additions & 2 deletions tools/bazar/lang/bazar_pt.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
'URL' => 'Url',

// templates/bazar/fields/date.twig
// 'EVENT_IS_RECURRENT' => 'Cet évènement est récurrent : %{repetition}, %{nb} fois maximum',
// 'EVENT_IS_RECURRENT' => 'Cet évènement est récurrent : %{repetition}',
// 'EVENT_LIMIT_DATE' => 'jusqu\'au %{date}',
// 'EVENT_REPETITION_FOR_DAYS' => 'tous les %{x} jours',
// 'EVENT_REPETITION_FOR_MONTHS' => 'tous les %{x} mois, %{monthRepetition}',
Expand All @@ -388,6 +388,7 @@
// 'EVENT_IS_LINKED_TO_RECURRENT' => 'Cet évènement est un évènement récurrent lié à la fiche %{link}',

// templates/bazar/inputs/date.twig
// 'EVENT_ACTIVATE_CUSTOM' => 'Voir les options supplémentaires',
// 'EVENT_EVERY_DAYS' => 'Tous les jours',
// 'EVENT_EVERY_X_DAYS' => 'Tous les X jours',
// 'EVENT_EVERY_WEEKS' => 'Toutes les semaines',
Expand All @@ -402,10 +403,12 @@
// 'EVENT_FORTH_Y_OF_MONTH' => 'Le quatrième Y du mois',
// 'EVENT_IS_LINKED_TO_RECURRENT_EDIT' => 'Cette évènement est un évènement récurrent lié à la fiche %{link}.<br/>Toute modification de cette fiche cassera le lien avec l\'évènement de base !',
// 'EVENT_LAST_Y_OF_MONTH' => 'Le dernier Y du mois',
// 'EVENT_NB_MAX_REPETITIONS' => '%{X} fois maximum',
// 'EVENT_NO_LIMIT_DATE' => 'Sans date de fin de répétition, seuls 300 évènements seront créés !',
// 'EVENT_NO_REPETITION' => 'Pas de répétition',
// 'EVENT_NTH_OF_MONTH' => 'Chaque Y du mois',
// 'EVENT_ON_MONTH' => 'En :',
// 'EVENT_RECURRENT' => 'Récurrence',
// 'EVENT_REMOVE_CUSTOM' => 'Masques les options supplémentaires',
// 'EVENTS_REPETITIONS' => 'Répétitions',
// 'EVENT_SECOND_Y_OF_MONTH' => 'Le second Y du mois',
// 'EVENT_THIRD_Y_OF_MONTH' => 'Le troisième Y du mois',
Expand Down
Loading

0 comments on commit 941f003

Please sign in to comment.