Mercurial > hg > soundsoftware-site
view app/views/documents/new.rhtml @ 755:bde9c5bfb559 feature_14
created a new instance variable to be able to filter the projects: @filtered_projects. New projects index layout; new partials for projects index.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 11 Nov 2011 15:57:58 +0000 |
parents | 513646585e45 |
children |
line wrap: on
line source
<h2><%=l(:label_document_new)%></h2> <% form_tag({:controller => 'documents', :action => 'new', :project_id => @project}, :class => "tabular", :multipart => true) do %> <%= render :partial => 'documents/form' %> <div class="box"> <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p> </div> <%= submit_tag l(:button_create) %> <% end %>