OpenProject is the leading open source project management software.
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.
 
 
 
 
 
 
openproject/app/views/costlog/index.html.erb

26 lines
1.1 KiB

<%= render :partial => 'shared/costs_header' %>
<div class="contextual">
<%= link_to_if_authorized l(:button_log_costs), {:controller => '/costlog', :action => 'new', :work_package_id => @work_package}, :class => 'icon-context icon-unit' %>
</div>
<%= render_costlog_breadcrumb %>
<h2><%= WorkPackage.human_attribute_name(:spent_costs) %></h2>
<%= form_remote_tag( :url => {}, :method => :get, :update => 'content' ) do %>
<%= hidden_field_tag('project_id', params[:project_id]) if @project %>
<%= hidden_field_tag 'work_package_id', params[:work_package_id] if @work_package %>
<%= hidden_field_tag 'cost_type_id', params[:cost_type_id] if @cost_type %>
<%= render :partial => 'date_range' %>
<% end %>
<% unless @entries.empty? %>
<%= render :partial => 'list', :locals => { :entries => @entries }%>
<%= pagination_links_full @entries %>
<% end %>
<% html_title WorkPackage.human_attribute_name(:spent_costs), l(:label_details) %>
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, {:work_package_id => @work_package, :format => 'atom', :key => User.current.rss_key}, :title => WorkPackage.human_attribute_name(:spent_costs)) %>
<% end %>