@model MileageTraker.Web.ViewModels.VehicleService.UpdateServiceRemindersViewModel

@{
    ViewBag.Title = "Update Service Reminders";
}

@Html.Partial("_StatusMessage")

<h2 class="center-content"><i class="fa fa-clock-o"></i> @ViewBag.Title</h2>
<p class="center-content">Add the next service for this vehicle and remove existing reminders.</p>

@using (Html.BeginForm("UpdateServiceReminders", "VehicleService", FormMethod.Post, new { @class = "form-horizontal well center-content" }))
{
    @Html.Partial("_ValidationSummary")
	@Html.HiddenFor(m => m.VehicleId)
	if (Model.DeleteServiceReminders.Available.Count > 0)
	 {
		 <fieldset>
			 <legend>Delete Reminders for this Vehicle?</legend>
			 @Html.EditorFor(m => m.DeleteServiceReminders)
		 </fieldset>
	 }
	<fieldset>
		<legend>Add a new Reminder?</legend>
		@Html.DisplayFor(m => m.CurrentOdometer)
		@Html.EditorFor(m => m.TargetOdometer)
		@Html.EditorFor(m => m.Description)
	</fieldset>
	<div class="form-actions">
        <input type="submit" value="Update" class="btn btn-primary" />
    </div>
}
