This commit is contained in:
Nicolas Bally 2018-03-22 16:55:33 +01:00
parent 76121a4e08
commit 3760434100
3 changed files with 13 additions and 1 deletions

View File

@ -16,6 +16,13 @@ $beige:#F1F0EE;
color:rgba(0,0,0,0.6);
padding:2px 0;
}
.author{
color:rgba(0,0,0,0.6);
padding:0px 0;
text-align:right;
}
#bottom{
position:absolute;
bottom:0;

View File

@ -5,8 +5,10 @@
= form.input :article_type, :label => "Type d'article :", :collection => [["Article pleine page", "page"],["Demi article", "demi"] ], :as => :select, :include_blank => false
= form.input :title, :label => "Titre :"
= form.input :description, :label => "Description courte :"
= form.input :author, :label => "Auteur :"
= form.input :image_file_id, :as => :qi_image_select
.actions
= form.submit "Sauvegarder", :class => "btn btn-primary"

View File

@ -62,6 +62,9 @@
.render_block
=render plume_article.block
-if plume_article.author?
.author
=plume_article.author
-if plume_article.article_type == "page"
-i = 0
=raw "</div><div class='page'>"