<%= l(:text_bonus_technicians) %>
<% if @technicians.empty? %><%= l(:label_no_data) %>
<% else %>| <%= 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' %> |