Adds admin components for conference photos
This commit is contained in:
parent
8ebf9de76c
commit
8e6e708813
3 changed files with 15 additions and 2 deletions
10
app/views/admin/conference/_photo_fields.html.erb
Normal file
10
app/views/admin/conference/_photo_fields.html.erb
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue