kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.8 KiB
40 lines
1.8 KiB
18 years ago
|
<div class="contextual">
|
||
17 years ago
|
<%= link_to_if_authorized l(:label_document_new),
|
||
17 years ago
|
{:controller => 'documents', :action => 'new', :project_id => @project},
|
||
17 years ago
|
:class => 'icon icon-add',
|
||
|
:onclick => 'Element.show("add-document"); return false;' %>
|
||
|
</div>
|
||
|
|
||
|
<div id="add-document" style="display:none;">
|
||
|
<h2><%=l(:label_document_new)%></h2>
|
||
17 years ago
|
<% form_tag({:controller => 'documents', :action => 'new', :project_id => @project}, :class => "tabular", :multipart => true) do %>
|
||
17 years ago
|
<%= render :partial => 'documents/form' %>
|
||
|
<div class="box">
|
||
|
<%= render :partial => 'common/attachments_form'%>
|
||
|
</div>
|
||
|
<%= submit_tag l(:button_create) %>
|
||
|
<%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-document")' %>
|
||
|
<% end %>
|
||
18 years ago
|
</div>
|
||
|
|
||
|
<h2><%=l(:label_document_plural)%></h2>
|
||
|
|
||
17 years ago
|
<% if @grouped.empty? %><p class="nodata"><%= l(:label_no_data) %></p><% end %>
|
||
|
|
||
|
<% @grouped.keys.sort.each do |group| %>
|
||
|
<h3><%= group %></h3>
|
||
|
<%= render :partial => 'documents/document', :collection => @grouped[group] %>
|
||
17 years ago
|
<% end %>
|
||
18 years ago
|
|
||
17 years ago
|
<% content_for :sidebar do %>
|
||
|
<h3><%= l(:label_sort_by, '') %></h3>
|
||
|
<% form_tag({}, :method => :get) do %>
|
||
|
<label><%= radio_button_tag 'sort_by', 'category', (@sort_by == 'category'), :onclick => 'this.form.submit();' %> <%= l(:field_category) %></label><br />
|
||
|
<label><%= radio_button_tag 'sort_by', 'date', (@sort_by == 'date'), :onclick => 'this.form.submit();' %> <%= l(:label_date) %></label><br />
|
||
|
<label><%= radio_button_tag 'sort_by', 'title', (@sort_by == 'title'), :onclick => 'this.form.submit();' %> <%= l(:field_title) %></label><br />
|
||
|
<label><%= radio_button_tag 'sort_by', 'author', (@sort_by == 'author'), :onclick => 'this.form.submit();' %> <%= l(:field_author) %></label>
|
||
|
<% end %>
|
||
|
<% end %>
|
||
17 years ago
|
|
||
|
<% set_html_title l(:label_document_plural) -%>
|