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:
parent
56987e5147
commit
b0a9e49549
5 changed files with 34 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue