@model PairingModel
@{
    ViewData["Title"] = "Pairing permission";
}

<section>
    <div class="container">
        <div class="row">
            <div class="col-lg-12 text-center">
                <h2 class="section-heading">@ViewData["Title"]</h2>
                <hr class="primary">
                <p>Create and manage store settings.</p>
            </div>
        </div>
        <div class="row">
            <div class="col-md-4"></div>
            <div class="col-md-4">
                <table class="table table-sm table-responsive-md">
                    <tr>
                        <th>Label</th>
                        <td style="text-align:right;">@Model.Label</td>
                    </tr>
                    <tr>
                        <th>SIN</th>
                        <td style="text-align:right;">@Model.SIN</td>
                    </tr>
                </table>
            </div>
            <div class="col-md-4"></div>
        </div>
        <div class="row">
            <div class="col-md-4"></div>
            <div class="col-md-4">
                <form asp-action="Pair" method="post">
                    <div class="form-group">
                        <label asp-for="StoreId"></label>
                        <select asp-for="StoreId" asp-items="@(new SelectList(Model.Stores,"Id","Name"))" class="form-control"></select>
                        <span asp-validation-for="StoreId" class="text-danger"></span>
                    </div>
                    <input type="hidden" name="pairingCode" value="@Model.Id" />
                    <button id="ApprovePairing" type="submit" class="btn btn-secondary" title="Approve this pairing demand">Approve</button>
                </form>
            </div>
            <div class="col-md-4"></div>
        </div>
    </div>
</section>
