<% form_remote_tag :url => diagnostic_log_index_path(:partial => true, :file_only => true), :update => "diagnostic_log_" + (params[:type] || "scheduler"), :method => :get do |form| %>
Log File: <%= select_tag("filename", options_for_select(@available_logs, @filename), {:dojoType => "helpsys.ext.ComboBox", :forceSelection => false, :typeAhead => true, :triggerAction => 'all', :id => '', :width => 200}) %> <%= submit_tag("View", :dojoType => "helpsys.ext.Button", :id => '', :value => 'View') %> <%= button_to_function('Download', "window.open('#{diagnostic_log_index_path(:format => 'text', :download => true)}&filename=' + this.form.filename.value);", :dojoType => "helpsys.ext.Button") %>
<% end %>
" class="fullIFrame"> <%= render :partial => 'file_frame' %>