Removed checkbox select column and context menu code from views

pull/6827/head
Sebastian Schuster 12 years ago
parent 0053451968
commit 31bb0ef2a3
  1. 6
      app/views/cost_objects/_list.html.erb
  2. 3
      app/views/cost_objects/index.html.erb

@ -2,9 +2,6 @@
<table class="list cost_objects">
<thead><tr>
<th><%= link_to image_tag('check.png'), {}, :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;',
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %>
</th>
<%= sort_header_tag("id", :caption => '#', :default_order => 'desc') %>
<%= sort_header_tag("status", :caption => CostObject.human_attribute_name(:status), :default_order => 'desc') %>
<%= sort_header_tag("subject", :caption => CostObject.human_attribute_name(:subject)) %>
@ -16,8 +13,7 @@
<tbody>
<% total_budget = BigDecimal.new("0"); labor_budget = BigDecimal.new("0"); material_budget = BigDecimal.new("0"); spent = BigDecimal.new("0") %>
<% cost_objects.each do |cost_object| %>
<tr id="cost_object-<%= cost_object.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= cost_object.css_classes %>">
<td class="checkbox"><%= check_box_tag("ids[]", cost_object.id, false, :id => nil) %></td>
<tr id="cost_object-<%= cost_object.id %>" class="<%= cycle('odd', 'even') %> <%= cost_object.css_classes %>">
<td><%= link_to cost_object.id, cost_object_path(cost_object.id) %></td>
<%= content_tag(:td, l(cost_object.status), :class => 'status') %>
<%= content_tag(:td, link_to(h(cost_object.subject), cost_object_path(cost_object.id), :class => 'subject')) %>

@ -21,6 +21,3 @@
</p>
<% html_title l(:label_cost_object_plural) %>
<div id="context-menu" style="display: none;"></div>
<%= javascript_tag "new ContextMenu('#{url_for(:controller => '/cost_objects', :action => 'context_menu')}')" %>

Loading…
Cancel
Save