Add clickable links in champ description and use bootstrap layout for forms
This commit is contained in:
parent
5d733c11fd
commit
308a037f19
11 changed files with 62 additions and 68 deletions
|
@ -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
|
||||
|
|
|
@ -39,4 +39,4 @@ class TypeDeChampDecorator < Draper::Decorator
|
|||
@count_type_de_champ ||= procedure.types_de_champ.count
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue