<%= bootstrap_form_for(@upload, html: {style: 'margin-bottom: 0px;', class: 'form-bordered'}) do |f| %> <%= f.alert_message "Please fix the errors below."%>
<%= f.form_group :title, class: "span8", style: 'margin-left: 0px;' do %> <%= f.text_field :title, label: (t 'blog.title'), class: 'input-block-level', required: true %> <%= f.text_area :description, label: (t 'blog.description'), class: 'input-block-level', required: false, rows: 4 %> <% end %>
<%= image_tag @upload.file.to_s if @upload.file? %>

<%= f.file_field :file, class: 'hidden', label: (t 'blog.select_image') %>
<%= f.form_group :description, class: "span8", style: 'margin-left: 0px; margin-top: -130px;' do %> <% end %>
<%= f.submit (t 'blog.submit'), class: 'btn btn-success' %> <%= link_to 'Show', @upload, class: 'btn' if action_name == 'edit' %> <%= link_to (t 'blog.back'), admin_files_path, class: 'btn btn-link' %>
<% end %>