From 1bd3fab2b9d129bb213ac5db9a9972215a439ab2 Mon Sep 17 00:00:00 2001 From: Ken Johnson Date: Sun, 7 Dec 2025 02:54:25 -0500 Subject: [PATCH] Modernize Schedule PTO form with enhanced styling and user guidance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Improves the Schedule PTO form section with modern design elements: Design enhancements: - Add left border accent in primary color to highlight the card - Add gradient background to header with descriptive subtitle - Include icons next to each form label (tag, chat, calendar) - Upgrade all form controls to large size for better touch targets - Add helpful placeholder text with examples (e.g., "Summer Vacation") - Include descriptive helper text below fields for guidance - Make submit button full-width and large for prominence - Add tip box at bottom with success border highlighting post-submission info - Increase padding and spacing (mb-4) for better breathing room The form now feels more guided, professional, and easier to use. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/views/paid_time_off/index.html.erb | 66 ++++++++++++++++---------- 1 file changed, 42 insertions(+), 24 deletions(-) diff --git a/app/views/paid_time_off/index.html.erb b/app/views/paid_time_off/index.html.erb index 90da7cc..ed360a4 100644 --- a/app/views/paid_time_off/index.html.erb +++ b/app/views/paid_time_off/index.html.erb @@ -44,46 +44,64 @@
-
-
+
+

Schedule PTO

+

Plan your time away from work

-
+
<%= 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" + placeholder: "e.g., Summer Vacation, Personal Day", + class: "form-control form-control-lg" } %>
<%= 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" + 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 +
- - <%= s.submit "Schedule PTO", { - id: 'cal_update_submit', - class: "btn btn-primary" - } %> <% end %>