* 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:
parent
bf8dbeee04
commit
85346d0e00
2 changed files with 31 additions and 45 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue