<%= link_to(sprite_icon('add', l(:label_non_working_date_new)), new_non_working_date_path, :class => 'icon icon-add') %> <%= link_to(sprite_icon('import', l(:button_import)), new_non_working_dates_import_path, :class => 'icon icon-import') %>

<%= l(:label_non_working_date_plural) %>

<%= form_tag(non_working_dates_path, :method => :get, :class => 'non-working-dates-year') do %> <%= label_tag 'year', l(:label_year) %> <%= select_tag 'year', options_for_select(@years, @year), :onchange => 'this.form.submit();' %> <% end %> <% if @non_working_dates.any? %> <%= form_tag({}, :data => {:cm_url => non_working_dates_context_menu_path}) do -%> <%= hidden_field_tag 'back_url', url_for(:params => request.query_parameters), :id => nil %> <% @non_working_dates.each do |non_working_date| %> "> <% end %>
<%= check_box_tag 'check_all', '', false, :class => 'toggle-selection', :title => "#{l(:button_check_all)} / #{l(:button_uncheck_all)}" %> <%= l(:field_date) %> <%= l(:field_name) %>
<%= check_box_tag("ids[]", non_working_date.id, false, :id => nil) %> <%= link_to "#{format_date(non_working_date.date)} (#{abbr_day_name(non_working_date.date.cwday)})", edit_non_working_date_path(non_working_date) %> <%= non_working_date.name %> <%= link_to_context_menu %>
<% end -%> (<%= @non_working_dates.size %>/<%= @non_working_date_count %>) <%= context_menu %> <% else %>

<%= l(:label_no_data) %>

<% end %> <% if @non_working_date_count > 0 %> <% other_formats_links do |f| %> <%= f.link_to_with_query_parameters 'CSV', {}, :onclick => "showModal('csv-export-options', '330px'); return false;" %> <% end %> <% end %> <% html_title(l(:label_non_working_date_plural)) -%>