Adds admin components for conference photos

This commit is contained in:
Gopesh Tulsyan 2014-06-10 17:47:46 +05:30
parent 8ebf9de76c
commit 8e6e708813
3 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,10 @@
<div class="nested-fields">
<%= f.inputs do %>
<%= image_tag(f.object.picture(:thumb)) unless f.object.picture.blank? %>
<%= f.input :picture, hint: 'This photo will appear in the gallery of the splash
so please give photos of banner sizes' %>
<%= f.input :description, :input_html => {:rows => 2 }, hint: 'This description will appear
at the bottom of each photo' %>
<%= remove_association_link :photo, f %>
<% end %>
</div>