<%= link_to sprite_icon('add', l(:label_bonus_technician_new)), new_bonus_technician_path, class: 'icon icon-add' %> <%= link_to sprite_icon('settings', l(:label_settings)), plugin_settings_path('redmine_qbo_bonus'), class: 'icon icon-settings' %>

<%= l(:label_bonus_technician_plural) %>

<%= l(:text_bonus_technicians) %>

<% if @technicians.empty? %>

<%= l(:label_no_data) %>

<% else %>
<% @technicians.each do |tech| %> <% end %>
<%= l(:label_user) %> <%= l(:field_role) %> <%= l(:label_bonus_technician_customer) %> <%= l(:field_bonus_technician_probation_until) %> <%= l(:field_active) %>
<%= link_to_user tech.user %> <%= tech.role_name %> <%= tech.customer ? link_to(tech.customer.name, customer_path(tech.customer)) : content_tag(:span, l(:text_tech_bonus_no_customer), class: 'tech-bonus-error') %> <%= format_date(tech.probation_until) %> <%= checked_image tech.active? %> <%= link_to sprite_icon('edit', l(:button_edit)), edit_bonus_technician_path(tech), class: 'icon icon-edit' %> <%= link_to sprite_icon('del', l(:button_delete)), bonus_technician_path(tech), method: :delete, data: { confirm: l(:text_are_you_sure) }, class: 'icon icon-del' %>
<% end %> <% html_title l(:label_bonus_technician_plural) %>