@Master['master.html']
@Model['CreateOrEditOrder']
@Section['Content']
    <form class="mt-3" method="post" action="/Orders/Create4">
        <div class="row mt-2">
            <div class="control-group mb-3">
                <div class="controls">
                    <button type="submit" class="btn btn-primary">Weiter</button>
                </div>
            </div>
        </div>

        @If.OrderValidationInfo.Invalid
        <div class="alert alert-danger" role="alert">Ihre Eingaben sind ungültig, bitte korrigieren!</div>
        @EndIf

        <div class="row mt-2">
            <h3>
                Auftrag @If.IsCreate erstellen @EndIf @IfNot.IsCreate bearbeiten @EndIf
                <small class="text-muted">Schritt 4</small>
            </h3>
        </div>
        <div class="row mt-2">
            <h4>
                <small class="text-muted">@Model.Name</small>
            </h4>
        </div>

        <input type="hidden" id="Id" name="Id" value="@Model.Id">
        <input type="hidden" id="EditMode" name="EditMode" value="@Model.EditMode">
        <div class="row">
            <div class="col">
                <div class="form-group">
                    <small id="ImapEmailAddressHelp" class="form-text text-muted">Scheduler-Typ</small>
                    <select name="SchedulerType" class="form-control" id="SchedulerType" Name="SchedulerType" placeholder="Scheduler-Type bitte auswählen.">
                        @Each.SchedulerTypeOptions
                        <option value="@Current.Value" @If.IsSelected selected @EndIf>@Current.Name</option>
                        @EndEach
                    </select>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col">
                <div class="form-group">
                    <small id="SchedulerStartDateTimeHelp" class="form-text text-muted">Erstes Startdatum</small>
                    <input type="datetime-local" class="form-control @If.OrderValidationInfo.SchedulerStartDateTimeIsInvalid is-invalid @EndIf" id="SchedulerStartDateTime" name="SchedulerStartDateTime" value="@Model.SchedulerStartDateTimeString" min="2019-04-20T00:00" max="2099-12-31T00:00" aria-describedby="SchedulerStartDateTimeHelp" placeholder="Bitte eingeben.">
                </div>
            </div>
        </div>

        <div class="row mt-2">
            <div class="control-group mb-3">
                <div class="controls">
                    <button type="submit" class="btn btn-primary">Weiter</button>
                </div>
            </div>
        </div>
    </form>
@EndSection
