@model LeafWeb.Web.ViewModels.LeafInput.ConfirmViewModel

<p class="alert center-content">Please <strong>confirm</strong> - entry not submitted until <strong>confirm</strong> clicked</p>

<div class="row">
    <div class="col-md-6 well">
        @* ReSharper disable once Mvc.ActionNotResolved *@
        @using (Html.BeginForm("Action", "LeafInput", FormMethod.Post))
        {
            <dl class="dl-horizontal name">
                <dt>
                    @Html.DisplayNameFor(m => m.Name)
                </dt>
                <dd>
                    @Html.DisplayTextFor(m => m.Name)
                </dd>
            </dl>
            @Html.HiddenFor(m => m.Name)

            <dl class="dl-horizontal email">
                <dt>
                    @Html.DisplayNameFor(m => m.Email)
                </dt>
                <dd>
                    @Html.DisplayTextFor(m => m.Email)
                </dd>
            </dl>
            @Html.HiddenFor(m => m.Email)
            <input type="hidden" name="EmailConfirm" value="@Model.Email"/>

            <dl class="dl-horizontal identifier">
                <dt>
                    @Html.DisplayNameFor(m => m.Identifier)
                </dt>
                <dd>
                    @Html.DisplayTextFor(m => m.Identifier)
                </dd>
            </dl>
            @Html.HiddenFor(m => m.Identifier)

            <dl class="dl-horizontal siteId">
                <dt>
                    @Html.DisplayNameFor(m => m.SiteId)
                </dt>
                <dd>
                    @Html.DisplayTextFor(m => m.SiteId)
                </dd>
            </dl>
            @Html.HiddenFor(m => m.SiteId)

            <dl class="dl-horizontal siteId">
                <dt class="small">
                    @Html.DisplayNameFor(m => m.PhotosynthesisType)
                </dt>
                <dd>
                    @Html.DisplayTextFor(m => m.PhotosynthesisType.SelectedItem.Text)
                </dd>
            </dl>
            <input type="hidden" name="PhotosynthesisType.Selected" value="@Model.PhotosynthesisType.Selected" />

            <dl class="dl-horizontal files">
                <dt>
                    Files
                </dt>
                <dd>
                    @foreach (var file in Model.Files)
                    {
                        @file<br/>
                    }
                </dd>
            </dl>

            <div class="form-actions">
                <input type="submit" name="Confirm" value="Confirm" class="btn btn-primary pull-right"/>
                <input type="submit" name="Index" value="Back" class="btn"/>
            </div>
        }
    </div>
</div>
