< Summary

Information
Class: AspNetCoreGeneratedDocument.Areas_Studio2_Views_PriceHistory_Edit
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/Views/PriceHistory/Edit.cshtml
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 78
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 50
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
ExecuteAsync()0%620%
<ExecuteAsync()0%2352480%
<ExecuteAsync()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/Views/PriceHistory/Edit.cshtml

#LineLine coverage
 1@model OzonRepositories.Data.Bitrix.PriceHistory
 2@{
 03    ViewData["Title"] = "Редактирование записи";
 4}
 5
 06@await Html.PartialAsync("_BsxGridShell")
 7
 8<div class="container mt-4 bsx-surface">
 09    <h2>Редактирование записи #@Model.Id</h2>
 10
 11    <form asp-action="Edit" method="post">
 012        @Html.AntiForgeryToken()
 13        <input type="hidden" asp-for="Id" />
 14
 15        <div class="card">
 16            <div class="card-body">
 17                <div class="row">
 18                    <div class="col-md-6">
 19                        <div class="form-group">
 20                            <label asp-for="BitrixId" class="form-label"></label>
 21                            <input asp-for="BitrixId" class="form-control" />
 22                            <span asp-validation-for="BitrixId" class="text-danger"></span>
 23                        </div>
 24
 25                        <div class="form-group">
 26                            <label asp-for="Article" class="form-label"></label>
 27                            <input asp-for="Article" class="form-control" />
 28                            <span asp-validation-for="Article" class="text-danger"></span>
 29                        </div>
 30
 31                        <div class="form-group">
 32                            <label asp-for="PriceValue" class="form-label"></label>
 33                            <input asp-for="PriceValue" class="form-control" type="number" step="0.01" />
 34                            <span asp-validation-for="PriceValue" class="text-danger"></span>
 35                        </div>
 36                    </div>
 37
 38                    <div class="col-md-6">
 39                        <div class="form-group">
 40                            <label asp-for="Currency" class="form-label"></label>
 41                            <input asp-for="Currency" class="form-control" />
 42                            <span asp-validation-for="Currency" class="text-danger"></span>
 43                        </div>
 44
 45                        <div class="form-group">
 46                            <label asp-for="ValueSource" class="form-label"></label>
 47                            <input asp-for="ValueSource" class="form-control" />
 48                            <span asp-validation-for="ValueSource" class="text-danger"></span>
 49                        </div>
 50
 51                        <div class="form-group">
 52                            <label asp-for="Author" class="form-label"></label>
 53                            <input asp-for="Author" class="form-control" />
 54                            <span asp-validation-for="Author" class="text-danger"></span>
 55                        </div>
 56
 57                        <div class="form-group">
 58                            <label asp-for="CreateDateTime" class="form-label"></label>
 59                            <input asp-for="CreateDateTime" class="form-control" type="datetime-local" />
 60                            <span asp-validation-for="CreateDateTime" class="text-danger"></span>
 61                        </div>
 62                    </div>
 63                </div>
 64            </div>
 65        </div>
 66
 67        <div class="mt-3">
 68            <button type="submit" class="btn btn-success">Сохранить изменения</button>
 069            <a asp-action="Details" asp-route-id="@Model.Id" class="btn btn-secondary">Отмена</a>
 70        </div>
 71    </form>
 72</div>
 73
 74@section Scripts {
 75    @{
 076        await Html.RenderPartialAsync("_ValidationScriptsPartial");
 77    }
 78}