tag.span instead of content_tag
This commit is contained in:
parent
2cb3b1c68e
commit
560e1fc4fe
3 changed files with 5 additions and 5 deletions
|
@ -37,7 +37,7 @@ module ChampHelper
|
||||||
when GeoArea.sources.fetch(:cadastre)
|
when GeoArea.sources.fetch(:cadastre)
|
||||||
capture do
|
capture do
|
||||||
concat "Parcelle n° #{geo_area.numero} - Feuille #{geo_area.code_arr} #{geo_area.section} #{geo_area.feuille} - #{geo_area.surface_parcelle.round} m"
|
concat "Parcelle n° #{geo_area.numero} - Feuille #{geo_area.code_arr} #{geo_area.section} #{geo_area.feuille} - #{geo_area.surface_parcelle.round} m"
|
||||||
concat content_tag(:sup, "2")
|
concat tag.sup("2")
|
||||||
end
|
end
|
||||||
when GeoArea.sources.fetch(:quartier_prioritaire)
|
when GeoArea.sources.fetch(:quartier_prioritaire)
|
||||||
"#{geo_area.commune} : #{geo_area.nom}"
|
"#{geo_area.commune} : #{geo_area.nom}"
|
||||||
|
@ -48,7 +48,7 @@ module ChampHelper
|
||||||
if geo_area.area.present?
|
if geo_area.area.present?
|
||||||
capture do
|
capture do
|
||||||
concat "Une aire de surface #{geo_area.area} m"
|
concat "Une aire de surface #{geo_area.area} m"
|
||||||
concat content_tag(:sup, "2")
|
concat tag.sup("2")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
"Une aire de surface inconnue"
|
"Une aire de surface inconnue"
|
||||||
|
|
|
@ -75,7 +75,7 @@ module DossierHelper
|
||||||
def status_badge(state)
|
def status_badge(state)
|
||||||
status_text = dossier_display_state(state, lower: true)
|
status_text = dossier_display_state(state, lower: true)
|
||||||
status_class = state.tr('_', '-')
|
status_class = state.tr('_', '-')
|
||||||
content_tag(:span, status_text, class: "label #{status_class} ")
|
tag.span(status_text, class: "label #{status_class} ")
|
||||||
end
|
end
|
||||||
|
|
||||||
def deletion_reason_badge(reason)
|
def deletion_reason_badge(reason)
|
||||||
|
@ -87,7 +87,7 @@ module DossierHelper
|
||||||
status_class = 'unknown'
|
status_class = 'unknown'
|
||||||
end
|
end
|
||||||
|
|
||||||
content_tag(:span, status_text, class: "label #{status_class} ")
|
tag.span(status_text, class: "label #{status_class} ")
|
||||||
end
|
end
|
||||||
|
|
||||||
def demandeur_dossier(dossier)
|
def demandeur_dossier(dossier)
|
||||||
|
|
|
@ -8,7 +8,7 @@ module ProcedureHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def procedure_libelle(procedure)
|
def procedure_libelle(procedure)
|
||||||
parts = procedure.brouillon? ? [content_tag(:span, 'démarche en test', class: 'badge')] : []
|
parts = procedure.brouillon? ? [tag.span('démarche en test', class: 'badge')] : []
|
||||||
parts << procedure.libelle
|
parts << procedure.libelle
|
||||||
safe_join(parts, ' ')
|
safe_join(parts, ' ')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue