<div class="media thumbnail" style="padding: 0px">
<%= bootstrap_form_for(@upload, html: {style: 'margin-bottom: 0px;', class: 'form-bordered'}) do |f| %>
  <%= f.alert_message "Please fix the errors below."%>

	<div style="padding: 10px;">
		<div class="controls controls-row">
			<%= 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 %>
		
			
		
		
	
		<div class="span2">
			<div class="fileupload fileupload-new" data-provides="fileupload" style="margin-top: 5px;">
				<div class="fileupload-preview thumbnail" data-trigger="fileinput" style="width: 320px; height: 145px;"><%=  image_tag @upload.file.to_s if @upload.file? %></div><br>
				<span class="btn btn-default btn-file btn-mini" >
					<span class="fileinput-new"></span>
					<span class="fileinput-exists"></span>
					<%= f.file_field :file, class: 'hidden', label: (t 'blog.select_image') %>
				</span>
			</div>
		
		</div>
		</div>
		
		<%= f.form_group :description, class: "span8", style: 'margin-left: 0px; margin-top: -130px;' do %>
		    
		<% end %>
			

	</div>
	<div class="form-actions" style="margin: 0px;">
		<%= 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' %>
	</div>

	<% end %>
</div>
