Prvi commit
This commit is contained in:
54
EveryThing/Pages/Projects/Create.cshtml
Normal file
54
EveryThing/Pages/Projects/Create.cshtml
Normal file
@@ -0,0 +1,54 @@
|
||||
@page
|
||||
@model EveryThing.Pages.Projects.CreateModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Nov projekt";
|
||||
Layout = "~/Pages/Layouts/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<form method="post">
|
||||
|
||||
<h4 class="d-flex justify-content-between align-items-center w-100 font-weight-bold py-1 mb-4">
|
||||
<span>
|
||||
<span class="text-muted font-weight-light">Projekt /</span> Nov
|
||||
</span>
|
||||
</h4>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="card">
|
||||
<h6 class="card-header">
|
||||
Podatki projekta
|
||||
</h6>
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label asp-for="Project.Title" class="form-label"></label>
|
||||
<input autocomplete="off" asp-for="Project.Title" class="form-control" />
|
||||
<span asp-validation-for="Project.Title" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Project.IdPartnerFk" class="control-label"></label>
|
||||
<select asp-for="Project.IdPartnerFk" class="form-control" asp-items="ViewBag.IdPartnerFk"></select>
|
||||
<span asp-validation-for="Project.IdPartnerFk" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Project.Description" class="form-label"></label>
|
||||
<input autocomplete="off" asp-for="Project.Description" class="form-control" />
|
||||
<span asp-validation-for="Project.Description" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer py-3 text-right">
|
||||
<button type="submit" class="btn btn-primary">Dodaj projekt</button>
|
||||
<a asp-page="Index" class="btn btn-default">Prekliči</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
|
||||
</form>
|
||||
|
||||
@section Scripts {
|
||||
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
||||
}
|
||||
Reference in New Issue
Block a user