<div class="page-header">
<form class="form-inline">
<h1>Выработка за </h1>
<input id="datepicker" name="date" value="<%= @date %>" class="form-control"/>
<% if current_user.has_role? :admin %>
<%= link_to new_output_path, remote: true, class: 'btn btn-primary' do %>
<span class="glyphicon glyphicon-plus"></span>
Новая запись
<% end %>
<a href="#" class='btn btn-warning' id="export"><span class="glyphicon glyphicon-download"></span> Выгрузить</a>
<% end %>
</form>
</div>
<div class="table-responsive">
<table id="table2export" class="table table-bordered">
<thead>
<tr class="active">
<th>Дата</th>
<th>Работник</th>
<th>Ставка</th>
<th>Продукция</th>
<th>Выработка станка</th>
<th>Время</th>
<th>Выработка</th>
<th>План</th>
<th>Процент</th>
<th>Зарплата</th>
<% if current_user.has_role? :admin %>
<th></th>
<th></th>
<% end %>
</tr>
</thead>
<tbody id="results">
<%= render partial: 'outputtable', locals: { outputs: @outputs} %>
</tbody>
</table>
</div>