@model GreenTree.Strohrmann.ERP.Web.Models.Business.SupplierModel

@{
    ViewData["Title"] = "Lieferant bearbeiten";
}

<h1>Lieferant bearbeiten</h1>

<h4>@Model.Name</h4>

<hr />

<form asp-action="Edit">
    <div asp-validation-summary="ModelOnly" class="text-danger"></div>
    <input asp-for="Id" type="hidden" class="form-control" />
    <div class="card-deck">
        <div class="card card-maxw bg-light">
            <div class="card-header pb-1">
                <h6>Allgemeine</h6>
            </div>
            <div class="card-body">
                <div class="form-group">
                    <label asp-for="Name" class="control-label"></label>
                    <input asp-for="Name" class="form-control" />
                    <span asp-validation-for="Name" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="Description" class="control-label"></label>
                    <input asp-for="Description" class="form-control" />
                    <span asp-validation-for="Description" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="Comment" class="control-label"></label>
                    <textarea asp-for="Comment" rows="5" class="form-control"  />
                    <span asp-validation-for="Comment" class="text-danger"></span>
                </div>
            </div>
        </div>
        <div class="card card-maxw bg-light">
            <div class="card-header pb-1">
                <h6>Adressdaten</h6>
            </div>
            <div class="card-body">
                <div class="form-group">
                    <label asp-for="Address" class="control-label"></label>
                    <input asp-for="Address" class="form-control" />
                    <span asp-validation-for="Address" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="ZipCode" class="control-label"></label>
                    <input asp-for="ZipCode" class="form-control" />
                    <span asp-validation-for="ZipCode" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="Town" class="control-label"></label>
                    <input asp-for="Town" class="form-control" />
                    <span asp-validation-for="Town" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="Country" class="control-label"></label>
                    @Html.CountrySelectionFor(m => m.Country, new { @class = "form-control" })
                    <span asp-validation-for="Country" class="text-danger"></span>
                </div>
            </div>
        </div>
        <div class="card card-maxw bg-light">
            <div class="card-header pb-1">
                <h6>Kontaktdaten</h6>
            </div>
            <div class="card-body">
                <div class="form-group">
                    <label asp-for="PhoneFirst" class="control-label"></label>
                    <input asp-for="PhoneFirst" class="form-control" />
                    <span asp-validation-for="PhoneFirst" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="PhoneSecond" class="control-label"></label>
                    <input asp-for="PhoneSecond" class="form-control" />
                    <span asp-validation-for="PhoneSecond" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="MailFirst" class="control-label"></label>
                    <input asp-for="MailFirst" class="form-control" />
                    <span asp-validation-for="MailFirst" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="MailSecond" class="control-label"></label>
                    <input asp-for="MailSecond" class="form-control" />
                    <span asp-validation-for="MailSecond" class="text-danger"></span>
                </div>
            </div>
        </div>
    </div>

    <hr />

    <div class="form-group d-flex mt-3">
        <input type="submit" value="Speichern" class="btn btn-primary" />
        <div class="align-self-center ml-3">
            <a asp-action="Index">Zurück zur Liste</a>
        </div>
    </div>
</form>