%h1 Incidents
- if @start_date.present?
  %h2
    = @start_date.strftime '%A, %B %e'
    &mdash;
    = @end_date.strftime '%A, %B %e'
  .date-navigation
    = link_to incidents_path(mode: @mode, start_date: @prev_start), class: 'prev' do
      %button.btn.btn-primary
        &larr;
        Previous #{@mode}
    - case @mode
    - when 'week'
      = link_to incidents_path(mode: 'month', start_date: @start_date.beginning_of_month), class: 'switch' do
        %button.btn.btn-primary View for whole month
    - when 'month'
      = link_to incidents_path(mode: 'week', start_date: @week_start_date), class: 'switch' do
        %button.btn.btn-primary View single week
    = link_to incidents_path(mode: @mode, start_date: @next_start), class: 'next' do
      %button.btn.btn-primary
        Next #{@mode}
        &rarr;
= render 'division_filters' if current_user.divisions.many?
= render 'claim_search'
.batch-hastus-export
  %button.btn.btn-primary#main-button Batch export Hastus XML
  %button.btn.btn-primary#select-all Select all
= render 'table'

%h1 Incidents
- if @start_date.present?
  %h2
    = @start_date.strftime '%A, %B %e'
    &mdash;
    = @end_date.strftime '%A, %B %e'
  .date-navigation
    = link_to incidents_path(mode: @mode, start_date: @prev_start), class: 'prev' do
      %button.btn.btn-primary
        &larr;
        Previous #{@mode}
    - case @mode
    - when 'week'
      = link_to incidents_path(mode: 'month', start_date: @start_date.beginning_of_month), class: 'switch' do
        %button.btn.btn-primary View for whole month
    - when 'month'
      = link_to incidents_path(mode: 'week', start_date: @week_start_date), class: 'switch' do
        %button.btn.btn-primary View single week
    = link_to incidents_path(mode: @mode, start_date: @next_start), class: 'next' do
      %button.btn.btn-primary
        Next #{@mode}
        &rarr;
= render 'division_filters' if current_user.divisions.many?
= render 'claim_search'
.batch-hastus-export
  %button.btn.btn-primary#main-button Batch export
  %button.btn.btn-primary#xml-button Batch export Hastus XML
  %button.btn.btn-primary#csv-button Batch export Hastus CSV
  %button.btn.btn-primary#select-all Select all
= render 'table'

Add two buttons for separate formats, give them ids for coffee
Add two buttons for separate formats, give them ids for coffee
