|
|
|
@ -111,7 +111,13 @@ |
|
|
|
Dauer: <span id="live-timer">Berechne …</span> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<%= button_to '⏹️ Stoppen', stop_timer_entry_path(@running_entry), method: :post, class: "btn btn-danger" %> |
|
|
|
<%= form_with url: stop_timer_entry_path(@running_entry), method: :post, local: true do |f| %> |
|
|
|
<div class="form-check mb-2"> |
|
|
|
<%= f.check_box :lunch_break, class: 'form-check-input', id: 'lunch_break' %> |
|
|
|
<%= f.label :lunch_break, '30 Min Mittagspause abziehen', class: 'form-check-label' %> |
|
|
|
</div> |
|
|
|
<%= f.submit '⏹️ Stoppen', class: "btn btn-danger" %> |
|
|
|
<% end %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% end %> |
|
|
|
|