Skip to content

Commit

Permalink
Merge pull request #219 from re-connect/feature/fix-fields-admin
Browse files Browse the repository at this point in the history
♻️ [WorkshopAdmin] Display old and new fields in order to fix data manually
  • Loading branch information
AntoineAresu authored May 27, 2024
2 parents 0b4263d + 3f765b8 commit f6b8aab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/Controller/Admin/WorkshopCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ public function configureFields(string $pageName): iterable
$nbCreatedNotes = IntegerField::new('nbCreatedNotes', 'created_notes_count');
$skills = AssociationField::new('skills', 'skills');
$attendees = TextField::new('attendees', 'attendees');
$improvementAxis = TextField::new('improvementAxis', 'improvement_axis');
$improvementAxis = TextField::new('improvementAxis', 'improvement_axis')->setDisabled();
$globalReport = TextField::new('globalReport', 'global_report');
$addProposal = TextField::new('addProposal', 'add_proposal');
$updateProposal = TextField::new('updateProposal', 'update_proposal');
$duration = AssociationField::new('duration', 'duration');
$maleCount = IntegerField::new('maleCount', 'male_count')->setRequired(true);
$femaleCount = IntegerField::new('femaleCount', 'female_count')->setRequired(true);
Expand All @@ -138,7 +141,9 @@ public function configureFields(string $pageName): iterable
$ageBreakpoints,
$usedEquipments,
$equipmentSuppliers,
$improvementAxis,
$globalReport,
$addProposal,
$updateProposal,
$nbBeneficiariesAccounts,
$nbStoredDocs,
$nbCreatedEvents,
Expand Down Expand Up @@ -167,6 +172,9 @@ public function configureFields(string $pageName): iterable
$usedEquipments,
$equipmentSuppliers,
$improvementAxis,
$globalReport,
$addProposal,
$updateProposal,
$nbBeneficiariesAccounts,
$nbStoredDocs,
$nbCreatedEvents,
Expand Down
6 changes: 5 additions & 1 deletion translations/messages.fr.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ID: Id
add_proposal: Proposition d'ajout (nouvelles ressources, exercices, thématiques...)
addProposal: Proposition d'ajout
age_breakpoint: Tranche d'âge
age_breakpoints: Tranches d'âges
attendees: Participants
Expand Down Expand Up @@ -28,11 +29,13 @@ equipment_supplier: Equipement fourni par
export: Exporter
female_count: Nb femmes
field_format_unknown: Format du champ inconnu
globalReport: Bilan global et axes d'amélioration
global_report: Bilan global et axes d'amélioration
has_used_vault: Utilisation du CFN
helped_beneficiaries_count: Nb bénéf aidés sur le CFN
hours: Heures
id: Id
improvement_axis: Bilan global et axes d'amélioration
improvement_axis: Axe d'amélioration (ancien champ)
male_count: Nb hommes
name: Nom
nbBeneficiariesAccounts: Nombre de CFN
Expand All @@ -56,6 +59,7 @@ topics: Thèmes
unfilled: Non renseigné
unintested_beneficiaries_count: Nb benef pas intéressés
update_proposal: Proposition de modification (évolution d'une fonctionnalité, d'un site...)
updateProposal: Proposition de modification
updated_at: Date de mise à jour
used_equipment: Outil utilisé
used_equipments: Outils utilisés
Expand Down

0 comments on commit f6b8aab

Please sign in to comment.