<%= stylesheet_link_tag 'wk-time', :plugin => "redmine_wktime" %>
<div class="autoscroll">
<table class="list time-entries">
  <thead>
         <tr>
				<th class="lbl-txt-align">#</th>
				<%= sort_header_tag('name', :caption => l(:field_name), class: "lbl-txt-align") %>
				<%= sort_header_tag('status', :caption => l(:field_status), class: "lbl-txt-align") %>
				<%= sort_header_tag('start_date', :caption => l(:label_start_date), class: "lbl-txt-align") %>
				<%= sort_header_tag('end_date', :caption => l(:label_end_date), class: "lbl-txt-align") %>
				<th></th>
         </tr>
  </thead>
  <tbody>
     <% @rfqEntries.each do |entry| %>
          <tr>
			  <td class="lbl-txt-align"><%=h entry.id %></td>
		      <td class="lbl-txt-align"><%=h entry.name %></td>
			  <td class="lbl-txt-align"><%=h getRfqStatusHash[entry.status]  %></td>
			  <td class="lbl-txt-align"><%=h entry.start_date %></td>
			  <td class="lbl-txt-align"><%=h entry.end_date  %></td>
			  <td align="center">
                 <%= link_to image_tag('edit.png'), {:controller => controller.controller_name, :action => 'edit', :rfq_id => entry.id, id: entry.id}, :title => l(:button_edit) %>
				 <% if controller.deletePermission %>
					<%= link_to image_tag('delete.png'), {:controller => controller.controller_name, :action => 'destroy', :rfq_id => entry.id, :tab => controller.controller_name, id: entry.id},  :data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete) %>
				<% end %>
			  </td>
		 </tr>
   	<% end %>
  </tbody>
</table>
</div>
<span class="pagination"><%= pagination_links_full @entry_pages, @entry_count %></span>

