blob: fae806afbe3f0c8e885493723fd38c6f25b0baa5 [file] [log] [blame]
<% @heading = 'New Baseline Process' %>
<% tinymce %>
<%= error_messages_for 'site' %>
<% unless @folders.empty? %>
<% tabular_form_for :site do |f| %>
<tr><th>Server Folder</th><td><%= f.select :folder, @folders.collect {|folder| [folder,folder]} %></td></tr>
<%= f.text_field :baseline_baseline %>
<%= f.text_field :title %>
<%= f.text_area :description, :cols => 60, :rows => 8 %>
<tr><th></th><td><%= submit_tag 'Submit' %></td></tr>
<% end %>
<% end %>
<!-- form_for cannot be used with multipart so we are not using tabular_form_for the next form -->
<% @site = Site.new %>
<div class="sectionHeading">Upload Zip File</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr>
<td class="sectionTableCell">
<%= start_form_tag({:action => 'upload'}, :multipart => true) %>
<table>
<tr><th align="right"><label for="file">File</label></th>
<td><%= file_field :site, :file %></td>
</tr>
<tr>
<th align="right" valign="top" width="200"><label for="site_folder">Server Folder Name</label></th>
<td><%= text_field 'site', 'folder' %></td>
</tr>
<tr>
<th align="right" valign="top"></th>
<td> <%= submit_tag 'Upload' %></td>
</tr>
</table>
<%= end_form_tag %>
</td>
</tr>
</table>
</div>