|
|
|
@ -75,11 +75,8 @@ module ::TypesHelper |
|
|
|
|
} |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
extended_group = { key: group[0], translation: group_translate(group[0]) } |
|
|
|
|
|
|
|
|
|
[extended_group, extended_attributes] |
|
|
|
|
[group[0], extended_attributes] |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
inactives = inactive_attributes.map do |key, attribute| |
|
|
|
|
{ |
|
|
|
|
key: key, |
|
|
|
@ -109,14 +106,6 @@ module ::TypesHelper |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def group_translate(name) |
|
|
|
|
if ['details', 'estimates_and_time', 'other', 'people'].include? name |
|
|
|
|
I18n.t("label_#{name}") |
|
|
|
|
else |
|
|
|
|
name |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def translated_attribute_name(name, attr) |
|
|
|
|
if attr[:name_source] |
|
|
|
|
attr[:name_source].call |
|
|
|
|