[FIX] website_hr: add javascript tag, website_sale: t-if for display number of product

bzr revid: chm@openerp.com-20130813142743-gwmmm2ik495ospbq
This commit is contained in:
Christophe Matthieu 2013-08-13 16:27:43 +02:00
parent 99810cb885
commit ba0230fa53
4 changed files with 34 additions and 32 deletions

View File

@ -18,7 +18,7 @@
<template id="index" name="Events"> <template id="index" name="Events">
<t t-call="website.layout"> <t t-call="website.layout">
<t t-set="head"> <t t-set="head">
<script type="text/javascript" src="/website_event/static/src/js/website_event.js"></script> <script type="text/javascript" src="/website_hr/static/src/js/website_hr.js"></script>
<t t-raw="head or ''"/> <t t-raw="head or ''"/>
</t> </t>
<t t-set="title">Events</t> <t t-set="title">Events</t>

View File

@ -20,12 +20,13 @@
<!-- Page --> <!-- Page -->
<record id="aboutus" model="ir.ui.view">
<field name="name">aboutus</field> <template id="aboutus" inherit_id="website.aboutus">
<field name="type">qweb</field>
<field name="inherit_id" ref="website.aboutus"/>
<field name="arch" type="xml">
<xpath expr="//div[@class='span8']" position="inside"> <xpath expr="//div[@class='span8']" position="inside">
<t t-set="head">
<script type="text/javascript" src="/website_hr/static/src/js/website_hr.js"></script>
<t t-raw="head or ''"/>
</t>
<h3>Our team</h3> <h3>Our team</h3>
<div class="thumbnails"> <div class="thumbnails">
<div t-foreach="employee_ids" t-as="employee_id" class="span4 mt16"> <div t-foreach="employee_ids" t-as="employee_id" class="span4 mt16">
@ -52,8 +53,7 @@
</div> </div>
</div> </div>
</xpath> </xpath>
</field> </template>
</record>
</data> </data>
</openerp> </openerp>

View File

@ -22,7 +22,9 @@
<a href="/shop/mycart/"> <a href="/shop/mycart/">
<i class="icon-shopping-cart"></i> <i class="icon-shopping-cart"></i>
My cart My cart
<span class="badge badge-success" t-if="order.get_total_quantity()" t-esc="order.get_total_quantity()"/> <t t-if="order.get_total_quantity()">
<span class="badge badge-success" t-esc="order.get_total_quantity()"/>
</t>
</a> </a>
</li> </li>
</xpath> </xpath>