[IMP] website: make xml view more complexe
bzr revid: mat@openerp.com-20130627171056-ki0oazgn8jmqz13q
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<header>This is the header <t t-esc="1+1"/></header>
|
||||
<header><span>This is the header</span> <t t-esc="1+1"/></header>
|
||||
<div class="main">This is the main content</div>
|
||||
<nav>
|
||||
<ul class="menu_list">
|
||||
@@ -24,11 +25,15 @@
|
||||
<record id="template2" model="ir.ui.view">
|
||||
<field name="name">template2</field>
|
||||
<field name="inherit_id" ref="template1"/>
|
||||
<field name="model">res.users</field>
|
||||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<xpath expr="(//ul/li)[last()]" position="after">
|
||||
<li>Event</li>
|
||||
</xpath>
|
||||
<xpath expr="//div[@class='main']" position="inside">
|
||||
<field name="name" />
|
||||
</xpath>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user