<!-- FIXME: logic to obtain a specific product count in the shopping cart shall not be in the template. Move it in models or in controllers -->
<!-- <t t-set="quantity" t-value="([int(line.product_uom_qty) for line in (order.order_line or []) if line.product_id.id == product.id] + [0])[0]"/> -->
<inputclass="span7"type="text"name="name"placeholder="Name and firstname"t-att-value="partner.name or checkout.get('name', '')"t-att-style="error.get('name') and 'border-color:red;' or ''"/>
</label>
<labelclass="span4 css_required">
Telephone
<inputtype="tel"name="phone"placeholder="Telephone"t-att-value="partner.phone or checkout.get('phone', '')"t-att-style="error.get('phone') and 'border-color:red;' or ''"/>
</label>
<labelclass="span4">
Fax
<inputtype="tel"name="fax"placeholder="Fax"t-att-value="partner.fax or checkout.get('fax', '')"t-att-style="error.get('fax') and 'border-color:red;' or ''"/>
</label>
<labelclass="span4">
Company
<inputtype="text"name="company"placeholder="Company"t-att-value="partner.parent_id and partner.parent_id.name or checkout.get('company', '')"t-att-style="error.get('company') and 'border-color:red;' or ''"/>
</label>
<labelclass="span4 css_required">
Email address
<inputtype="email"name="email"placeholder="Email address"t-att-value="partner.email or checkout.get('email', '')"t-att-style="error.get('email') and 'border-color:red;' or ''"/>
</label>
<labelclass="span8 css_required">
Street
<inputclass="span7"type="text"name="street"placeholder="Street address"t-att-value="partner.street or checkout.get('street', '')"t-att-style="error.get('street') and 'border-color:red;' or ''"/>
</label>
<labelclass="span4 css_required">
City
<inputtype="text"name="city"placeholder="City"t-att-value="partner.city or checkout.get('city', '')"t-att-style="error.get('city') and 'border-color:red;' or ''"/>
</label>
<labelclass="span4">
State / Province
<selectname="state_id"t-att-style="error.get('state_id') and 'border-color:red;' or ''">
<optionvalue="">State / Province...</option>
<tt-foreach="states or []"t-as="state">
<optiont-att-value="state.id"t-att-selected="partner and partner.state_id and state.id == partner.state_id.id or checkout.get('state_id', '')"><tt-esc="state.name"/></option>
</t>
</select>
</label>
<labelclass="span4 css_required">
Zip / Postal Code
<inputtype="text"name="zip"placeholder="Zip/Postal Code"t-att-value="partner.zip or checkout.get('zip', '')"t-att-style="error.get('zip') and 'border-color:red;' or ''"/>
</label>
<labelclass="span4 css_required">
Country
<selectname="country_id"t-att-style="error.get('country_id') and 'border-color:red;' or ''">
<optionvalue="">Country...</option>
<tt-foreach="countries or []"t-as="country">
<optiont-att-value="country.id"t-att-selected="partner and partner.country_id and country.id == partner.country_id.id or checkout.get('country_id', '')"><tt-esc="country.name"/></option>
<inputclass="span7"type="text"name="shipping_name"placeholder="Name and firstname"t-att-value="shipping.name or checkout.get('shipping_name', '')"t-att-style="error.get('shipping_name') and 'border-color:red;' or ''"/>
</label>
<labelclass="span4 css_required">
Telephone
<inputtype="tel"name="shipping_phone"placeholder="Telephone"t-att-value="shipping.phone or checkout.get('shipping_phone', '')"t-att-style="error.get('shipping_phone') and 'border-color:red;' or ''"/>
</label>
<labelclass="span4">
Fax
<inputtype="tel"name="shipping_fax"placeholder="Fax"t-att-value="shipping.fax or checkout.get('shipping_fax', '')"t-att-style="error.get('shipping_fax') and 'border-color:red;' or ''"/>
</label>
<labelclass="span8 css_required">
Street
<inputclass="span7"type="text"name="shipping_street"placeholder="Street address"t-att-value="shipping.street or checkout.get('shipping_street', '')"t-att-style="error.get('shipping_street') and 'border-color:red;' or ''"/>
</label>
<labelclass="span4 css_required">
City
<inputtype="text"name="shipping_city"placeholder="City"t-att-value="shipping.city or checkout.get('shipping_city', '')"t-att-style="error.get('shipping_city') and 'border-color:red;' or ''"/>
</label>
<labelclass="span4">
State / Province
<selectname="shipping_state_id"t-att-style="error.get('shipping_state_id') and 'border-color:red;' or ''">
<optionvalue="">State / Province...</option>
<tt-foreach="states or []"t-as="state">
<optiont-att-value="state.id"t-att-selected="shipping and shipping.state_id and state.id == shipping.state_id.id or checkout.get('shipping_state_id', '')"><tt-esc="state.name"/></option>
</t>
</select>
</label>
<labelclass="span4 css_required">
Zip / Postal Code
<inputtype="text"name="shipping_zip"placeholder="Zip/Postal Code"t-att-value="shipping.zip or checkout.get('shipping_zip', '')"t-att-style="error.get('shipping_zip') and 'border-color:red;' or ''"/>
</label>
<labelclass="span4 css_required">
Country
<selectname="shipping_country_id"t-att-style="error.get('shipping_country_id') and 'border-color:red;' or ''">
<optionvalue="">Country...</option>
<tt-foreach="countries or []"t-as="country">
<optiont-att-value="country.id"t-att-selected="shipping and shipping.country_id and country.id == shipping.country_id.id or checkout.get('shipping_country_id', '')"><tt-esc="country.name"/></option>