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

@{
    ViewData["Title"] = "Lieferantendetails";
}

<h1>Lieferantendetails</h1>

<h4>@Model.Name</h4>

<hr />

<div class="card-deck">
    <div class="card">
        <div class="card-header pb-1">
            <h6>Allgemein</h6>
        </div>
        <div class="card-body">
            <dl class="row">
                <dt class = "col-sm-6">
                    @Html.DisplayNameFor(model => model.Id)
                </dt>
                <dd class = "col-sm-6">
                    @Html.DisplayFor(model => model.Id)
                </dd>
                <dt class = "col-sm-6">
                    @Html.DisplayNameFor(model => model.Name)
                </dt>
                <dd class = "col-sm-6">
                    @Html.DisplayFor(model => model.Name)
                </dd>
                <dt class = "col-sm-6">
                    @Html.DisplayNameFor(model => model.Description)
                </dt>
                <dd class = "col-sm-6">
                    @Html.DisplayFor(model => model.Description)
                </dd>
                <dt class = "col-sm-6">
                    @Html.DisplayNameFor(model => model.Comment)
                </dt>
                <dd class = "col-sm-6">
                    @Html.DisplayFor(model => model.Comment)
                </dd>
            </dl>
        </div>
    </div>
    <div class="card">
        <div class="card-header pb-1">
            <h6>Adressdaten</h6>
        </div>
        <div class="card-body">
            <dl class="row">
                <dt class = "col-sm-6">
                    @Html.DisplayNameFor(model => model.Address)
                </dt>
                <dd class = "col-sm-6">
                    @Html.DisplayFor(model => model.Address)
                </dd>
                <dt class = "col-sm-6">
                    @Html.DisplayNameFor(model => model.ZipCode)
                </dt>
                <dd class = "col-sm-6">
                    @Html.DisplayFor(model => model.ZipCode)
                </dd>
                <dt class = "col-sm-6">
                    @Html.DisplayNameFor(model => model.Town)
                </dt>
                <dd class = "col-sm-6">
                    @Html.DisplayFor(model => model.Town)
                </dd>
                <dt class = "col-sm-6">
                    @Html.DisplayNameFor(model => model.Country)
                </dt>
                <dd class = "col-sm-6">
                    @Html.DisplayFor(model => model.Country)
                </dd>
            </dl>
        </div>
    </div>
    <div class="card">
        <div class="card-header pb-1">
            <h6>Kontaktdaten</h6>
        </div>
        <div class="card-body">
            <dl class="row">
                <dt class = "col-sm-6">
                    @Html.DisplayNameFor(model => model.PhoneFirst)
                </dt>
                <dd class = "col-sm-6">
                    @Html.DisplayFor(model => model.PhoneFirst)
                </dd>
                <dt class = "col-sm-6">
                    @Html.DisplayNameFor(model => model.PhoneSecond)
                </dt>
                <dd class = "col-sm-6">
                    @Html.DisplayFor(model => model.PhoneSecond)
                </dd>
                <dt class = "col-sm-6">
                    @Html.DisplayNameFor(model => model.MailFirst)
                </dt>
                <dd class = "col-sm-6">
                    @Html.DisplayFor(model => model.MailFirst)
                </dd>
                <dt class = "col-sm-6">
                    @Html.DisplayNameFor(model => model.MailSecond)
                </dt>
                <dd class = "col-sm-6">
                    @Html.DisplayFor(model => model.MailSecond)
                </dd>
            </dl>
        </div>
    </div>
</div>

<hr />

<div class="d-flex">
    @Html.ActionLink("Bearbeiten", "Edit", new { id = Model.Id })
    <div class="align-self-center ml-3">
        <a asp-action="Index">Zurück zur Liste</a>
    </div>
    <div class="align-self-center ml-auto">
        <a href="#" data-toggle="modal" data-target="#trackingModal">Änderungsinfo</a>
    </div>
</div>

<div id="trackingModal" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content modal-content-header-custom">
            <div class="modal-header modal-header-info text-white">
                <h5 class="modal-title">Änderungsinfo - @Model.Name</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <dl class="row">
                    <dt class = "col-sm-4">
                        @Html.DisplayNameFor(model => model.CreatedBy)
                    </dt>
                    <dd class = "col-sm-6">
                        @Html.DisplayFor(model => model.CreatedBy)
                    </dd>
                    <dt class = "col-sm-4">
                        @Html.DisplayNameFor(model => model.CreatedOn)
                    </dt>
                    <dd class = "col-sm-6">
                        @Html.DisplayFor(model => model.CreatedOn)
                    </dd>
                </dl>
                <dl class="row">
                    <dt class = "col-sm-4">
                        @Html.DisplayNameFor(model => model.ChangedBy)
                    </dt>
                    <dd class = "col-sm-6">
                        @Html.DisplayFor(model => model.ChangedBy)
                    </dd>
                    <dt class = "col-sm-4">
                        @Html.DisplayNameFor(model => model.ChangedOn)
                    </dt>
                    <dd class = "col-sm-6">
                        @Html.DisplayFor(model => model.ChangedOn)
                    </dd>
                </dl>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Schließen</button>
            </div>
        </div>
    </div>
</div>