/// <summary> /// Retourne un element html form, permettant d'ajouter un produit dans le panier /// </summary> /// <example> /// <code> /// <![CDATA[<%Html.BeginAddToCartRouteForm();%>]]> /// ... /// Ici les données du formulaire /// ... /// <![CDATA[<%Html.EndForm();%>]]> /// </code> /// </example> /// <param name="helper">The helper.</param> public static void BeginAddToCartRouteForm(this HtmlHelper helper) { helper.BeginERPStoreRouteForm(ERPStoreRoutes.CART_ADD, FormMethod.Post); }
public static MvcForm BeginAddCommentToOrderForm(this HtmlHelper helper) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.ADD_COMMENT_TO_ORDER, FormMethod.Post); }
/// <summary> /// Formulaire pour l'ajout de commentaire dans un devis /// </summary> /// <param name="helper">The helper.</param> /// <param name="options">The options.</param> /// <returns></returns> public static MvcForm BeginAddCommentToQuoteForm(this AjaxHelper helper, AjaxOptions options) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.ADD_COMMENT_TO_QUOTE, options); }
public static MvcForm BeginOrderListForm(this HtmlHelper helper) { return helper.BeginERPStoreRouteForm("OrderListForm", FormMethod.Post); }
public static MvcForm BeginAcceptQuoteForm(this HtmlHelper helper) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.ACCEPT_QUOTE, FormMethod.Post); }
/// <summary> /// Genere un élément HTML Form permetant de l'enregistrement d'un client /// </summary> /// <param name="helper">The helper.</param> /// <returns></returns> public static MvcForm BeginRegistrationForm(this HtmlHelper helper) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.REGISTER_ACCOUNT, FormMethod.Post); }
public static MvcForm BeginEditOrderForm(this HtmlHelper helper) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.EDIT_ORDER, FormMethod.Post); }
/// <summary> /// Retourne un element html form, permettant d'ajouter un produit dans le panier /// de type devis /// </summary> /// <param name="helper">The helper.</param> /// <returns>un element html form</returns> /// <example> /// <code> /// <![CDATA[<%=Html.BeginCartForm()%>]]> /// ... /// Ici les données du formulaire /// ... /// <![CDATA[<%Html.EndForm();%>]]> /// </code> /// </example> public static MvcForm BeginQuoteCartForm(this HtmlHelper helper) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.QUOTECART, FormMethod.Post); }
public static MvcForm BeginQuoteCartForm(this HtmlHelper helper, string formId) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.QUOTECART, FormMethod.Post, new { id = formId, }); }
/// <summary> /// Genere un élément HTML Form pour éditer une société /// </summary> /// <param name="helper">The helper.</param> /// <returns></returns> public static MvcForm BeginEditCorporateForm(this HtmlHelper helper) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.EDIT_CORPORATE, FormMethod.Post); }
/// <summary> /// Retourne un element html form, permettant d'ajouter un produit dans le panier de type devis /// </summary> /// <example> /// <code> /// <![CDATA[<%Html.BeginAddToCartRouteForm();%>]]> /// ... /// Ici les données du formulaire /// ... /// <![CDATA[<%Html.EndForm();%>]]> /// </code> /// </example> /// <param name="helper">The helper.</param> public static MvcForm BeginAddToQuoteCartRouteForm(this HtmlHelper helper) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.QUOTECART_ADD_ITEM, FormMethod.Post); }
/// <summary> /// Genere un formulaire de type ajax pour l'edition des adresses /// </summary> /// <param name="helper">The helper.</param> /// <param name="options">The options.</param> /// <returns></returns> public static MvcForm BeginEditAddressForm(this AjaxHelper helper, AjaxOptions options) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.AJAX_EDIT_ADDRESS, options); }
/// <summary> /// Genere un élément HTML Form pour pouvoir modifier une adresse /// </summary> /// <param name="helper">The helper.</param> /// <returns></returns> public static MvcForm BeginEditAddressForm(this HtmlHelper helper) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.ACCOUNT_EDIT_ADDRESS, FormMethod.Post); }
/// <summary> /// Genere un élément HTML Form pour pouvoir modifier un mot de passe /// </summary> /// <param name="helper">The helper.</param> /// <returns></returns> public static MvcForm BeginChangePasswordForm(this HtmlHelper helper) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.EDIT_PASSWORD, FormMethod.Post); }
//[Obsolete("Utliser Url.ClearCartHref() a la place de cet appel", true)] //public static string ClearCartUrl(this HtmlHelper helper) //{ // return helper.RouteLocalizedUrl(ERPStoreRoutes.CART_CLEAR, new { action = "Clear" }); //} /// <summary> /// Retourne un element html form, permettant d'ajouter un produit dans le panier /// </summary> /// <param name="helper">The helper.</param> /// <returns>un element html form</returns> /// <example> /// <code> /// <![CDATA[<%=Html.BeginCartForm()%>]]> /// ... /// Ici les données du formulaire /// ... /// <![CDATA[<%Html.EndForm();%>]]> /// </code> /// </example> public static MvcForm BeginCartForm(this HtmlHelper helper) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.CART_RECALC, FormMethod.Post); }
public static MvcForm BeginCancelQuoteForm(this HtmlHelper helper) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.CANCEL_QUOTE, FormMethod.Post); }
/// <summary> /// Retourne un element html form, permettant d'ajouter un produit dans le panier /// </summary> /// <param name="helper">The helper.</param> /// <param name="formId">The form id.</param> /// <returns>un element html form</returns> /// <example> /// <code> /// <![CDATA[<%=Html.BeginCartForm("formId")%>]]> /// ... /// Ici les données du formulaire /// ... /// <![CDATA[<%Html.EndForm();%>]]> /// </code> /// </example> public static MvcForm BeginCartForm(this HtmlHelper helper, string formId) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.CART_RECALC, FormMethod.Post, new { id = formId }); }
/// <summary> /// Genere un element Html form pour logger un utilisateur /// </summary> /// <example>Exemple d'appel /// <![CDATA[ /// <%Html.BeginLoginForm();%> /// ]]> /// </example> /// <param name="helper">The helper.</param> /// <returns></returns> public static MvcForm BeginLoginForm(this HtmlHelper helper) { return helper.BeginERPStoreRouteForm(ERPStoreRoutes.ACCOUNT_LOGIN, FormMethod.Post); }