studium +picture new Layout

This commit is contained in:
Andreas Stephanides
2013-09-30 21:18:04 +02:00
parent 5c4bc925e6
commit 2c91a8db7e
4 changed files with 38 additions and 21 deletions

View File

@@ -15,6 +15,17 @@
<div class="row-fluid">
<%= f.input :desc, :as=>:tinymce_text , :wrapper_html=>{:class=>"span12"}%>
</div>
<div class="row-fluid">
<div class="span12">
<label>Bild</label>
<%= image_tag(@studium.picture.thumb.url) unless @studium.picture.nil? %>
<%= f.file_field :picture %>
<%= f.hidden_field :picture_cache %>
</div>
</div>
<% end %>
<%= tinymce %>