div class page-header form class form-inline h1 Выработка за h1 input

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<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>