Skip to content

Commit

Permalink
converting to partial taghelper
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis committed May 19, 2018
1 parent c5a2c86 commit 7456c26
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

<h4>@ViewData["Title"]</h4>
@Html.Partial("_StatusMessage", Model.StatusMessage)
<partial name="_StatusMessage" for="StatusMessage" />
<div class="row">
<div class="col-md-6">
<form method="post">
Expand Down
2 changes: 1 addition & 1 deletion src/WebRazorPages/Pages/Account/Manage/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

<h4>@ViewData["Title"]</h4>
@Html.Partial("_StatusMessage", Model.StatusMessage)
<partial name="_StatusMessage" for="StatusMessage" />
<div class="row">
<div class="col-md-6">
<form method="post">
Expand Down
4 changes: 2 additions & 2 deletions src/WebRazorPages/Pages/Account/Manage/SetPassword.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

<h4>Set your password</h4>
@Html.Partial("_StatusMessage", Model.StatusMessage)
<partial name="_StatusMessage" for="StatusMessage" />
<p class="text-info">
You do not have a local username/password for this site. Add a local
account so you can log in without an external login.
Expand All @@ -31,5 +31,5 @@
</div>

@section Scripts {
@await Html.PartialAsync("_ValidationScriptsPartial")
@await Html.PartialAsync("_ValidationScriptsPartial")
}
7 changes: 3 additions & 4 deletions src/WebRazorPages/Pages/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,17 @@

@if (Model.CatalogModel.CatalogItems.Any())
{
@Html.Partial("_pagination", Model.CatalogModel.PaginationInfo)
<partial name="_pagination" for="CatalogModel.PaginationInfo" />

<div class="esh-catalog-items row">
@foreach (var catalogItem in Model.CatalogModel.CatalogItems)
{
<div class="esh-catalog-item col-md-4">
@Html.Partial("_product", catalogItem)
<partial name="_product" for="@catalogItem" />
</div>
}
</div>

@Html.Partial("_pagination", Model.CatalogModel.PaginationInfo)
<partial name="_pagination" for="CatalogModel.PaginationInfo" />
}
else
{
Expand Down

0 comments on commit 7456c26

Please sign in to comment.