feat(revision): list updated placeholder option for generic type de champ

This commit is contained in:
Colin Darie 2022-07-07 15:53:31 +02:00
parent 93d18e2f53
commit fe0282e904
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
4 changed files with 26 additions and 1 deletions

View file

@ -44,6 +44,8 @@
%li.mb-1= t("administrateurs.revision_changes.update_drop_down_other#{postfix}.enabled", label: change[:label])
- else
%li.mb-1= t("administrateurs.revision_changes.update_drop_down_other#{postfix}.disabled", label: change[:label])
- when :placeholder
%li.mb-1= t("update_placeholder#{postfix}", label: change[:label], to: change[:to], scope: [:administrateurs, :revision_changes])
- when :carte_layers
- added = change[:to].sort - change[:from].sort
- removed = change[:from].sort - change[:to].sort