Skip to content

Commit

Permalink
Carry basket with login (dotnet-architecture#404)
Browse files Browse the repository at this point in the history
* Updating Checkout screen to login correctly when checking out

* Cleanup cshtml
  • Loading branch information
efleming18 authored Jun 18, 2020
1 parent 2909132 commit d8848a9
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/Web/Pages/Basket/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@
<div class="row">

</div>
</article> @*<div class="esh-catalog-item col-md-4">
@item.ProductId
</div>*@ }
</article>
}

<div class="container">
<article class="esh-basket-titles esh-basket-titles--clean row">
Expand All @@ -60,9 +59,6 @@

<article class="esh-basket-items row">
<section class="esh-basket-item col-xs-7"></section>
<section class="esh-basket-item col-xs-2">
@*<button class="btn esh-basket-checkout" name="name" value="" type="submit">[ Update ]</button>*@
</section>
</article>
</div>
<div class="row">
Expand All @@ -75,15 +71,16 @@
asp-page-handler="Update">
[ Update ]
</button>
@{ var data = new Dictionary<string, string>
{
{ Constants.BASKET_ID, Model.BasketModel.Id.ToString() },
}; }

@{
var data = new Dictionary<string, string>
{
{ Constants.BASKET_ID, Model.BasketModel.Id.ToString() },
};
}
<input type="submit" asp-page="Checkout"
class="btn esh-basket-checkout"
asp-all-route-data=data
value="[ Checkout ]" name="action" />

</section>
</div>
</div>
Expand Down

0 comments on commit d8848a9

Please sign in to comment.