feat: Enhance UI/UX across multiple views with consistent styling and improved layout

This commit is contained in:
Blake Ridgway 2025-06-21 16:30:59 -05:00
parent 9931687419
commit 36d4ae00dd
16 changed files with 609 additions and 60 deletions

View file

@ -9,11 +9,17 @@ public enum LawnCareEventType
Fertilizing,
Aeration,
WeedControl,
PestControl,
DiseaseControl,
Topdressing,
Overseeding,
Other
}
public enum MowingPattern
{
[Display(Name = "N/A")]
NotApplicable,
Vertical,
Horizontal,
Diagonal,
@ -29,17 +35,30 @@ public class LawnCareEvent
[Required]
[Display(Name = "Activity Type")]
public LawnCareEventType EventType { get; set; }
// --- THIS IS THE LINE TO CHECK ---
// Make sure this property exists and is spelled correctly.
[Required]
[DataType(DataType.Date)]
[Display(Name = "Date")]
public DateTime EventDate { get; set; }
// ---------------------------------
[Display(Name = "Mowing Pattern")]
public MowingPattern? MowingPattern { get; set; }
[Display(Name = "Product Used")]
[StringLength(200)]
public string? ProductUsed { get; set; }
[Display(Name = "Applied Amount")]
[Range(0.01, 1000.0, ErrorMessage = "Amount must be positive.")] // Example range
public decimal? AppliedAmount { get; set; }
[Display(Name = "Mower Height (inches)")]
[Range(0.5, 6.0, ErrorMessage = "Height must be between 0.5 and 6 inches.")]
public decimal? MowerHeightInches { get; set; }
[Display(Name = "Problem Observed")]
[StringLength(250)]
public string? ProblemObserved { get; set; }
[StringLength(500)]
public string? Notes { get; set; }