màj promotions

This commit is contained in:
Nicolas Bally 2013-03-25 09:25:34 +01:00
parent 71b38f23b2
commit 3d84f96b48
5 changed files with 73 additions and 17 deletions

View File

@ -492,6 +492,19 @@ ol {
} }
.column{ .column{
.cat{
background:#8fca46;
text-transform:uppercase;
color:white;
font-weight:bold;
font-size:1.2em;
margin-top:0px;
margin-bottom:0px;
margin:-10px;
padding:10px;
}
text-align:center; text-align:center;
font-size:1.1em; font-size:1.1em;
*{ *{
@ -507,13 +520,30 @@ ol {
padding:10px; padding:10px;
margin-right:29px; margin-right:29px;
img{ .img{
height:245px;
height:245px;
margin:20px 0px; margin:20px 0px;
img{
max-height:245px;
max-width:100%;
}
} }
.title{ .title{
text-transform:uppercase; background:#8fca46;
text-transform:uppercase;
color:white;
a{
color:white;
}
font-weight:bold;
font-size:1.2em;
margin-top:0px;
margin:0px -10px;
padding:10px;
} }
@ -698,7 +728,7 @@ padding:5px; } }
text-align:center; text-align:center;
} }
height:410px; min-height:410px;
float:left; float:left;
border:3px solid #8fca46; border:3px solid #8fca46;
width:288px; width:288px;
@ -706,17 +736,36 @@ padding:5px; } }
padding:10px; padding:10px;
margin-right:29px; margin-right:29px;
img{ .img{
height:245px;
height:245px;
margin:20px 0px; margin:20px 0px;
img{
max-height:245px;
max-width:100%;
}
} }
.title{ .title{
text-transform:uppercase; background:#8fca46;
text-transform:uppercase;
color:white;
a{
color:white;
}
font-weight:bold;
font-size:1.2em;
margin-top:0px;
margin:0px -10px;
padding:10px;
} }
} }
.column_3{ .column_3{
margin-right:0px !important; margin-right:0px !important;

View File

@ -5,7 +5,7 @@
= form.input :title, :label => "Titre :" = form.input :title, :label => "Titre :"
= form.input :month, :label => "Mois :", :order => [:month, :year] = form.input :month, :label => "Mois :", :order => [:month, :year]
= form.input :description, :label => "Description courte :", :as => :text, :class => "text_editor" = form.input :description, :label => "Description courte :", :as => :text, :input_html => {:class => "text_editor"}
%li.string.optional %li.string.optional
@ -29,3 +29,10 @@
.actions .actions
= form.submit "Sauvegarder" = form.submit "Sauvegarder"
:javascript
$(".text_editor").each(function() {
auto_tiny_mce($(this));
});

View File

@ -1 +1 @@
show_pane_hover("<%= escape_javascript(render(:partial => "form"))%>",550,600); show_pane_hover("<%= escape_javascript(render(:partial => "form"))%>",800,600);

View File

@ -1 +1 @@
show_pane_hover("<%= escape_javascript(render(:partial => "form"))%>",550,600); show_pane_hover("<%= escape_javascript(render(:partial => "form"))%>",800,600);

View File

@ -50,7 +50,7 @@
.title .title
=link_to promotion.title, "/pages/promotions.html" =link_to promotion.title, "/pages/promotions.html"
.description .description
=link_to simple_format(promotion.description), "/pages/promotions.html" =link_to raw(promotion.description), "/pages/promotions.html"
.column_2.column .column_2.column
.cat .cat
Bébés Bébés
@ -64,7 +64,7 @@
.title .title
=link_to promotion.title, "/pages/promotions.html" =link_to promotion.title, "/pages/promotions.html"
.description .description
=link_to simple_format(promotion.description), "/pages/promotions.html" =link_to raw(promotion.description), "/pages/promotions.html"
.column_3.column .column_3.column
.cat .cat
Hygiène Hygiène
@ -78,6 +78,6 @@
.title .title
=link_to promotion.title, "/pages/promotions.html" =link_to promotion.title, "/pages/promotions.html"
.description .description
=link_to simple_format(promotion.description), "/pages/promotions.html" =link_to raw(promotion.description), "/pages/promotions.html"
.clear .clear