<% # handle freeze deadline if (@deadline) and (Time.now > @deadline) and (current_user.role != "admin") flash[:notice] = "Pipeline not available due to post-freeze processing
(as of #{@deadline.strftime('%Y-%m-%d %H:%M')})." %> Press the back button on your browser <% else %>

Create new submission:

<%= error_messages_for 'project' -%> <% form_tag(:action => 'create') do %>


<%= text_field 'project', 'name' %>
Please supply a readable name that includes the data type and lab (e.g.: Duke Dnase-Seq Sep08)

<% =begin %> Maybe I can use code like this for the "type" if we ever have a "types" table


<%= collection_select(:project, :category_id, @categories, :id, :name) %>


<%= collection_select(:project, :project_type_id, @projectTypesColl, :id, :name) %>


<%= text_field 'project', 'project_type_id' %>

<% =end %> <% if current_user.login == "admin" %>


<% else %> <% @project.project_type_id = @projectTypes[0].id %> <%= hidden_field :project, :project_type_id %> <% end %>
<%= submit_tag 'Create' -%> <%= submit_tag 'Cancel' -%>
<% end %> <% end %>