PTO Calendar

Schedule PTO

Plan your time away from work

<%= form_for @schedule, url: "#", html: { id: "cal_update" } do |s| %>
<%= s.text_field :event_name, { placeholder: "e.g., Summer Vacation, Personal Day", class: "form-control form-control-lg" } %>
<%= s.text_field :event_type, type: "hidden", value: "pto" %>
<%= s.text_field :event_desc, { placeholder: "e.g., Family trip to Hawaii, Medical appointment", class: "form-control form-control-lg" } %> Optional: Add details about your time off
Choose the start and end dates for your PTO
<%= s.submit "Schedule PTO", { id: 'cal_update_submit', class: "btn btn-primary btn-lg" } %>
Tip: Your PTO request will appear on the calendar after submission
<% end %>

Sick Days

Days Earned

<%= @pto.sick_days_earned %>

Days Taken

<%= @pto.sick_days_taken %>

Days Remaining

<%= @pto.sick_days_remaining %>

As of today: <%= Date.today.strftime("%B %d, %Y") %>

Paid Time Off

Days Earned

<%= @pto.pto_earned %>

Days Taken

<%= @pto.pto_taken %>

Days Remaining

<%= @pto.pto_days_remaining %>

As of today: <%= Date.today.strftime("%B %d, %Y") %>