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

@{
    ViewData["Title"] = "Neuer Kunde";
}

<h1>Kunden erstellen</h1>

<h4>Neuer Kunde</h4>
<hr />

<form asp-action="Create">
    <div asp-validation-summary="ModelOnly" class="text-danger"></div>
    <div class="card-deck">
        <div class="card bg-light" style="max-width: 368px">
            <div class="card-header pb-1">
                <h6>Kundenname / -firma</h6>
            </div>
            <div class="card-body">
                <div class="form-group">
                    <label asp-for="Firstname" class="control-label"></label>
                    <input asp-for="Firstname" class="form-control" />
                    <span asp-validation-for="Firstname" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="Lastname" class="control-label"></label>
                    <input asp-for="Lastname" class="form-control" />
                    <span asp-validation-for="Lastname" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="CompanyName" class="control-label"></label>
                    <input asp-for="CompanyName" class="form-control" />
                    <span asp-validation-for="CompanyName" class="text-danger"></span>
                </div>
            </div>
        </div>
        <div class="card bg-light" style="max-width: 368px">
            <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="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="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="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 bg-light" style="max-width: 368px">
            <div class="card-header pb-1">
                <h6>Sonstige Daten</h6>
            </div>
            <div class="card-body">
                <div class="form-group">
                    <label asp-for="IsBusiness" class="control-label"></label>
                    <select asp-for="IsBusiness" class="form-control">
                        <option value="true">Ja</option>
                        <option value="false">Nein</option>
                    </select>
                </div>
            </div>
        </div>
    </div>
    <div class="card-deck mt-3">

    </div>

    <hr />

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



