@page
@model RazorPages.Pages.Climbs.CreateModel

        @{
        ViewData["Title"] = "Create";
        }
        
        <h1>Create</h1>
        
    <h4>Climb</h4>
    <hr />
    <div class="row">
    <div class="col-md-4">
    <form method="post">
    <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="Climb.Name" class="control-label"></label>
                <input asp-for="Climb.Name" class="form-control" />
                <span asp-validation-for="Climb.Name" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Climb.Grade" class="control-label"></label>
                <input asp-for="Climb.Grade" class="form-control" />
                <span asp-validation-for="Climb.Grade" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Climb.Location" class="control-label"></label>
                <input asp-for="Climb.Location" class="form-control" />
                <span asp-validation-for="Climb.Location" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Climb.Description" class="control-label"></label>
                <input asp-for="Climb.Description" class="form-control" />
                <span asp-validation-for="Climb.Description" class="text-danger"></span>
            </div>
            <div class="form-group">
                <input type="submit" value="Create" class="btn btn-primary" />
            </div>
        </form>
    </div>
</div>

<div>
    <a asp-page="Index">Back to List</a>
</div>

@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
