Chris@909:
Chris@909: <%= link_to_if_authorized l(:label_document_new),
Chris@909: {:controller => 'documents', :action => 'new', :project_id => @project},
Chris@909: :class => 'icon icon-add',
Chris@909: :onclick => 'Element.show("add-document"); Form.Element.focus("document_title"); return false;' %>
Chris@909:
Chris@909:
Chris@909:
Chris@909:
<%=l(:label_document_new)%>
Chris@909: <% form_tag({:controller => 'documents', :action => 'new', :project_id => @project}, :class => "tabular", :multipart => true) do %>
Chris@909: <%= render :partial => 'documents/form' %>
Chris@909:
Chris@909:
<%= render :partial => 'attachments/form' %>
Chris@909:
Chris@909: <%= submit_tag l(:button_create) %>
Chris@909: <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-document")' %>
Chris@909: <% end %>
Chris@909:
Chris@909:
Chris@909: <%=l(:label_document_plural)%>
Chris@909:
Chris@909: <% if @grouped.empty? %><%= l(:label_no_data) %>
<% end %>
Chris@909:
Chris@909: <% @grouped.keys.sort.each do |group| %>
Chris@909: <%= group %>
Chris@909: <%= render :partial => 'documents/document', :collection => @grouped[group] %>
Chris@909: <% end %>
Chris@909:
Chris@909: <% content_for :sidebar do %>
Chris@909: <%= l(:label_sort_by, '') %>
Chris@909: <% form_tag({}, :method => :get) do %>
Chris@909:
Chris@909:
Chris@909:
Chris@909:
Chris@909: <% end %>
Chris@909: <% end %>
Chris@909:
Chris@909: <% html_title(l(:label_document_plural)) -%>