This commit is contained in:
Nicolas Bally 2018-03-22 18:06:20 +01:00
parent b5518a6b91
commit 67c98a5b06
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
= form.input :alt, :label => "Texte alternatif :"
=# form.input :with_legend,:as => :boolean , :label => "Afficher la légende ?"
= form.input :credits, :label => "Crédit photo"
= form.input :alignement, :label => "Alignement :", :as => :select, :collection => ImageContent::ALIGNS, :include_blank => false
= form.input :style, :label => "Style :", :as => :select, :collection => ImageContent::STYLES, :include_blank => false
= form.input :width, :label => "Largeur :"
@ -27,7 +27,7 @@
= form.input :cible, :label => "Cible :" , :as => :qi_cible_select
= form.input :popup, :label => "Ouvrir dans une popup ?", :as => :boolean
= form.input :credits, :label => "Crédit photo", :as => :text
= form.input :margin_top, :label => "Marge haut :"
= form.input :margin_bottom, :label => "Marge bas :"
= form.input :margin_left, :label => "Marge gauche :"

View File

@ -64,5 +64,5 @@
=image_tag(url, :alt => input.alt.to_s, :style => styleimg )
-if input.credits?
.credits
=input.credits
=simple_format(input.credits, {}, wrapper_tag: "div")
=raw '</div>' if style