Remove role="form" on a form element.
Role Form should be use on a region of the document that represents a collection of form-associated elements. <div role=”form”></div> GOOD <form role=”form”></form> BAD
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<h1 id="main-label" class="page-header">{intl l="Change Password"}</h1>
|
||||
|
||||
{form name="thelia.front.customer.password.update"}
|
||||
<form id="form-register" class="form-horizontal" action="{url path="/account/password"}" method="post" role="form">
|
||||
<form id="form-register" class="form-horizontal" action="{url path="/account/password"}" method="post">
|
||||
{form_field form=$form field='success_url'}
|
||||
<input type="hidden" name="{$name}" value="{url path="/account"}" />
|
||||
{/form_field}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<h1 id="main-label" class="page-header">{intl l="Update Profile"}</h1>
|
||||
|
||||
{form name="thelia.front.customer.profile.update"}
|
||||
<form id="form-register" class="form-horizontal" action="{url path="/account/update"}" method="post" role="form">
|
||||
<form id="form-register" class="form-horizontal" action="{url path="/account/update"}" method="post">
|
||||
{form_field form=$form field='success_url'}
|
||||
<input type="hidden" name="{$name}" value="{url path="/account"}" />
|
||||
{/form_field}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<h1 id="main-label" class="page-header">{intl l="Address Update"}</h1>
|
||||
{form name="thelia.front.address.update"}
|
||||
{loop name="customer.update" type="address" customer="current" id="{$address_id}"}
|
||||
<form id="form-address" class="form-horizontal" action="{url path="/address/update/{$address_id}"}" method="post" role="form">
|
||||
<form id="form-address" class="form-horizontal" action="{url path="/address/update/{$address_id}"}" method="post">
|
||||
{form_field form=$form field='success_url'}
|
||||
<input type="hidden" name="{$name}" value="{url path="/account"}" />
|
||||
{/form_field}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<h1 id="main-label" class="page-header">{intl l="Create New Address"}</h1>
|
||||
{form name="thelia.front.address.create"}
|
||||
<form id="form-address" class="form-horizontal" action="{url path="/address/create"}" method="post" role="form">
|
||||
<form id="form-address" class="form-horizontal" action="{url path="/address/create"}" method="post">
|
||||
{form_field form=$form field='success_url'}
|
||||
<input type="hidden" name="{$name}" value="{url path="/account"}" />
|
||||
{/form_field}
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
</td>
|
||||
<td class="qty">
|
||||
<div class="form-group group-qty">
|
||||
<form action="{url path="/cart/update"}" method="post" role="form">
|
||||
<form action="{url path="/cart/update"}" method="post">
|
||||
<input type="hidden" name="cart_item" value="{$ITEM_ID}">
|
||||
<select name="quantity" class="form-control" onchange="jQuery(this).parent('form').submit();">
|
||||
{for $will=1 to $STOCK}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
{block name="contact-form"}
|
||||
{form name="thelia.front.contact"}
|
||||
<form id="form-contact" action="{url path="/contact"}" method="post" role="form">
|
||||
<form id="form-contact" action="{url path="/contact"}" method="post">
|
||||
{form_hidden_fields form=$form}
|
||||
<fieldset id="contact-info" class="panel">
|
||||
<div class="panel-heading">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<section id="filters">
|
||||
<h3>Find <span>a product</span></h3>
|
||||
<form id="form-filters" action="" method="get" role="form">
|
||||
<form id="form-filters" action="" method="get">
|
||||
<div class="filter filter-type">
|
||||
<fieldset>
|
||||
<legend class="filter-heading">Type</legend>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
{intl l="Cart"} <span class="badge">{cart attr="count_item"}</span>
|
||||
</a>
|
||||
<div class="dropdown-menu cart-content">
|
||||
<form id="form-cart-mini" action="{url path="/order/delivery"}" method="post" role="form">
|
||||
<form id="form-cart-mini" action="{url path="/order/delivery"}" method="post">
|
||||
<table class="table table-cart-mini">
|
||||
<colgroup>
|
||||
<col width="70">
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
</div>
|
||||
{if $hasBtn == true}
|
||||
{form name="thelia.cart.add" }
|
||||
<form id="form-product-details" action="{url path="/cart/add" }" method="post" role="form" class="form-product">
|
||||
<form id="form-product-details" action="{url path="/cart/add" }" method="post" class="form-product">
|
||||
{form_hidden_fields form=$form}
|
||||
<input type="hidden" name="view" value="product">
|
||||
<input type="hidden" name="product_id" value="{$ID}">
|
||||
|
||||
@@ -34,12 +34,13 @@ GNU General Public License : http://www.gnu.org/licenses/
|
||||
<title>{block name="page-title"}{strip}{if $breadcrumbs}{foreach from=$breadcrumbs|array_reverse item=breadcrumb}{$breadcrumb.title} - {/foreach}{/if}{config key="company_name"}{/strip}{/block}</title>
|
||||
|
||||
{* Meta Tags *}
|
||||
<meta name="description" content="">
|
||||
<meta name="generator" content="{intl l='Thelia V2'}">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
{block name="meta"}{/block}
|
||||
{block name="meta"}
|
||||
<meta name="description" content="">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
{/block}
|
||||
|
||||
{* Stylesheets *}
|
||||
{stylesheets file='assets/less/styles.less' filters='less,cssembed'}
|
||||
@@ -100,7 +101,7 @@ GNU General Public License : http://www.gnu.org/licenses/
|
||||
<a href="{url path="/login"}" class="login">{intl l="Log In!"}</a>
|
||||
<div class="dropdown-menu">
|
||||
{form name="thelia.front.customer.login"}
|
||||
<form id="form-login-mini" action="{url path="/login"}" method="post" role="form" {form_enctype form=$form}>
|
||||
<form id="form-login-mini" action="{url path="/login"}" method="post" {form_enctype form=$form}>
|
||||
{form_hidden_fields form=$form}
|
||||
{form_field form=$form field="email"}
|
||||
<div class="form-group group-email">
|
||||
@@ -328,7 +329,7 @@ GNU General Public License : http://www.gnu.org/licenses/
|
||||
<div class="block-content">
|
||||
<p id="newletter-describe">{intl l="Sign up to receive our latest news."}</p>
|
||||
{form name="thelia.front.newsletter"}
|
||||
<form id="form-newsletter-mini" action="{url path="/newsletter"}" method="post" role="form">
|
||||
<form id="form-newsletter-mini" action="{url path="/newsletter"}" method="post">
|
||||
{form_hidden_fields form=$form}
|
||||
{form_field form=$form field="email"}
|
||||
<div class="form-group">
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<article class="col-main" role="main" aria-labelledby="main-label">
|
||||
<h1 id="main-label" class="page-header">{intl l="Login"}</h1>
|
||||
{form name="thelia.front.customer.login"}
|
||||
<form id="form-login" action="{url path="/login"}" method="post" role="form" {form_enctype form=$form} novalidate>
|
||||
<form id="form-login" action="{url path="/login"}" method="post" {form_enctype form=$form} novalidate>
|
||||
{if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
|
||||
{form_field form=$form field='success_url'}
|
||||
<input type="hidden" name="{$name}" value="{navigate to="return_to"}"> {* the url the user is redirected to on login success *}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<h1 id="main-label" class="page-header">{intl l="Newsletter Subscription"}</h1>
|
||||
|
||||
{form name="thelia.front.newsletter"}
|
||||
<form id="form-newsletter" action="{url path="/newsletter"}" method="post" role="form">
|
||||
<form id="form-newsletter" action="{url path="/newsletter"}" method="post">
|
||||
{form_hidden_fields form=$form}
|
||||
<p>{intl l="You want to subscribe to the newsletter? Please enter your email address below."}</p>
|
||||
{form_field form=$form field="email"}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
{form name="thelia.order.delivery"}
|
||||
{assign var="isPost" value="{$smarty.post|count}"}
|
||||
<form id="form-cart-delivery" action="{url path="/order/delivery"}" method="post" role="form" {form_enctype form=$form}>
|
||||
<form id="form-cart-delivery" action="{url path="/order/delivery"}" method="post" {form_enctype form=$form}>
|
||||
|
||||
{form_hidden_fields form=$form}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
{form name="thelia.order.coupon"}
|
||||
|
||||
<form id="form-coupon" action="{url path="/order/coupon"}" method="post" role="form" {form_enctype form=$form}>
|
||||
<form id="form-coupon" action="{url path="/order/coupon"}" method="post" {form_enctype form=$form}>
|
||||
|
||||
{form_hidden_fields form=$form}
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
{/form}
|
||||
{form name="thelia.order.payment"}
|
||||
|
||||
<form id="form-cart-payment" action="{url path="/order/invoice"}" method="post" role="form" {form_enctype form=$form}>
|
||||
<form id="form-cart-payment" action="{url path="/order/invoice"}" method="post" {form_enctype form=$form}>
|
||||
|
||||
{form_hidden_fields form=$form}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<article class="col-main" role="main" aria-labelledby="main-label">
|
||||
<h1 id="main-label" class="page-header">{intl l="Password Forgotten"}</h1>
|
||||
{form name="thelia.front.customer.lostpassword"}
|
||||
<form id="form-forgotpassword" action="{url path="/password"}" method="post" role="form">
|
||||
<form id="form-forgotpassword" action="{url path="/password"}" method="post">
|
||||
|
||||
<p>{intl l="Please enter your email address below."} {intl l="You will receive a link to reset your password."}</p>
|
||||
{form_field form=$form field="email"}
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
</div>
|
||||
|
||||
{form name="thelia.cart.add" }
|
||||
<form id="form-product-details" action="{url path="/cart/add" }" method="post" role="form" class="form-product">
|
||||
<form id="form-product-details" action="{url path="/cart/add" }" method="post" class="form-product">
|
||||
{form_hidden_fields form=$form}
|
||||
<input type="hidden" name="view" value="product">
|
||||
<input type="hidden" name="product_id" value="{$ID}">
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<h1 id="main-label" class="page-header">{intl l="Create New Account"}</h1>
|
||||
{form name="thelia.front.customer.create"}
|
||||
<form id="form-register" class="form-horizontal" action="{url path="/register"}" method="post" role="form">
|
||||
<form id="form-register" class="form-horizontal" action="{url path="/register"}" method="post">
|
||||
{form_field form=$form field='success_url'}
|
||||
<input type="hidden" name="{$name}" value="{url path="/account"}" /> {* the url the user is redirected to on registration success *}
|
||||
{/form_field}
|
||||
|
||||
Reference in New Issue
Block a user