diff --git a/app/views/admin/articles/_form.html.haml b/app/views/admin/articles/_form.html.haml index fa6bc5a..8bef83f 100644 --- a/app/views/admin/articles/_form.html.haml +++ b/app/views/admin/articles/_form.html.haml @@ -7,24 +7,10 @@ = form.input :slug, :label => "Slug :" = form.input :description, :label => "Description courte :", :as => :text + + = form.input :image_file_id, :as => :qi_image_select, :label => "Image :" - - %li.string.optional - %label - Image : - %fieldset - -r = rand(1000000000000000000000000000) - =link_to "Modifier cette image", "#", :onclick => "select_image_from_manager('"+r.to_s+"');return false;" - %br - - -if form.object.image_file - =image_tag form.object.image_file.file.large.medium.small.thumb.url, :id => "img_"+r.to_s - -else - =image_tag "", :id => "img_"+r.to_s - - - - =form.hidden_field :image_file_id, :class => "inputText", :id => "input_"+r.to_s +