| 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')"} %> |
|---|
| 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> |
|---|