procedures: group new_from_existing list by organization

As procedures are not grouped by Service (which are unique to an
administrator) but by organization, this allows procedures with the same
organization name to be displayed together.
This commit is contained in:
Pierre de La Morinerie 2018-07-03 20:18:49 +02:00
parent 56987e5147
commit b0a9e49549
5 changed files with 34 additions and 3 deletions

View file

@ -152,6 +152,10 @@ class Procedure < ApplicationRecord
libelle.parameterize.first(50)
end
def organisation_name
service&.nom || organisation
end
def types_de_champ_ordered
types_de_champ.order(:order_place)
end