diff --git a/app/views/paid_time_off/index.html.erb b/app/views/paid_time_off/index.html.erb index 58b1e35..f0d247f 100644 --- a/app/views/paid_time_off/index.html.erb +++ b/app/views/paid_time_off/index.html.erb @@ -1,120 +1,181 @@ -
-
-
-
- -
-
-
-
- -
-
- -
- -
-
-
-
- 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 %> -
-
- - - -
- +
+ +
+
+ + +
+ +
- -
-
-
-
-
- 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 +
+
+
+ + +
+
+
+
+

+ 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") %> +
+
+
@@ -122,130 +183,100 @@ <%= javascript_include_tag "fullcalendar.min.js" %> + +