2021-11-25 16:26:55 +01:00
|
|
|
%ul.revision-changes
|
2022-09-06 09:58:09 +02:00
|
|
|
- if changes.empty?
|
|
|
|
%li.mb-1= t(:no_changes, scope: [:administrateurs, :revision_changes])
|
|
|
|
- else
|
|
|
|
- changes.filter { |change| change[:model] == :attestation_template }.each do |change|
|
|
|
|
= render partial: 'administrateurs/procedures/revision_change_attestation_template', locals: { change: change }
|
2022-09-30 14:29:44 +02:00
|
|
|
= render partial: "administrateurs/procedures/revision_change_type_de_champ",
|
|
|
|
collection: changes.filter { |change| change[:model] == :type_de_champ },
|
|
|
|
as: :change
|
2022-09-06 09:58:09 +02:00
|
|
|
- move_changes, move_private_changes = changes.filter { |change| change[:op] == :move }.partition { |change| !change[:private] }
|
|
|
|
- if move_changes.present?
|
|
|
|
%li.mb-1= t(:move, scope: [:administrateurs, :revision_changes], count: move_changes.size)
|
|
|
|
- if move_private_changes.present?
|
|
|
|
%li.mb-1= t(:move_private, scope: [:administrateurs, :revision_changes], count: move_private_changes.size)
|