-
-
-
-
-
- - Success! -
-- Information successfully updated. -
-
-
-
-
-
-
-
- - Error! -
-- Failed to update. -
-
-
-
-
-
-
-
-
-
-
- PTO Calendar
-
-
-
-
-
-
-
-
-
-
- Schedule PTO
-
-
- <%= form_for @schedule, :url => "#",:html => {:id => "cal_update"} do |s|%>
-
-
+
- <%= s.label :event_name, "Event Name", {:class => "control-label"}%>
- <%= s.text_field :event_name, {:placeholder => "My PTO", :class => "span6"}%>
-
-
- <%= s.text_field :event_type, {:type => "hidden", :value => "pto", :class => "span6"}%>
-
-
- <%= s.label :event_desc, "Event Description", {:class => "control-label"}%>
- <%= s.text_field :event_desc, {:placeholder => "Travel to Europe", :class => "span6"}%>
-
-
-
-
- <%= s.submit "Submit", {:id => 'cal_update_submit', :class => "btn btn-primary pull-left"} %>
- <% end %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
+
+
+
+
+
+
+
+
-
+
Success!
+Information successfully updated.
+
+
+
+
+
+
+
+ Error!
+Failed to update. Please try again.
+
-
-
-
-
- Sick Days
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + PTO Calendar +
+
+
+
+
+
+
+
+
+
+ + Schedule PTO +
+
+ <%= form_for @schedule, url: "#", html: { id: "cal_update" } do |s| %>
+
+
+ <%= s.label :event_name, "Event Name", class: "form-label" %>
+ <%= s.text_field :event_name, {
+ placeholder: "My PTO",
+ class: "form-control"
+ } %>
+
+
+ <%= s.text_field :event_type, type: "hidden", value: "pto" %>
+
+
+ <%= s.label :event_desc, "Event Description", class: "form-label" %>
+ <%= s.text_field :event_desc, {
+ placeholder: "Travel to Europe",
+ class: "form-control"
+ } %>
+
+
+
+
+
+
+ <%= s.submit "Schedule PTO", {
+ id: 'cal_update_submit',
+ class: "btn btn-primary"
+ } %>
+ <% 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
+
+
+
@@ -122,130 +183,100 @@
<%= javascript_include_tag "fullcalendar.min.js" %>
+
+
+
+
+
+ + 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") %>
+