This commit is contained in:
Nicolas Bally 2018-08-03 02:38:53 +02:00
parent b79c1831f8
commit c738ad94e8
2 changed files with 9 additions and 8 deletions

View File

@ -11,17 +11,18 @@
=#f.input :blur_image_id, :label => "Image floue :", :as => :qi_image_select
=#f.input :blur_color, :label => "Couleur de fond :"
=f.input :titre1, :label => "Titre :"
=f.input :titre2, :label => "Sous-titre :"
=f.input :article_id, :as => :select, :collection => (Hash[Article.order("id DESC").all.map{|a| [a.lang(@lang.slug).title,a.id]}]), :label => "Article associé :"
=f.input :description1, :label => "Description :"
=f.input :cta_text, :label => "Texte CTA :"
=#f.input :titre2, :label => "Sous-titre :"
=#f.input :article_id, :as => :select, :collection => (Hash[Article.order("id DESC").all.map{|a| [a.lang(@lang.slug).title,a.id]}]), :label => "Article associé :"
=f.input :url, :label => "Url :"
=f.input :description1, :label => "Description :"
=#f.input :cta_text, :label => "Texte CTA :"
= f.input :start_at, :label => "Début :", :as => :qi_datetime_picker
= f.input :end_at, :label => "Fin :", :as => :qi_datetime_picker
= #f.input :start_at, :label => "Début :", :as => :qi_datetime_picker
=# f.input :end_at, :label => "Fin :", :as => :qi_datetime_picker

View File

@ -57,7 +57,7 @@
%li= link_to "Vidéos", admin_video_files_path
%li.divider
%li= link_to "Sliders", admin_home_sliders_path
%li= link_to "Sliders", admin_home_slider_path(1)
%li= link_to "Produits", admin_d_products_path