Add clickable links in champ description and use bootstrap layout for forms

This commit is contained in:
Mathieu Magnin 2017-02-14 11:13:48 +01:00
parent 5d733c11fd
commit 308a037f19
11 changed files with 62 additions and 68 deletions

View file

@ -7,4 +7,9 @@ class ChampDecorator < Draper::Decorator
end
object.value
end
end
def description_with_links
description.gsub(URI.regexp, '<a target="_blank" href="\0">\0</a>').html_safe if description
end
end

View file

@ -39,4 +39,4 @@ class TypeDeChampDecorator < Draper::Decorator
@count_type_de_champ ||= procedure.types_de_champ.count
end
end
end
end