* AccountController.cs: Fixes the Profile edition view, regarding

the avatar

* Product.aspx: a CommandForm property for a Product will never be
  served null to a view,
le page code is simpler.
This commit is contained in:
Paul Schneider 2015-01-26 12:56:33 +01:00
commit 85346d0e00
2 changed files with 31 additions and 45 deletions

View file

@ -19,9 +19,10 @@ Prix unitaire : <%= Html.Encode(Model.UnitaryPrice.Quantity.ToString())%>
<% } else { %> Gratuit! <% } %>
</div>
<div class="booking">
<% if (Model.CommandForm!=null) { %>
Défaut de formulaire de commande!!!
<% } else { Response.Write( Html.CommandForm(Model,"Ajouter au panier")); } %>
<!---
- TODO: better
- ASSERT (Model.CommandForm!=null) --->
<%= Html.CommandForm(Model,"Ajouter au panier") %>
<% if (Model.CommandValidityDates!=null) { %>
Offre valable du <%= Model.CommandValidityDates.StartDate.ToString("dd/MM/yyyy") %> au