Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.4 kB
0
Indexable
Never
@page
@model IndexModel
@{
    ViewData["Title"] = "Home page";
}

<span asp-validation-for="FizzBuzz.Number" class="text-danger"></span>
<h1>Cześć</h1>
<hr />
<div class="row">
    <div class="col-6">
        <div class="card">

            <div class="card-header">

                <div class="text-center">
                    <h3>Podaj dane</h3>
                </div>

            </div>

            <div class="card-body">
                <form asp-controller="Index" asp-action="Answer" method="post">

                    <div class="mb-3">
                        <input asp-for=FizzBuzz.Number type="number" class="form-control" placeholder="Rok">
                    </div>

                    <div class="mb-3">
                        <input asp-for=FizzBuzz.Name type="text" class="form-control" placeholder="Imię">
                    </div>

                    <div class="mb-3">
                        <button type="submit" class="btn btn-primary">Zatwierdź</button>
                    </div>


                    <div class="alert alert-success" role="alert">
                        <h8 class=" alert-heading">xd</h8>
                    </div>
                </form>
            </div>

            <div class="card-footer">
            </div>

        </div>
    </div>
</div>