Changeset 1836

Show
Ignore:
Timestamp:
10/24/08 09:03:29 (2 years ago)
Author:
dbryson
Message:

updates for file upload

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hive/trunk/data_webapp/app/views/queue_urls/new.html.erb

    r1613 r1836  
    11<center> 
    22      <h2>Add URL to Queue</h2> 
    3       <p></p
    4         <% form_for :queue_url, @queue_url, :url => {:action => 'create'} do |f| %> 
    5           <%= f.text_field :url %> 
    6           <%= f.select "priority",{"high" => 500, "medium" => 100, "low" => 1}.sort{|a,b| a[1] <=> b[1]} %> 
    7           <%= f.submit "Create" %><br> 
    8           Notify? : <%= check_box_tag 'notify','false',false,{:onchange => "toggleEnabledById('address'); this.value = (this.value == 'true' ? 'false' : 'true')"} %> 
     3      <p/
     4      <% form_for :queue_url, @queue_url, :url => {:action => 'create'} do |f| %> 
     5        <%= f.text_field :url %> 
     6        <%= f.select "priority",{"high" => 500, "medium" => 100, "low" => 1}.sort{|a,b| a[1] <=> b[1]} %> 
     7        <%= f.submit "Create" %><br> 
     8      Notify? : <%= check_box_tag 'notify','false',false,{:onchange => "toggleEnabledById('address'); this.value = (this.value == 'true' ? 'false' : 'true')"} %> 
    99          Email Address : <%= text_field_tag 'address','',:disabled => true %> 
    10         <% end %> 
    11         <p/> 
     10       <% end %> 
     11       <br/><br/> 
     12       <h2>Upload a file to the the Queue</h2> 
     13       <p/> 
     14       <% form_for(:upload, :url => { :action => "create_upload" }, :html => { :multipart => true }) do |f| %> 
     15         <%= f.file_field :uploaded_data %> 
     16         <%= select_tag "priority","<option value='1' selected='selected'>low</option><option value='100'>medium</option><option  value='500'>high</option>" %> 
     17         <br/><br/> 
     18         Notify? : <%= check_box_tag 'notify','false',false,{:onchange => "toggleEnabledById('uploadaddress'); this.value = (this.value == 'true' ? 'false' : 'true')"} %> 
     19        Email Address : <%= text_field_tag 'uploadaddress','',:disabled => true %> 
     20         <%= submit_tag "Upload" %> 
     21       <% end %> 
     22       </p> 
    1223      <div id="data" style="overflow: auto; overflow-y: hidden; width:100%"> 
    1324        <table class="details"> 
     
    3344        <%= will_paginate @queue_urls, :inner_window => 10, :outer_window => 10 %> 
    3445      </div> 
     46</center>