anchor.diff:  				});
   				$('#close_button').prop('disabled', false);
           progress_bar.
  -          css("background", "red").
  -          text("Upload failed");
  +          css("background", "red")
         }
   	  });
   	});
  
positive.code:   });
  </script>
  <style>
  	.progress {
  	  max-width: 600px;
  	  margin:    0.2em 0 0.2em 0;
  	}
  
  	.progress .bar {
  	  height:  1.2em;
  	  padding: 0.2em;
  	  color:   white;
  	  display: none;
  	}
  </style>			
  <% if steps.include? 3 %>
  <script>	
  	$(function() {
  		var file_input = $('#<%= modal_id %> #direct-upload');	
  		var form = $(file_input.parents('form:first'));
  	  var submit_button = form.find('input[type="submit"]');
  	  var progress_bar = $("<div class='bar'></div>");
  	  var pb_container = $("<div class='progress'></div>").append(progress_bar);
  	  file_input.after(pb_container);
  	  file_input.fileupload({
        maxFileSize: 1000000000,
  	    fileInput: file_input,
  
negative.code:                                                       metadata: { 'original-filename' => '${filename}' } }) %>
  				<fieldset class="col-lg-12">
    				<legend><%= steps[3] %></legend>
  					<div id="file_upload" class="col-lg-12">
  						<%= f.file_field :url, accept: "*", id: 'direct-upload', class: "col-lg-12" %>
  					</div>
  				</fieldset>
  		<% end %>
  