2011-03-02 21:09:42 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- vim:fdl=1:
|
|
|
|
-->
|
|
|
|
<templates id="template" xml:space="preserve">
|
2011-03-09 15:03:38 +00:00
|
|
|
<t t-name="Interface">
|
2011-03-03 17:46:07 +00:00
|
|
|
<div id="oe_loading" class="loading"></div>
|
|
|
|
<div id="oe_login" class="login"></div>
|
2011-03-08 22:47:58 +00:00
|
|
|
<div id="oe_header" class="header"></div>
|
2011-03-02 21:09:42 +00:00
|
|
|
<div id="oe_menu" style="border-bottom: 1px solid #000;"></div>
|
2011-03-08 22:47:58 +00:00
|
|
|
<div id="oe_main" class="main"></div>
|
|
|
|
<div id="oe_footer" class="footer">
|
2011-03-02 21:09:42 +00:00
|
|
|
Powered by OpenERP.
|
|
|
|
</div>
|
2011-03-08 22:47:58 +00:00
|
|
|
<div id="oe_errors">
|
|
|
|
Debug:
|
2011-03-02 21:09:42 +00:00
|
|
|
</div>
|
2011-03-08 22:47:58 +00:00
|
|
|
<div style="position: absolute; right: 2px; top: 38px;">
|
2011-03-02 21:09:42 +00:00
|
|
|
<button onclick="QWeb.add_template('base.xml'); $('body').css('background-color', '#FFFF9C'); setTimeout(function() { $('body').css('background-color', '#FFF'); }, 500);">Reload QWEB</button>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
<t t-name="Loading">
|
|
|
|
Loading...
|
|
|
|
</t>
|
2011-03-09 15:03:38 +00:00
|
|
|
<t t-name="Login">
|
2011-03-02 21:09:42 +00:00
|
|
|
<form>
|
|
|
|
Login: <input type="text" name="login" value="admin"/><br/>
|
|
|
|
Password: <input type="password" name="password" value="a"/><br/>
|
|
|
|
<input type="submit" name="submit" value="Login"/>
|
|
|
|
</form>
|
|
|
|
</t>
|
2011-03-08 22:47:58 +00:00
|
|
|
<t t-name="Header">
|
|
|
|
<a href="/" class="company_logo_link">
|
|
|
|
<img src="/base/static/openerp/img/logo.png" border="0" class="company_logo"/>
|
|
|
|
</a>
|
2011-03-09 15:59:44 +00:00
|
|
|
<h1 class="header_title on_logged">
|
2011-03-08 22:47:58 +00:00
|
|
|
<span class="company">$company</span> - (<span class="database">$database</span>)<br/>
|
|
|
|
<small class="username">$username</small>
|
|
|
|
</h1>
|
|
|
|
<div class="header_corner">
|
2011-03-09 15:59:44 +00:00
|
|
|
<ul class="block on_logged">
|
2011-03-09 15:03:38 +00:00
|
|
|
<li>
|
|
|
|
<a href="#home" title="Home" class="home"><img src="/base/static/openerp/img/header-home.png" width="16" height="16" border="0"/></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#requests" title="Requests" class="requests"><img src="/base/static/openerp/img/header-requests.png" width="16" height="16" border="0"/><small>1</small></a>
|
|
|
|
</li>
|
|
|
|
<li class="preferences">
|
|
|
|
<a href="#preferences" title="Preferences" class="preferences"><img src="/base/static/openerp/img/header-preferences.png" width="16" height="16" border="0"/></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#about" title="About" class="about"><img src="/base/static/openerp/img/header-about.png" width="16" height="16" border="0"/></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="http://doc.openerp.com/v6.0/book?version=$version" title="Help" target="_blank" class="help"><img src="/base/static/openerp/img/header-help.png" width="16" height="16" border="0"/></a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2011-03-09 15:59:44 +00:00
|
|
|
<div class="block on_logged">
|
2011-03-09 15:03:38 +00:00
|
|
|
<a href="#logout" class="logout">LOGOUT</a>
|
|
|
|
</div>
|
|
|
|
|
2011-03-08 22:47:58 +00:00
|
|
|
</div>
|
|
|
|
</t>
|
2011-03-02 21:09:42 +00:00
|
|
|
<t t-name="Menu.root">
|
|
|
|
<ul class="sf-menu">
|
|
|
|
<t t-foreach="data.children" t-as="menu">
|
|
|
|
<t t-call="Menu.children"/>
|
|
|
|
</t>
|
|
|
|
</ul>
|
|
|
|
<div style="clear: both"></div>
|
|
|
|
</t>
|
|
|
|
<t t-name="Menu.children">
|
|
|
|
<!-- TODO prefix id with the element_id of the controller -->
|
|
|
|
<li><a href="#" t-attf-id="menu_#{menu.id}"><t t-esc="menu.name"/></a>
|
|
|
|
<t t-if="menu.children.length!=0">
|
|
|
|
<ul>
|
|
|
|
<t t-foreach="menu.children" t-as="menu">
|
|
|
|
<t t-call="Menu.children"/>
|
|
|
|
</t>
|
|
|
|
</ul>
|
|
|
|
</t>
|
|
|
|
</li>
|
|
|
|
</t>
|
|
|
|
<t t-name="ListView">
|
|
|
|
<!--
|
|
|
|
<h3><t t-esc="fields_view.arch['@string']"/></h3>
|
|
|
|
-->
|
|
|
|
<div style="text-align:right;">
|
|
|
|
<input type="button" value="First"/>
|
|
|
|
<input type="button" value="<<"/>
|
|
|
|
0 / 0
|
|
|
|
<input type="button" value=">>"/>
|
|
|
|
<input type="button" value="Last"/>
|
|
|
|
</div>
|
|
|
|
<table id="todo_use_unique_id" class="jqGrid"></table>
|
|
|
|
</t>
|
|
|
|
<t t-name="FormView">
|
2011-03-03 17:46:07 +00:00
|
|
|
<h3 class="title"><t t-esc="fields_view.arch.attrs.string"/></h3>
|
2011-03-02 21:09:42 +00:00
|
|
|
<div style="text-align:right;">
|
|
|
|
<input type="button" value="First"/>
|
|
|
|
<input type="button" value="<<"/>
|
|
|
|
0 / 0
|
|
|
|
<input type="button" value=">>"/>
|
|
|
|
<input type="button" value="Last"/>
|
|
|
|
</div>
|
|
|
|
<t t-call="FormView.node">
|
|
|
|
<t t-set="node" t-value="fields_view.arch"/>
|
|
|
|
</t>
|
|
|
|
<div style="text-align:right;">
|
|
|
|
<input type="button" value="Save"/>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
<t t-name="FormView.node">
|
|
|
|
<!--
|
|
|
|
tag: <t t-esc="node.tag"/> <t t-esc="node['@name']"/> <br/>
|
|
|
|
<t t-if="node.tag == 'filter'">
|
|
|
|
<input type="button" t-att-value="node['@string']"/>
|
|
|
|
<t t-esc="node['@name']"/>
|
|
|
|
<br/>
|
|
|
|
</t>
|
|
|
|
<t t-if="node.tag == 'separator'">
|
|
|
|
<hr/>
|
|
|
|
<t t-esc="node['@name']"/>
|
|
|
|
<t t-esc="node['@string']"/>
|
|
|
|
</t>
|
|
|
|
-->
|
|
|
|
<t t-if="node.tag == 'field'">
|
2011-03-03 14:55:52 +00:00
|
|
|
<t t-esc="node.attrs.string"/>
|
|
|
|
<t t-esc="node.attrs.name"/>
|
|
|
|
<input type="text" t-att-name="node.attrs.name"/>
|
2011-03-02 21:09:42 +00:00
|
|
|
<br/>
|
|
|
|
</t>
|
|
|
|
<t t-foreach="node.children || []" t-as="node">
|
|
|
|
<t t-call="FormView.node"/>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
<t t-name="SearchView">
|
2011-03-03 17:46:07 +00:00
|
|
|
<h3 class="title"><t t-esc="fields_view.arch.attrs['string']"/></h3>
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
2011-03-02 21:09:42 +00:00
|
|
|
<tr>
|
|
|
|
<t t-call="SearchView.node">
|
|
|
|
<t t-set="node" t-value="fields_view.arch"/>
|
|
|
|
<t t-set="previous_node_type"></t>
|
|
|
|
</t>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<div style="text-align:right;">
|
|
|
|
<input id="search" type="button" value="Search"/>
|
|
|
|
<input type="button" value="Clear"/>
|
|
|
|
</div>
|
|
|
|
</t>
|
2011-03-07 13:55:15 +00:00
|
|
|
<t t-name="SearchView.node" t-trim="inner">
|
2011-03-02 21:09:42 +00:00
|
|
|
<t t-if="node.tag == 'filter'">
|
|
|
|
<t t-if="previous_node_type != 'filter'">
|
2011-03-03 17:46:07 +00:00
|
|
|
<td nowrap="true" valign="bottom" class="filter_label_group">
|
2011-03-02 21:09:42 +00:00
|
|
|
</t>
|
2011-03-03 17:46:07 +00:00
|
|
|
<button type="button" t-att-title="node.attrs.help" t-att-class="node.attrs.string ? 'filter_label' : 'filter_icon'">
|
2011-03-03 14:55:52 +00:00
|
|
|
<img t-if="node.attrs.icon" t-att-src="'/base/static/openerp/img/icons/' + node.attrs.icon + '.png'" width="16" height="16"/>
|
|
|
|
<br t-if="node.attrs.icon and node.attrs.string"/>
|
|
|
|
<t t-esc="node.attrs.string"/>
|
2011-03-03 14:11:45 +00:00
|
|
|
</button>
|
2011-03-02 21:09:42 +00:00
|
|
|
<t t-if="next_node_type != 'filter'">
|
|
|
|
</td>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
<t t-if="node.tag == 'separator'">
|
|
|
|
<!-- nothing in search view ? -->
|
|
|
|
</t>
|
|
|
|
<t t-if="node.tag == 'newline'">
|
|
|
|
<!-- TODO: check qweb support for cdata -->
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-03-03 17:46:07 +00:00
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
2011-03-02 21:09:42 +00:00
|
|
|
<tr>
|
|
|
|
</t>
|
|
|
|
<t t-if="node.tag == 'field'">
|
2011-03-03 14:55:52 +00:00
|
|
|
<t t-set="orm" t-value="fields_view.fields[node.attrs.name] || {}"/>
|
2011-03-02 21:09:42 +00:00
|
|
|
<td>
|
2011-03-03 14:55:52 +00:00
|
|
|
<label style="display: block" t-att-title="orm.help || node.attrs.help">
|
|
|
|
<t t-esc="orm.string || node.attrs.string || node.attrs.name"/>
|
|
|
|
<span t-if="orm.help || node.attrs.help">(?)</span>
|
2011-03-03 14:11:45 +00:00
|
|
|
</label>
|
|
|
|
<div>
|
2011-03-03 14:55:52 +00:00
|
|
|
<input type="text" t-att-name="node.attrs.name"/>
|
2011-03-03 14:11:45 +00:00
|
|
|
</div>
|
2011-03-02 21:09:42 +00:00
|
|
|
</td>
|
|
|
|
</t>
|
2011-03-07 16:20:47 +00:00
|
|
|
<t t-if="node.tag == 'group'">
|
|
|
|
<!-- if group is called without a <newline/> before, the table should be closed.
|
|
|
|
I think we'll need preprocessing, all those escaped tables are too ugly -->
|
|
|
|
<td>
|
|
|
|
<div t-att-class="'searchview_group ' + (node.attrs.expand == '0' ? 'folded' : 'expanded')">
|
|
|
|
<a class="searchview_group_string" href="#" onclick="$(this).parent().toggleClass('folded expanded')"><t t-esc="node.attrs.string"/></a>
|
|
|
|
<div class="searchview_group_content">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<t t-call="SearchView.recurse"/>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
</t>
|
|
|
|
<t t-if="node.children and node.tag != 'newline' and node.tag != 'group'">
|
|
|
|
<t t-call="SearchView.recurse"/>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
<t t-name="SearchView.recurse" t-trim="inner">
|
|
|
|
<t t-foreach="node.children" t-as="node">
|
|
|
|
<t t-call="SearchView.node">
|
|
|
|
<t t-set="previous_node_type" t-value="node_all[node_index - 1] ? node_all[node_index - 1].tag : ''"/>
|
|
|
|
<t t-set="next_node_type" t-value="node_all[node_index + 1] ? node_all[node_index + 1].tag : ''"/>
|
2011-03-02 21:09:42 +00:00
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
<t t-name="Action">
|
|
|
|
<!-- TODO prefix id with the element_id of the controller t-attf-id="#{prefix}_localid" -->
|
|
|
|
<div style="text-align:right;">
|
|
|
|
<input id="mode_list" type="button" value="ListView"/>
|
|
|
|
<input id="mode_form" type="button" value="FormView"/>
|
|
|
|
</div>
|
|
|
|
<div id="oe_action_dataset" style="display:none;"></div>
|
|
|
|
<div id="oe_action_search" ></div>
|
|
|
|
<div id="oe_action_list" ></div>
|
|
|
|
<div id="oe_action_form" ></div>
|
|
|
|
</t>
|
|
|
|
</templates>
|