﻿@ModelType EHNOLS_KITCHEN.customerinformation
@Code
    ViewData("Title") = "processorder"
    Layout = "~/Views/Shared/_dashboardlayout.vbhtml"
End Code
<br />
<br />
<br />
<br />
<h2 style="align-items:center; text-align:center;">Processing Order</h2>

@Using (Html.BeginForm())
    @Html.AntiForgeryToken()
    
    @<div class="form-horizontal">
        <h4>Details</h4>
        <hr />
        @Html.ValidationSummary(True, "", New With { .class = "text-danger" })
        @Html.HiddenFor(Function(model) model.ID)

        <div class="form-group">
            @Html.LabelFor(Function(model) model.ordernumber, htmlAttributes:= New With { .class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(Function(model) model.ordernumber, New With {.htmlAttributes = New With {.class = "form-control", Key .style = "text-transform:uppercase", Key .oninput = "this.value = this.value.toUpperCase()", Key .[readonly] = "readonly"}})
                @Html.ValidationMessageFor(Function(model) model.ordernumber, "", New With { .class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(Function(model) model.Fullname, htmlAttributes:= New With { .class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(Function(model) model.Fullname, New With {.htmlAttributes = New With {.class = "form-control", Key .style = "text-transform:uppercase", Key .oninput = "this.value = this.value.toUpperCase()", Key .[readonly] = "readonly"}})
                @Html.ValidationMessageFor(Function(model) model.Fullname, "", New With { .class = "text-danger" })
            </div>
        </div>

       
        <div class="form-group">
            @Html.LabelFor(Function(model) model.orderstatus, htmlAttributes:= New With { .class = "control-label col-md-2" })
            <div class="col-md-10">
        
                @Html.DropDownListFor(Function(model) model.orderstatus, New SelectListItem() {New SelectListItem With {.Text = "CANCELLED", .Value = "CANCELLED"}, New SelectListItem With {.Text = "CLOSED", .Value = "CLOSED"}}, "Select Order Status", New With {Key .Class = "form-control", Key .required = "required"})

                @Html.ValidationMessageFor(Function(model) model.orderstatus, "", New With {.class = "text-danger"})
            </div>
        </div>
    <br />
     
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="SUBMIT" class="btn btn-success" />|
                @Html.ActionLink("Back to list", "foodorderdetails", "Home", "", htmlAttributes:=New With {.Class = "btn btn-default btn-info"})
            </div>
        </div>
    </div>
End Using

