<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Client/ClientMaster.master" CodeBehind="EditSchedule.aspx.vb" Inherits="Web.EditSchedule" %>
<%@ MasterType VirtualPath="ClientMaster.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phContent" runat="server">

    <div class="container">
        <h1><%= If(scheduleId, "Edit Maintenance Schedule", "Add Maintenance Schedule") %></h1>

        <div class="form-group">
            <asp:Label runat="server" AssociatedControlID="txtLabel" Text="Label" />
            <asp:TextBox ID="txtLabel" runat="server" MaxLength="100" CssClass="form-control" />
            <asp:RequiredFieldValidator runat="server" ControlToValidate="txtLabel"
                Text="required" CssClass="text-danger" Display="Dynamic" />
        </div>
        <div class="form-group">
            <asp:Label runat="server" AssociatedControlID="txtDescription" Text="Description" />
            <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" data-maxlength="1000" CssClass="form-control" />
        </div>

        <h4>Schedule</h4>
        <div class="form-group">
            <asp:CheckBox ID="chkMileage" runat="server" CssClass="mr-1" />
            <asp:Label runat="server" AssociatedControlID="chkMileage" Text="Mileage" CssClass="mr-1" />
            <asp:TextBox ID="txtMileage" runat="server" TextMode="Number" CssClass="form-control" />
        </div>
        <div class="form-group">
            <asp:CheckBox ID="chkDays" runat="server" CssClass="mr-1" />
            <asp:Label runat="server" AssociatedControlID="chkDays" Text="Days" CssClass="mr-1" />
            <asp:TextBox ID="txtDays" runat="server" TextMode="Number" CssClass="form-control" />
        </div>

        <div class="row">
            <div class="col">
                <asp:Button ID="btnCancel" runat="server" CssClass="btn btn-secondary" Text="Cancel" CausesValidation="false" />
            </div>
            <div class="col text-right">
                <asp:Button ID="btnSave" runat="server" CssClass="btn btn-primary" Text="Save" />
            </div>
        </div>

    </div>

</asp:Content>
