[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">
<t t-call="website.layout">
<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 t-set="title">Events</t>

View File

@ -20,12 +20,13 @@
<!-- Page -->
<record id="aboutus" model="ir.ui.view">
<field name="name">aboutus</field>
<field name="type">qweb</field>
<field name="inherit_id" ref="website.aboutus"/>
<field name="arch" type="xml">
<template id="aboutus" inherit_id="website.aboutus">
<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>
<div class="thumbnails">
<div t-foreach="employee_ids" t-as="employee_id" class="span4 mt16">
@ -52,8 +53,7 @@
</div>
</div>
</xpath>
</field>
</record>
</template>
</data>
</openerp>

View File

@ -22,7 +22,9 @@
<a href="/shop/mycart/">
<i class="icon-shopping-cart"></i>
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>
</li>
</xpath>