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>
|
2011-04-05 15:53:48 +00:00
|
|
|
<div id="oe_notification" class="oe_notification">
|
|
|
|
<div id="oe_notification_default">
|
|
|
|
<a class="ui-notify-cross ui-notify-close" href="#">x</a>
|
|
|
|
<h1>#{title}</h1>
|
|
|
|
<p>#{text}</p>
|
|
|
|
</div>
|
2011-04-05 17:35:12 +00:00
|
|
|
<div id="oe_notification_alert" class="ui-state-error">
|
|
|
|
<a class="ui-notify-cross ui-notify-close" href="#">x</a>
|
|
|
|
<span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert"></span>
|
|
|
|
<h1>#{title}</h1>
|
|
|
|
<p>#{text}</p>
|
|
|
|
</div>
|
2011-04-05 15:53:48 +00:00
|
|
|
</div>
|
2011-05-12 07:16:04 +00:00
|
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="main_table">
|
2011-03-22 11:49:19 +00:00
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
|
|
|
<div id="oe_header" class="header"></div>
|
|
|
|
<div id="oe_menu" class="menu"></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top" id="oe_secondary_menu" class="secondary_menu">
|
|
|
|
</td>
|
2011-05-18 15:35:36 +00:00
|
|
|
<td valign="top" >
|
2011-05-18 14:24:25 +00:00
|
|
|
<div id="oe_app" class="oe-application">
|
|
|
|
<div style="width:100%;">&nbsp;</div>
|
|
|
|
</div>
|
2011-03-22 11:49:19 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2011-06-06 09:04:54 +00:00
|
|
|
<tr>
|
2011-06-06 09:49:55 +00:00
|
|
|
<td valign="top" class="login-container" colspan="2">
|
2011-06-06 09:04:54 +00:00
|
|
|
<div id="oe_login" class="login"></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2011-03-22 11:49:19 +00:00
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
2011-04-11 22:54:30 +00:00
|
|
|
<div id="oe_footer" class="oe_footer">
|
|
|
|
<p class="oe_footer_powered">Powered by <a href="http://www.openerp.com">openerp.com</a>.</p>
|
2011-03-22 11:49:19 +00:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-03-02 21:09:42 +00:00
|
|
|
</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>
|
2011-06-06 09:49:55 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend style="">
|
|
|
|
<img src="/base/static/src/img/stock_person.png" alt="" />
|
|
|
|
</legend>
|
|
|
|
<div class="oe_box2">
|
|
|
|
<table align="center" cellspacing="2px" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td><label for="db">Database:</label></td>
|
2011-06-08 09:44:26 +00:00
|
|
|
<td>
|
2011-06-06 11:43:06 +00:00
|
|
|
<t t-if="!db_list">
|
|
|
|
<input type="text" name="db" value="trunk" autofocus="true"/>
|
|
|
|
</t>
|
|
|
|
<t t-if="db_list">
|
|
|
|
<select name="db">
|
|
|
|
<t t-foreach="db_list" t-as="db">
|
2011-06-08 08:54:07 +00:00
|
|
|
<t t-if="selected_db === db">
|
2011-06-08 09:44:26 +00:00
|
|
|
<option t-att-value="db" selected="true">
|
|
|
|
<t t-esc="db"/></option>
|
2011-06-08 08:54:07 +00:00
|
|
|
</t>
|
|
|
|
<t t-if="selected_db !== db">
|
|
|
|
<option t-att-value="db"><t t-esc="db"/></option>
|
|
|
|
</t>
|
2011-06-06 11:43:06 +00:00
|
|
|
</t>
|
|
|
|
</select>
|
|
|
|
</t>
|
2011-06-06 09:49:55 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label for="login">User:</label></td>
|
2011-06-08 09:44:26 +00:00
|
|
|
<td><input type="text" name="login"
|
2011-06-08 08:54:07 +00:00
|
|
|
t-att-value="selected_login || ''" autofocus="true"/></td>
|
2011-06-06 09:49:55 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label for="password">Password:</label></td>
|
2011-06-08 09:44:26 +00:00
|
|
|
<td><input type="password" name="password"
|
|
|
|
t-att-value="selected_password || ''"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr t-if="has_local_storage">
|
2011-06-21 12:19:26 +00:00
|
|
|
<td><label for="remember">Remember password:</label></td>
|
2011-06-08 09:44:26 +00:00
|
|
|
<td class="oe_remember">
|
|
|
|
<t t-if="remember">
|
|
|
|
<input type="checkbox" name="remember" checked="yes"/>
|
|
|
|
</t>
|
|
|
|
<t t-if="!remember">
|
|
|
|
<input type="checkbox" name="remember"/>
|
|
|
|
</t>
|
|
|
|
</td>
|
2011-06-06 09:49:55 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
2011-06-08 09:44:26 +00:00
|
|
|
<td>
|
2011-06-06 10:19:47 +00:00
|
|
|
<button type="submit" name="submit">Login</button>
|
2011-06-06 09:49:55 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
2011-06-06 10:19:47 +00:00
|
|
|
<div class="login_error_message">Bad username or password</div>
|
2011-03-02 21:09:42 +00:00
|
|
|
</form>
|
2011-06-06 10:19:47 +00:00
|
|
|
<div class="oe_login_right_pane">
|
|
|
|
<p>We think that daily job activities can be more intuitive, efficient, automated, .. and even fun.</p>
|
|
|
|
<h3>OpenERP's vision to be:</h3>
|
|
|
|
|
|
|
|
<table cellpadding="0" cellspacing="0" width="100%" style="border:none;">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<img src="/base/static/src/img/product.png"/>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<strong>Full featured</strong><br />
|
|
|
|
Today's enterprise challenges are multiple. We provide one module for each need.
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<img src="/base/static/src/img/accessories-archiver.png"/>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<strong>Open Source</strong><br />
|
|
|
|
To Build a great product, we rely on the knowledge of thousands of contributors.
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<img src="/base/static/src/img/partner.png" />
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<strong>User Friendly</strong><br />
|
|
|
|
In order to be productive, people need clean and easy to use interface.
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
2011-03-02 21:09:42 +00:00
|
|
|
</t>
|
2011-03-08 22:47:58 +00:00
|
|
|
<t t-name="Header">
|
|
|
|
<a href="/" class="company_logo_link">
|
2011-05-12 07:16:04 +00:00
|
|
|
<div class="company_logo" />
|
2011-03-08 22:47:58 +00:00
|
|
|
</a>
|
2011-03-20 20:01:17 +00:00
|
|
|
<h1 class="header_title" t-if="session.session_is_valid()">
|
2011-03-08 22:47:58 +00:00
|
|
|
<span class="company">$company</span> - (<span class="database">$database</span>)<br/>
|
2011-03-20 20:01:17 +00:00
|
|
|
<small class="username">$username session_id: <t t-esc="session.session_id"/></small>
|
2011-03-08 22:47:58 +00:00
|
|
|
</h1>
|
|
|
|
<div class="header_corner">
|
2011-03-20 20:01:17 +00:00
|
|
|
<ul class="block" t-if="session.session_is_valid()">
|
2011-03-09 15:03:38 +00:00
|
|
|
<li>
|
2011-03-30 14:44:36 +00:00
|
|
|
<a href="#home" title="Home" class="home"><img src="/base/static/src/img/header-home.png" width="16" height="16" border="0"/></a>
|
2011-03-09 15:03:38 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
2011-03-30 14:44:36 +00:00
|
|
|
<a href="#requests" title="Requests" class="requests"><img src="/base/static/src/img/header-requests.png" width="16" height="16" border="0"/><small>1</small></a>
|
2011-03-09 15:03:38 +00:00
|
|
|
</li>
|
|
|
|
<li class="preferences">
|
2011-03-30 14:44:36 +00:00
|
|
|
<a href="#preferences" title="Preferences" class="preferences"><img src="/base/static/src/img/header-preferences.png" width="16" height="16" border="0"/></a>
|
2011-03-09 15:03:38 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
2011-03-30 14:44:36 +00:00
|
|
|
<a href="#about" title="About" class="about"><img src="/base/static/src/img/header-about.png" width="16" height="16" border="0"/></a>
|
2011-03-09 15:03:38 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
2011-03-30 14:44:36 +00:00
|
|
|
<a href="http://doc.openerp.com/v6.0/book?version=$version" title="Help" target="_blank" class="help"><img src="/base/static/src/img/header-help.png" width="16" height="16" border="0"/></a>
|
2011-03-09 15:03:38 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
2011-03-20 20:01:17 +00:00
|
|
|
<div class="block">
|
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-22 11:49:19 +00:00
|
|
|
<t t-name="Menu">
|
2011-05-17 15:47:16 +00:00
|
|
|
<table align="center">
|
|
|
|
<tr>
|
|
|
|
<t t-foreach="data.children" t-as="menu">
|
|
|
|
<td>
|
|
|
|
<a href="#" t-att-data-menu="menu.id">
|
2011-05-24 13:20:21 +00:00
|
|
|
<t t-esc="menu.name"/>
|
2011-05-17 15:47:16 +00:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</t>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-03-02 21:09:42 +00:00
|
|
|
</t>
|
2011-03-22 11:49:19 +00:00
|
|
|
<t t-name="Menu.secondary">
|
|
|
|
<div style="display: none" class="menu_accordion" t-att-data-menu-parent="menu.id">
|
|
|
|
<t t-foreach="menu.children" t-as="menu">
|
|
|
|
<t t-set="header">h3</t>
|
|
|
|
<t t-call="Menu.secondary.children"/>
|
|
|
|
</t>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
<t t-name="Menu.secondary.children">
|
|
|
|
<<t t-esc="header"/>>
|
|
|
|
<a href="#" t-attf-id="menu_#{menu.id}">
|
|
|
|
<span><t t-esc="menu.name"/></span>
|
|
|
|
</a>
|
|
|
|
</<t t-esc="header"/>>
|
|
|
|
<div class="menu_content">
|
|
|
|
<t t-foreach="menu.children" t-as="menu">
|
|
|
|
<t t-if="!menu.children.length">
|
|
|
|
<a href="#" class="leaf" t-att-data-menu="menu.id">
|
|
|
|
<span><t t-esc="menu.name"/></span>
|
|
|
|
</a>
|
|
|
|
</t>
|
|
|
|
<t t-if="menu.children.length">
|
|
|
|
<div class="submenu_accordion">
|
|
|
|
<t t-call="Menu.secondary.children">
|
|
|
|
<t t-set="header">h4</t>
|
|
|
|
</t>
|
|
|
|
</div>
|
|
|
|
</t>
|
2011-03-02 21:09:42 +00:00
|
|
|
</t>
|
2011-03-22 11:49:19 +00:00
|
|
|
</div>
|
2011-03-02 21:09:42 +00:00
|
|
|
</t>
|
2011-03-24 16:31:14 +00:00
|
|
|
<t t-name="ViewManager">
|
2011-04-01 12:10:42 +00:00
|
|
|
<table class="view-manager-main-table">
|
|
|
|
<tr>
|
2011-04-21 10:12:12 +00:00
|
|
|
<td class="view-manager-main-content">
|
|
|
|
<!-- TODO prefix id with the element_id of the controller t-attf-id="#{prefix}_localid" -->
|
|
|
|
<div class="oe_vm_switch">
|
2011-05-18 12:52:51 +00:00
|
|
|
<t t-if="views.length != 1" t-foreach="views" t-as="view">
|
2011-06-16 14:25:30 +00:00
|
|
|
<button type="button" t-att-data-view-type="view.view_type">
|
|
|
|
<t t-esc="view.view_type"/>
|
2011-04-21 10:12:12 +00:00
|
|
|
</button>
|
|
|
|
</t>
|
|
|
|
</div>
|
|
|
|
<div t-attf-id="#{prefix}_search" t-opentag="true"/>
|
|
|
|
<t t-foreach="views" t-as="view">
|
2011-06-16 14:25:30 +00:00
|
|
|
<div t-attf-id="#{prefix}_view_#{view.view_type}"/>
|
2011-04-21 10:12:12 +00:00
|
|
|
</t>
|
|
|
|
</td>
|
2011-05-24 16:42:33 +00:00
|
|
|
<td class="view-manager-main-sidebar" height="100%">
|
2011-04-21 10:12:12 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2011-04-01 12:10:42 +00:00
|
|
|
</table>
|
2011-03-24 16:31:14 +00:00
|
|
|
</t>
|
2011-04-12 11:17:12 +00:00
|
|
|
<table t-name="ListView">
|
2011-04-12 13:02:29 +00:00
|
|
|
<t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
|
|
|
|
<t t-set="actions_span" t-value="Math.floor((options.deletable or options.addable) ? columns_count/2 : 0)"/>
|
2011-04-12 11:17:12 +00:00
|
|
|
<thead class="ui-widget-header">
|
2011-05-27 06:18:20 +00:00
|
|
|
<tr>
|
2011-04-12 13:02:29 +00:00
|
|
|
<th t-if="actions_span" t-att-colspan="actions_span"
|
2011-04-12 11:17:12 +00:00
|
|
|
class="oe-actions">
|
2011-05-19 14:23:34 +00:00
|
|
|
<t t-if="flags.action_buttons !== false">
|
2011-05-18 12:52:51 +00:00
|
|
|
<button type="button" id="oe-list-add"
|
|
|
|
t-if="options.addable">
|
|
|
|
<t t-esc="options.addable"/>
|
|
|
|
</button>
|
|
|
|
<button type="button" id="oe-list-delete"
|
2011-05-27 06:18:20 +00:00
|
|
|
t-if="options.selectable and options.deletable">
|
2011-05-18 12:52:51 +00:00
|
|
|
Delete
|
|
|
|
</button>
|
|
|
|
</t>
|
2011-04-07 15:35:27 +00:00
|
|
|
</th>
|
2011-04-12 13:02:29 +00:00
|
|
|
<th t-att-colspan="columns_count - actions_span"
|
2011-04-12 11:17:12 +00:00
|
|
|
class="oe-list-pager">
|
2011-05-19 14:23:34 +00:00
|
|
|
<t t-if="flags.pager !== false">
|
2011-05-18 12:52:51 +00:00
|
|
|
<button type="button" data-pager-action="first">First</button>
|
|
|
|
<button type="button" data-pager-action="previous"
|
|
|
|
><<</button>
|
2011-04-05 10:30:13 +00:00
|
|
|
|
2011-05-18 12:52:51 +00:00
|
|
|
<span class="oe-pager-first">1</span>
|
|
|
|
to <span class="oe-pager-last">1</span>
|
|
|
|
of <span class="oe-pager-total">1</span>
|
2011-04-05 10:30:13 +00:00
|
|
|
|
2011-05-18 12:52:51 +00:00
|
|
|
<button type="button" data-pager-action="next">>></button>
|
|
|
|
<button type="button" data-pager-action="last">Last</button>
|
|
|
|
</t>
|
2011-04-07 15:35:27 +00:00
|
|
|
</th>
|
|
|
|
</tr>
|
2011-04-12 11:17:12 +00:00
|
|
|
<tr t-if="options.header">
|
2011-05-24 11:57:55 +00:00
|
|
|
<t t-foreach="columns" t-as="column">
|
|
|
|
<th t-if="column.meta">
|
|
|
|
<t t-esc="column.string"/>
|
|
|
|
</th>
|
|
|
|
</t>
|
2011-04-07 12:12:22 +00:00
|
|
|
<th t-if="options.selectable"/>
|
|
|
|
<t t-foreach="columns" t-as="column">
|
2011-05-24 11:57:55 +00:00
|
|
|
<th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
|
2011-05-04 14:47:53 +00:00
|
|
|
t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
|
2011-04-07 12:12:22 +00:00
|
|
|
<t t-if="column.tag !== 'button'">
|
|
|
|
<t t-esc="column.string"/>
|
2011-05-04 14:47:53 +00:00
|
|
|
<span t-att-class="(fields_view.sorted.field === column.id) ? ('ui-icon' + (fields_view.sorted.reversed ? ' ui-icon-triangle-1-n' : ' ui-icon-triangle-1-s')) : ''"/>
|
2011-04-07 12:12:22 +00:00
|
|
|
</t>
|
|
|
|
</th>
|
|
|
|
</t>
|
2011-04-07 15:35:27 +00:00
|
|
|
<th t-if="options.deletable"/>
|
2011-04-07 12:12:22 +00:00
|
|
|
</tr>
|
2011-04-07 08:36:24 +00:00
|
|
|
</thead>
|
2011-06-07 11:36:29 +00:00
|
|
|
<tfoot class="ui-widget-header">
|
2011-05-25 13:04:14 +00:00
|
|
|
<tr>
|
2011-06-07 11:36:29 +00:00
|
|
|
<td t-if="options.selectable"/>
|
|
|
|
<td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
|
|
|
|
t-att-data-field="column.field" t-att-title="column.label">
|
2011-05-25 13:04:14 +00:00
|
|
|
</td>
|
2011-06-07 11:36:29 +00:00
|
|
|
<td t-if="options.deletable"/>
|
2011-05-25 13:04:14 +00:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
2011-04-12 11:17:12 +00:00
|
|
|
</table>
|
2011-04-06 13:58:37 +00:00
|
|
|
<t t-name="ListView.rows" t-foreach="rows" t-as="row">
|
2011-04-11 12:54:50 +00:00
|
|
|
<t t-call="ListView.row">
|
|
|
|
<t t-set="style" t-value="null"/>
|
|
|
|
<t-if test="row.color">
|
|
|
|
<t t-set="style" t-value="'color: ' + row.color"/>
|
|
|
|
</t-if>
|
|
|
|
</t>
|
2011-03-02 21:09:42 +00:00
|
|
|
</t>
|
2011-06-06 13:43:36 +00:00
|
|
|
<tr t-name="ListView.row" t-att-style="style" t-att-class="row_parity"
|
|
|
|
t-att-data-index="row_index">
|
2011-05-24 11:57:55 +00:00
|
|
|
<t t-foreach="columns" t-as="column">
|
|
|
|
<td t-if="column.meta">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</t>
|
2011-04-07 12:12:22 +00:00
|
|
|
<th t-if="options.selectable" class="oe-record-selector">
|
|
|
|
<input type="checkbox"/>
|
|
|
|
</th>
|
2011-04-06 13:58:37 +00:00
|
|
|
<t t-foreach="columns" t-as="column">
|
2011-06-07 11:05:29 +00:00
|
|
|
<t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
|
2011-05-24 11:57:55 +00:00
|
|
|
<td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
|
2011-06-07 11:05:29 +00:00
|
|
|
t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')"
|
|
|
|
t-att-data-field="column.id">
|
2011-05-24 11:57:55 +00:00
|
|
|
<t t-set="attrs" t-value="column.attrs_for(row.data)"/>
|
2011-04-12 06:53:43 +00:00
|
|
|
<t t-if="!attrs.invisible">
|
|
|
|
<t t-set="is_button" t-value="column.tag === 'button'"/>
|
|
|
|
<!-- TODO: get correct widget from form -->
|
2011-05-24 11:57:55 +00:00
|
|
|
<t t-if="!is_button and row['data'][column.id].value !== false">
|
2011-04-21 10:24:54 +00:00
|
|
|
<t t-set="value" t-value="row['data'][column.id].value"/>
|
|
|
|
<t t-esc="value instanceof Array ? value[1] : value"/>
|
2011-04-12 06:53:43 +00:00
|
|
|
</t>
|
2011-06-21 08:18:46 +00:00
|
|
|
<button type="button" t-att-title="column.string"
|
2011-04-12 06:53:43 +00:00
|
|
|
t-if="is_button">
|
|
|
|
<img t-att-src="'/base/static/src/img/icons/' + column.icon + '.png'"
|
|
|
|
t-att-alt="column.string"/>
|
|
|
|
</button>
|
2011-04-06 13:58:37 +00:00
|
|
|
</t>
|
|
|
|
</td>
|
|
|
|
</t>
|
2011-04-07 15:13:19 +00:00
|
|
|
<td t-if="options.deletable" class='oe-record-delete'>
|
|
|
|
<button type="button" name="delete">♻</button>
|
|
|
|
</td>
|
2011-04-06 13:58:37 +00:00
|
|
|
</tr>
|
2011-06-01 12:49:54 +00:00
|
|
|
<t t-name="ListView.row.form">
|
|
|
|
<t t-raw="frame.render()"/>
|
|
|
|
</t>
|
2011-03-16 14:00:45 +00:00
|
|
|
<t t-name="FormView">
|
2011-04-04 19:52:16 +00:00
|
|
|
<h2 class="oe_view_title"><t t-esc="view.fields_view.arch.attrs.string"/></h2>
|
2011-04-11 12:32:07 +00:00
|
|
|
<div class="oe_form_header" t-att-id="view.element_id + '_header'">
|
2011-05-19 14:23:34 +00:00
|
|
|
<div class="oe_form_buttons" t-if="view.flags.action_buttons !== false">
|
2011-06-23 15:55:09 +00:00
|
|
|
<!--<button type="button" class="oe_form_button_save">
|
|
|
|
<span class="oe_form_on_update">Save</span>
|
|
|
|
<span class="oe_form_on_create">Create</span>
|
|
|
|
</button>-->
|
|
|
|
<button type="button" class="oe_form_button_save_edit">
|
|
|
|
<span class="oe_form_on_update">Save & Edit</span>
|
|
|
|
<span class="oe_form_on_create">Create & Edit</span>
|
|
|
|
</button>
|
2011-04-07 13:07:25 +00:00
|
|
|
<!--<button type="button" class="oe_form_button_cancel">Cancel</button>-->
|
|
|
|
<button type="button" class="oe_form_button_new">New</button>
|
2011-04-05 14:34:25 +00:00
|
|
|
</div>
|
2011-05-19 14:23:34 +00:00
|
|
|
<div class="oe_form_pager" t-if="view.flags.pager !== false">
|
2011-04-05 14:34:25 +00:00
|
|
|
<button type="button" data-pager-action="first">First</button>
|
|
|
|
<button type="button" data-pager-action="previous"><<</button>
|
2011-04-05 08:57:50 +00:00
|
|
|
|
2011-04-05 14:34:25 +00:00
|
|
|
<span class="oe_pager_index">0</span> / <span class="oe_pager_count">0</span>
|
2011-04-05 08:57:50 +00:00
|
|
|
|
2011-04-05 14:34:25 +00:00
|
|
|
<button type="button" data-pager-action="next">>></button>
|
|
|
|
<button type="button" data-pager-action="last">Last</button>
|
|
|
|
</div>
|
2011-03-16 14:00:45 +00:00
|
|
|
</div>
|
|
|
|
<t t-raw="frame.render()"/>
|
|
|
|
</t>
|
2011-05-26 21:38:11 +00:00
|
|
|
<t t-name="FormView.sidebar.attachments">
|
|
|
|
<h2>Attachments</h2>
|
|
|
|
<div class="oe-sidebar-attachments-toolbar">
|
|
|
|
<div class="oe-binary-file-set" style="float: right">
|
|
|
|
<form class="oe-binary-form" t-attf-target="#{element_id}_iframe"
|
|
|
|
method="post" enctype="multipart/form-data" action="/base/binary/upload_attachment">
|
|
|
|
<input type="hidden" name="session_id" t-att-value="session.session_id"/>
|
|
|
|
<input type="hidden" name="callback" t-attf-value="#{element_id}_iframe"/>
|
|
|
|
<input type="hidden" name="model" t-att-value="dataset.model"/>
|
|
|
|
<input type="hidden" name="id" t-att-value="datarecord.id"/>
|
|
|
|
<button class="button" type="button">
|
|
|
|
<img src="/base/static/src/img/throbber.gif" width="16" height="16" style="display: none"/>
|
|
|
|
<span>Add</span>
|
|
|
|
</button>
|
|
|
|
<input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
|
|
|
|
t-att-onclick="datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
|
|
|
|
</form>
|
|
|
|
<iframe t-attf-id="#{element_id}_iframe" t-attf-name="#{element_id}_iframe" style="display: none"> </iframe>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br style="clear: both"/>
|
|
|
|
<ul class="oe-sidebar-attachments-items">
|
|
|
|
<li t-foreach="attachments" t-as="attachment">
|
|
|
|
<t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="'/base/binary/saveas?session_id='
|
|
|
|
+ session.session_id + '&model=ir.attachment&id=' + attachment.id
|
|
|
|
+ '&field=datas' + '&fieldname=name' + '&t=' + (new Date().getTime())"/>
|
|
|
|
<a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
|
|
|
|
<t t-esc="attachment.name"/>
|
|
|
|
</a>
|
|
|
|
<a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="Delete the attachment #{attachment.name}">
|
|
|
|
<img src="/base/static/src/img/attachments-close.png" width="15" height="15" border="0"/>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="Widget">
|
2011-03-16 14:00:45 +00:00
|
|
|
Unhandled widget
|
|
|
|
<t t-raw="console.log('Unhandled widget', widget)"/>
|
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="WidgetFrame">
|
2011-06-14 08:47:53 +00:00
|
|
|
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame">
|
2011-03-16 14:00:45 +00:00
|
|
|
<tr t-foreach="widget.table" t-as="row">
|
|
|
|
<t t-foreach="row" t-as="td">
|
|
|
|
<td t-att-colspan="td.colspan gt 1 ? td.colspan : undefined"
|
|
|
|
t-att-width="td.width ? td.width : undefined"
|
2011-04-27 12:20:51 +00:00
|
|
|
t-att-nowrap="td.is_field_label or td.is_field_m2o? 'true' : undefined"
|
2011-03-22 17:18:01 +00:00
|
|
|
t-att-valign="td.table ? 'top' : undefined"
|
|
|
|
t-att-id="td.element_id"
|
2011-06-14 08:47:53 +00:00
|
|
|
t-att-class="'oe_form_frame_cell oe_form_' + (td.is_field_label ? 'label' : (td.field ? 'field_' + td.type : td.type))"
|
2011-03-22 17:18:01 +00:00
|
|
|
>
|
|
|
|
<t t-raw="td.render()"/>
|
2011-03-16 14:00:45 +00:00
|
|
|
</td>
|
|
|
|
</t>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="WidgetNotebook">
|
2011-03-22 17:18:01 +00:00
|
|
|
<ul>
|
|
|
|
<li t-foreach="widget.pages" t-as="page">
|
|
|
|
<a t-att-href="'#' + widget.element_id + '-' + page_index">
|
|
|
|
<t t-esc="page.string"/>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<t t-foreach="widget.pages" t-as="page">
|
|
|
|
<div t-att-id="widget.element_id + '-' + page_index">
|
|
|
|
<t t-raw="page.render()"/>
|
|
|
|
</div>
|
|
|
|
</t>
|
2011-03-16 14:00:45 +00:00
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="WidgetSeparator">
|
2011-03-16 14:00:45 +00:00
|
|
|
<div t-att-class="'separator ' + (widget.node.attrs.orientation || 'horizontal')">
|
|
|
|
<t t-esc="widget.string"/>
|
|
|
|
</div>
|
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="WidgetLabel">
|
2011-04-11 22:54:30 +00:00
|
|
|
<label t-att-for="widget.element_id + '_field'"
|
|
|
|
t-att-class="'oe_form_label' + (widget.help ? '_help' : '')"
|
|
|
|
t-att-title="widget.help"
|
2011-03-24 21:03:47 +00:00
|
|
|
t-att-ondblclick="'console.log(\'' + widget.element_id + '\', openerp.screen.' + widget.element_id + ')'">
|
|
|
|
<t t-esc="widget.string"/>
|
|
|
|
<span t-if="widget.help">?</span>
|
2011-04-21 11:59:16 +00:00
|
|
|
<t t-if="widget.string and widget.node.tag != 'label'">:</t>
|
2011-03-16 14:00:45 +00:00
|
|
|
</label>
|
|
|
|
</t>
|
2011-06-28 16:42:38 +00:00
|
|
|
<t t-name="WidgetParagraph">
|
|
|
|
<p class="oe_form_paragraph"><t t-esc="widget.string"/></p>
|
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="FieldChar">
|
2011-03-22 17:18:01 +00:00
|
|
|
<input type="text"
|
|
|
|
t-att-name="widget.name"
|
2011-04-06 13:45:31 +00:00
|
|
|
t-att-id="widget.element_id + '_field'"
|
2011-03-22 17:18:01 +00:00
|
|
|
t-att-class="'field_' + widget.type" style="width: 100%"
|
|
|
|
/>
|
2011-03-16 14:00:45 +00:00
|
|
|
</t>
|
2011-05-12 16:25:50 +00:00
|
|
|
<t t-name="FieldEmail">
|
|
|
|
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
|
|
|
<tr>
|
|
|
|
<td width="100%">
|
|
|
|
<t t-call="FieldChar"/>
|
|
|
|
</td>
|
|
|
|
<td width="16">
|
2011-05-18 15:33:56 +00:00
|
|
|
<button type="button" class="button" title="Send an e-mail with your default e-mail client">
|
2011-05-12 16:25:50 +00:00
|
|
|
<img src="/base/static/src/img/icons/terp-mail-message-new.png"/>
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</t>
|
2011-05-19 13:55:22 +00:00
|
|
|
<t t-name="FieldUrl">
|
|
|
|
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
|
|
|
<tr>
|
|
|
|
<td width="100%">
|
|
|
|
<t t-call="FieldChar"/>
|
|
|
|
</td>
|
|
|
|
<td width="16">
|
|
|
|
<button type="button" class="button" title="Open this resource">
|
|
|
|
<img src="/base/static/src/img/icons/gtk-ok.png"/>
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="FieldText">
|
2011-03-22 17:18:01 +00:00
|
|
|
<textarea rows="6" style="width: 100%;"
|
|
|
|
t-att-name="widget.name"
|
2011-04-06 13:45:31 +00:00
|
|
|
t-att-id="widget.element_id + '_field'"
|
2011-03-22 17:18:01 +00:00
|
|
|
t-att-class="'field_' + widget.type"
|
|
|
|
></textarea>
|
2011-03-16 14:00:45 +00:00
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="FieldDate">
|
2011-03-22 17:18:01 +00:00
|
|
|
<input type="text" style="width: 100%"
|
|
|
|
t-att-name="widget.name"
|
2011-04-06 13:45:31 +00:00
|
|
|
t-att-id="widget.element_id + '_field'"
|
2011-03-22 17:18:01 +00:00
|
|
|
t-att-class="'field_' + widget.type"
|
|
|
|
/>
|
2011-03-16 14:00:45 +00:00
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="FieldSelection">
|
2011-04-06 13:45:31 +00:00
|
|
|
<select
|
|
|
|
t-att-name="widget.name"
|
|
|
|
t-att-id="widget.element_id + '_field'"
|
|
|
|
t-att-class="'field_' + widget.type"
|
|
|
|
style="width: 100%">
|
|
|
|
<t t-foreach="widget.field.selection" t-as="options">
|
|
|
|
<option t-att-value="options[0]">
|
|
|
|
<t t-esc="options[1]"/>
|
|
|
|
</option>
|
|
|
|
</t>
|
2011-03-16 14:00:45 +00:00
|
|
|
</select>
|
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="FieldMany2One">
|
2011-06-10 14:58:01 +00:00
|
|
|
<div t-att-id="widget.element_id" class="oe-m2o">
|
2011-06-06 16:50:43 +00:00
|
|
|
<input t-att-id="widget.element_id + '_input'" type="text" style="width: 100%;"/>
|
2011-06-10 14:58:01 +00:00
|
|
|
<span class="oe-m2o-drop-down-button" t-att-id="widget.element_id + '_drop_down'">
|
2011-06-09 17:36:44 +00:00
|
|
|
<img src="/base/static/src/img/down-arrow.png" /></span>
|
2011-06-10 14:58:01 +00:00
|
|
|
<span class="oe-m2o-cm-button" t-att-id="widget.name + '_open'">
|
2011-06-10 15:24:13 +00:00
|
|
|
<img src="/base/static/src/img/icons/gtk-index.png"/></span>
|
2011-06-09 17:08:51 +00:00
|
|
|
<div t-att-id="widget.cm_id" class="contextMenu" style="display:none"><ul>
|
2011-07-04 15:05:54 +00:00
|
|
|
<li t-att-id="widget.cm_id + '_search'">Search...</li>
|
|
|
|
<li t-att-id="widget.cm_id + '_create'">Create New...</li>
|
|
|
|
<li t-att-id="widget.cm_id + '_open'" style="color:grey">Open...</li>
|
2011-06-09 17:08:51 +00:00
|
|
|
</ul></div>
|
2011-05-19 13:06:23 +00:00
|
|
|
</div>
|
2011-03-16 14:00:45 +00:00
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="FieldOne2Many">
|
2011-04-05 10:04:50 +00:00
|
|
|
<div t-att-id="widget.element_id">
|
2011-03-16 14:00:45 +00:00
|
|
|
One2Many widget
|
|
|
|
</div>
|
|
|
|
</t>
|
2011-03-22 17:18:01 +00:00
|
|
|
<t t-name="FieldMany2Many">
|
2011-04-26 08:55:27 +00:00
|
|
|
<div t-att-id="widget.list_id"></div>
|
2011-03-22 17:18:01 +00:00
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="FieldReference">
|
2011-03-16 14:00:45 +00:00
|
|
|
<input type="text" t-att-name="widget.name" t-att-id="widget.element_id" t-att-class="'field_' + widget.type" style="width: 100%" placeholder="Widget Reference"/>
|
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="FieldBoolean">
|
2011-04-06 13:45:31 +00:00
|
|
|
<input type="checkbox"
|
|
|
|
t-att-name="widget.name"
|
|
|
|
t-att-id="widget.element_id + '_field'"
|
|
|
|
t-att-class="'field_' + widget.type"/>
|
2011-03-16 14:00:45 +00:00
|
|
|
</t>
|
2011-04-12 09:26:31 +00:00
|
|
|
<t t-name="FieldProgressBar">
|
2011-05-09 14:10:01 +00:00
|
|
|
<div t-opentag="true" class="oe-progressbar">
|
|
|
|
<span></span>
|
|
|
|
</div>
|
2011-04-12 09:26:31 +00:00
|
|
|
</t>
|
2011-05-19 12:58:45 +00:00
|
|
|
<t t-name="FieldBinaryImage">
|
2011-05-18 15:33:56 +00:00
|
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
|
|
<tr>
|
|
|
|
<td align="center">
|
|
|
|
<img src="/base/static/src/img/placeholder.png" class="oe-binary-image" border="1"
|
|
|
|
t-att-id="widget.element_id + '_field'"
|
|
|
|
t-att-name="widget.name"
|
|
|
|
t-att-class="'field_' + widget.type"
|
|
|
|
t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
|
|
|
|
t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
|
|
|
|
/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="center" valign="bottom" height="25">
|
2011-05-19 11:12:37 +00:00
|
|
|
<div class="oe-binary">
|
2011-05-23 13:38:40 +00:00
|
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="oe-binary-file-set" style="width: 40px; height:22px;">
|
|
|
|
<form class="oe-binary-form" t-att-target="widget.iframe"
|
2011-05-23 14:52:19 +00:00
|
|
|
method="post" enctype="multipart/form-data" action="/base/binary/upload">
|
2011-05-23 13:38:40 +00:00
|
|
|
<input type="hidden" name="session_id" value=""/>
|
|
|
|
<input type="hidden" name="callback" t-att-value="widget.iframe"/>
|
|
|
|
<button class="button" type="button" title="Set Image">
|
|
|
|
<img src="/base/static/src/img/icons/STOCK_DIRECTORY.png"/>
|
|
|
|
</button>
|
|
|
|
<input type="file" class="oe-binary-file" name="ufile"/>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<button class="button oe-binary-file-clear" type="button" title="Clear">
|
|
|
|
<img src="/base/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-05-18 22:36:16 +00:00
|
|
|
</div>
|
|
|
|
<div class="oe-binary-progress" style="display: none">
|
2011-05-19 10:17:26 +00:00
|
|
|
<img src="/base/static/src/img/throbber.gif" width="16" height="16"/>
|
|
|
|
<b>Uploading ...</b>
|
2011-05-18 22:36:16 +00:00
|
|
|
</div>
|
|
|
|
<iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
|
2011-05-18 15:33:56 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-04-12 09:26:31 +00:00
|
|
|
</t>
|
2011-05-19 12:58:45 +00:00
|
|
|
<t t-name="FieldBinaryFile">
|
|
|
|
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
|
|
|
<tr>
|
|
|
|
<td width="100%">
|
|
|
|
<input type="text"
|
|
|
|
t-att-name="widget.name"
|
|
|
|
t-att-id="widget.element_id + '_field'"
|
|
|
|
t-att-class="'field_' + widget.type" style="width: 100%"
|
|
|
|
/>
|
|
|
|
</td>
|
|
|
|
<td class="oe-binary" nowrap="true">
|
2011-05-23 13:38:40 +00:00
|
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="oe-binary-file-set" style="width: 80px; height:22px;">
|
|
|
|
<form class="oe-binary-form" t-att-target="widget.iframe"
|
2011-05-23 14:52:19 +00:00
|
|
|
method="post" enctype="multipart/form-data" action="/base/binary/upload">
|
2011-05-23 13:38:40 +00:00
|
|
|
<input type="hidden" name="session_id" value=""/>
|
|
|
|
<input type="hidden" name="callback" t-att-value="widget.iframe"/>
|
|
|
|
<button class="button" type="button" title="Set Image">
|
|
|
|
<img src="/base/static/src/img/icons/STOCK_DIRECTORY.png"/>
|
|
|
|
<span>Select</span>
|
|
|
|
</button>
|
|
|
|
<input type="file" class="oe-binary-file" name="ufile"/>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<button class="button oe-binary-file-save" type="button" title="Save As">
|
|
|
|
<img src="/base/static/src/img/icons/gtk-save.png"/>
|
|
|
|
<span>Save As</span>
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<button class="button oe-binary-file-clear" type="button" title="Clear">
|
|
|
|
<img src="/base/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
|
|
|
|
<span>Clear</span>
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-05-18 15:33:56 +00:00
|
|
|
</td>
|
2011-05-19 12:58:45 +00:00
|
|
|
<td class="oe-binary-progress" style="display: none" nowrap="true">
|
|
|
|
<img src="/base/static/src/img/throbber.gif" width="16" height="16"/>
|
|
|
|
<b>Uploading ...</b>
|
|
|
|
<iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
|
|
|
|
</td>
|
2011-05-18 15:33:56 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
2011-04-12 09:26:31 +00:00
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
<t t-name="WidgetButton">
|
2011-04-06 13:45:31 +00:00
|
|
|
<button type="button"
|
|
|
|
t-att-id="widget.element_id + '_button'"
|
|
|
|
t-att-title="widget.help"
|
|
|
|
style="width: 100%" class="button">
|
2011-03-30 14:44:36 +00:00
|
|
|
<img t-if="widget.node.attrs.icon" t-att-src="'/base/static/src/img/icons/' + widget.node.attrs.icon + '.png'" width="16" height="16"/>
|
2011-04-06 10:34:19 +00:00
|
|
|
<span t-if="widget.string"><t t-esc="widget.string"/></span>
|
2011-03-16 14:00:45 +00:00
|
|
|
</button>
|
|
|
|
</t>
|
2011-03-02 21:09:42 +00:00
|
|
|
<t t-name="SearchView">
|
2011-04-04 19:52:16 +00:00
|
|
|
<h2 class="oe_view_title"><t t-esc="view.attrs['string']"/></h2>
|
2011-03-24 16:18:42 +00:00
|
|
|
<form>
|
|
|
|
<t t-call="SearchView.render_lines"/>
|
2011-05-18 15:33:56 +00:00
|
|
|
<div class="oe_search-view-buttons" style="text-align: right;">
|
2011-03-24 16:18:42 +00:00
|
|
|
<input type="submit" value="Search"/>
|
|
|
|
<input type="reset" value="Clear"/>
|
2011-05-27 10:25:27 +00:00
|
|
|
<button class="oe_search-view-custom-filter-btn"><span>Advanced Filter</span></button>
|
|
|
|
<select class="oe_search-view-filters-management">
|
|
|
|
<option value="_filters">-- Filters --</option>
|
|
|
|
<option value="_actions">-- Actions --</option>
|
|
|
|
<option value="save_filter">Save Filter</option>
|
|
|
|
<option value="manage_filters">Manage Filters</option>
|
|
|
|
</select>
|
2011-03-24 16:18:42 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
2011-03-02 21:09:42 +00:00
|
|
|
</t>
|
2011-03-24 12:46:53 +00:00
|
|
|
<t t-name="SearchView.render_lines">
|
2011-04-12 16:27:03 +00:00
|
|
|
<table class="oe-searchview-render-line" border="0" cellspacing="0" cellpadding="0"
|
2011-03-24 12:46:53 +00:00
|
|
|
t-foreach="lines" t-as="line">
|
|
|
|
<tr>
|
|
|
|
<td t-foreach="line" t-as="widget">
|
|
|
|
<t t-raw="widget.render(defaults)"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2011-03-02 21:09:42 +00:00
|
|
|
</table>
|
2011-03-07 16:20:47 +00:00
|
|
|
</t>
|
2011-03-24 12:46:53 +00:00
|
|
|
<button t-name="SearchView.filter" type="button"
|
2011-03-24 16:18:42 +00:00
|
|
|
t-att-id="element_id"
|
2011-03-24 12:46:53 +00:00
|
|
|
t-att-title="attrs.help"
|
2011-04-06 13:58:37 +00:00
|
|
|
t-att-class="classes.join(' ')"
|
|
|
|
t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
|
2011-03-30 14:44:36 +00:00
|
|
|
<img t-if="attrs.icon" t-att-src="'/base/static/src/img/icons/' + attrs.icon + '.png'" width="16" height="16"/>
|
2011-03-24 12:46:53 +00:00
|
|
|
<br t-if="attrs.icon and attrs.string"/>
|
|
|
|
<t t-esc="attrs.string"/>
|
|
|
|
</button>
|
2011-03-24 14:23:30 +00:00
|
|
|
<span t-name="SearchView.filters" class="filter_label_group"
|
2011-03-24 12:46:53 +00:00
|
|
|
><t t-foreach="filters" t-as="filter"
|
|
|
|
><t t-raw="filter.render(defaults)"/></t
|
2011-03-24 14:23:30 +00:00
|
|
|
></span>
|
2011-03-24 12:46:53 +00:00
|
|
|
<t t-name="SearchView.field">
|
2011-03-24 16:18:42 +00:00
|
|
|
<label style="display: block" t-att-title="attrs.help"
|
|
|
|
t-att-for="element_id">
|
2011-03-24 12:46:53 +00:00
|
|
|
<t t-esc="attrs.string || attrs.name"/>
|
|
|
|
<span t-if="attrs.help">(?)</span>
|
|
|
|
</label>
|
2011-03-24 14:23:30 +00:00
|
|
|
<div style="white-space: nowrap;">
|
2011-05-12 11:37:24 +00:00
|
|
|
<input type="text" size="15" t-att-name="attrs.name"
|
2011-04-06 13:58:37 +00:00
|
|
|
t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
|
2011-03-25 10:34:25 +00:00
|
|
|
t-att-id="element_id"
|
|
|
|
t-att-value="defaults[attrs.name] || ''"/>
|
2011-03-24 14:23:30 +00:00
|
|
|
<t t-if="filters.length" t-raw="filters.render(defaults)"/>
|
2011-03-02 21:09:42 +00:00
|
|
|
</div>
|
|
|
|
</t>
|
2011-04-01 15:17:35 +00:00
|
|
|
<t t-name="SearchView.fields.date">
|
|
|
|
<label style="display: block" t-att-title="attrs.help"
|
|
|
|
t-att-for="element_id">
|
|
|
|
<t t-esc="attrs.string || attrs.name"/>
|
|
|
|
<span t-if="attrs.help">(?)</span>
|
|
|
|
</label>
|
|
|
|
<div style="white-space: nowrap;" t-att-id="element_id">
|
2011-04-04 09:00:47 +00:00
|
|
|
<input t-att-name="attrs.name" type="text" class="field_date"
|
2011-04-06 13:58:37 +00:00
|
|
|
t-att-value="defaults[attrs.name] || ''"
|
|
|
|
t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"/>
|
2011-04-01 15:17:35 +00:00
|
|
|
to
|
2011-04-04 09:00:47 +00:00
|
|
|
<input t-att-name="attrs.name" type="text" class="field_date"
|
2011-04-01 15:17:35 +00:00
|
|
|
t-att-value="defaults[attrs.name] || ''"/>
|
|
|
|
<t t-if="filters.length" t-raw="filters.render(defaults)"/>
|
|
|
|
</div>
|
|
|
|
</t>
|
2011-03-24 18:47:13 +00:00
|
|
|
<t t-name="SearchView.field.selection">
|
|
|
|
<label style="display: block" t-att-title="attrs.help"
|
|
|
|
t-att-for="element_id">
|
|
|
|
<t t-esc="attrs.string || attrs.name"/>
|
|
|
|
<span t-if="attrs.help">(?)</span>
|
|
|
|
</label>
|
|
|
|
<div style="white-space: nowrap;">
|
2011-04-06 13:58:37 +00:00
|
|
|
<select t-att-name="attrs.name" t-att-id="element_id"
|
|
|
|
t-att-autofocus="attrs.default_focus === '1' || undefined">
|
2011-03-24 18:47:13 +00:00
|
|
|
<option/>
|
|
|
|
<t t-foreach="attrs.selection" t-as="option">
|
2011-03-25 10:34:25 +00:00
|
|
|
<t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
|
|
|
|
<option t-if="selected"
|
|
|
|
t-att-value="option[0]" selected="selected">
|
|
|
|
<t t-esc="option[1]"/>
|
|
|
|
</option>
|
2011-03-25 10:48:47 +00:00
|
|
|
<option t-if="!selected" t-att-value="option[0]">
|
2011-03-24 18:47:13 +00:00
|
|
|
<t t-esc="option[1]"/>
|
|
|
|
</option>
|
|
|
|
</t>
|
|
|
|
</select>
|
|
|
|
<t t-if="filters.length" t-raw="filters.render(defaults)"/>
|
|
|
|
</div>
|
2011-03-07 16:20:47 +00:00
|
|
|
</t>
|
2011-03-28 07:37:22 +00:00
|
|
|
<t t-name="SearchView.util.expand">
|
2011-03-30 15:04:21 +00:00
|
|
|
<div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')"
|
2011-03-24 16:18:42 +00:00
|
|
|
t-att-id="element_id">
|
2011-03-28 07:37:22 +00:00
|
|
|
<a t-if="label" class="searchview_group_string" href="#">
|
|
|
|
<t t-esc="label"/>
|
2011-03-24 18:22:22 +00:00
|
|
|
</a>
|
2011-03-24 12:46:53 +00:00
|
|
|
<div class="searchview_group_content">
|
2011-03-28 07:37:22 +00:00
|
|
|
<t t-raw="content"/>
|
2011-03-24 12:46:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2011-03-02 21:09:42 +00:00
|
|
|
</t>
|
2011-03-28 07:37:22 +00:00
|
|
|
<t t-name="SearchView.group">
|
2011-03-30 15:04:21 +00:00
|
|
|
<t t-call="SearchView.util.expand">
|
|
|
|
<t t-set="expand" t-value="attrs.expand"/>
|
|
|
|
<t t-set="label" t-value="attrs.string"/>
|
|
|
|
<t t-set="content">
|
|
|
|
<t t-call="SearchView.render_lines"/>
|
|
|
|
</t>
|
|
|
|
</t>
|
2011-03-28 07:37:22 +00:00
|
|
|
</t>
|
2011-03-25 15:11:20 +00:00
|
|
|
<t t-name="SearchView.extended_search">
|
2011-03-30 15:04:21 +00:00
|
|
|
<t t-call="SearchView.util.expand">
|
|
|
|
<t t-set="expand" t-value="false"/>
|
2011-05-27 10:25:27 +00:00
|
|
|
<t t-set="label" t-value="'Advanced Filters'"/>
|
2011-03-30 15:04:21 +00:00
|
|
|
<t t-set="content">
|
2011-05-09 10:05:41 +00:00
|
|
|
<div class="searchview_extended_groups_list">
|
|
|
|
</div>
|
2011-03-30 15:04:21 +00:00
|
|
|
</t>
|
|
|
|
</t>
|
2011-03-25 15:11:20 +00:00
|
|
|
</t>
|
2011-03-28 12:42:47 +00:00
|
|
|
<t t-name="SearchView.extended_search.group">
|
2011-04-12 16:27:03 +00:00
|
|
|
<div t-att-id="element_id" class="searchview_extended_group">
|
2011-03-30 15:04:21 +00:00
|
|
|
<select class="searchview_extended_group_choice">
|
2011-04-12 16:27:03 +00:00
|
|
|
<option value="all">All the following conditions must match</option>
|
|
|
|
<option value="any">Any of the following conditions must match</option>
|
|
|
|
<option value="none">None of the following conditions must match</option>
|
2011-03-30 15:04:21 +00:00
|
|
|
</select>
|
2011-05-27 10:25:27 +00:00
|
|
|
<a class="searchview_extended_delete_group"
|
|
|
|
href="javascript:void(0)"><span></span></a>
|
2011-03-30 15:04:21 +00:00
|
|
|
<div class="searchview_extended_propositions_list">
|
|
|
|
</div>
|
2011-05-27 10:25:27 +00:00
|
|
|
<a class="searchview_extended_add_proposition" href="javascript:void(0)">
|
|
|
|
<span>Add condition</span></a>
|
2011-06-21 14:04:23 +00:00
|
|
|
<div class="oe_adv_filters_and"><span>and</span></div>
|
2011-03-30 15:04:21 +00:00
|
|
|
</div>
|
2011-03-28 12:42:47 +00:00
|
|
|
</t>
|
|
|
|
<t t-name="SearchView.extended_search.proposition">
|
2011-03-30 15:04:21 +00:00
|
|
|
<div t-att-id="element_id">
|
|
|
|
<select class="searchview_extended_prop_field">
|
|
|
|
<t t-foreach="attrs.fields" t-as="field">
|
|
|
|
<option t-att="{'selected': field === attrs.selected ? 'selected' : null}"
|
|
|
|
t-att-value="field.name">
|
2011-03-31 12:00:10 +00:00
|
|
|
<t t-esc="field.string"/>
|
2011-03-30 15:04:21 +00:00
|
|
|
</option>
|
|
|
|
</t>
|
|
|
|
</select>
|
2011-03-31 12:00:10 +00:00
|
|
|
<select class="searchview_extended_prop_op"/>
|
|
|
|
<span class="searchview_extended_prop_value"/>
|
2011-05-27 10:25:27 +00:00
|
|
|
<a class="searchview_extended_delete_prop"
|
|
|
|
href="javascript:void(0)"><span></span></a>
|
2011-03-30 15:04:21 +00:00
|
|
|
</div>
|
2011-03-28 16:49:45 +00:00
|
|
|
</t>
|
|
|
|
<t t-name="SearchView.extended_search.proposition.char">
|
2011-05-19 16:18:35 +00:00
|
|
|
<input t-att-id="element_id" class="field_char"/>
|
2011-03-28 12:42:47 +00:00
|
|
|
</t>
|
2011-05-19 15:12:49 +00:00
|
|
|
<t t-name="SearchView.extended_search.proposition.datetime">
|
2011-05-19 15:53:02 +00:00
|
|
|
<input t-att-id="element_id" class="field_datetime"/>
|
|
|
|
</t>
|
|
|
|
<t t-name="SearchView.extended_search.proposition.date">
|
|
|
|
<input t-att-id="element_id" class="field_date"/>
|
2011-05-19 15:12:49 +00:00
|
|
|
</t>
|
2011-05-19 16:18:35 +00:00
|
|
|
<t t-name="SearchView.extended_search.proposition.integer">
|
|
|
|
<input type="number" t-att-id="element_id" class="field_integer" step="1"/>
|
|
|
|
</t>
|
|
|
|
<t t-name="SearchView.extended_search.proposition.float">
|
|
|
|
<input type="number" t-att-id="element_id" class="field_float" step="0.01"/>
|
|
|
|
</t>
|
2011-05-19 17:00:41 +00:00
|
|
|
<t t-name="SearchView.extended_search.proposition.boolean">
|
|
|
|
</t>
|
|
|
|
<t t-name="SearchView.extended_search.proposition.selection">
|
|
|
|
<select t-att-id="element_id">
|
|
|
|
<t t-foreach="field.selection" t-as="element">
|
|
|
|
<option t-att-value="element[0]"><t t-esc="element[1]"/></option>
|
|
|
|
</t>
|
|
|
|
</select>
|
|
|
|
</t>
|
2011-04-01 12:10:42 +00:00
|
|
|
<t t-name="ViewManager.sidebar">
|
2011-05-18 15:17:10 +00:00
|
|
|
<div t-att-id="element_id" class="sidebar-main-div closed-sidebar">
|
2011-04-04 13:47:05 +00:00
|
|
|
|
2011-04-01 12:10:42 +00:00
|
|
|
</div>
|
|
|
|
</t>
|
2011-04-04 13:47:05 +00:00
|
|
|
<t t-name="ViewManager.sidebar.internal">
|
2011-05-18 15:17:10 +00:00
|
|
|
<a class="toggle-sidebar"></a>
|
2011-05-24 16:42:33 +00:00
|
|
|
<div class="sidebar-content">
|
2011-05-26 21:38:11 +00:00
|
|
|
<div class="sidebar-attachments" t-if="view == 'form'"> </div>
|
|
|
|
<div class="sidebar-actions">
|
|
|
|
<t t-foreach="sidebar.sections" t-as="section" t-if="section.elements.length">
|
|
|
|
<h2><t t-esc="section.label"/></h2>
|
|
|
|
<ul>
|
|
|
|
<li t-foreach="section.elements" t-as="element">
|
|
|
|
<a class="oe_sidebar_action_a" t-attf-data-index="#{section_index}-#{element_index}" href="#">
|
|
|
|
<t t-esc="element.name"/>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</t>
|
|
|
|
</div>
|
2011-05-18 15:17:10 +00:00
|
|
|
</div>
|
2011-04-04 13:47:05 +00:00
|
|
|
</t>
|
2011-04-06 14:51:13 +00:00
|
|
|
<t t-name="DialogWarning">
|
2011-06-22 14:57:57 +00:00
|
|
|
<table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
|
|
|
|
<tr>
|
|
|
|
<td><img src="/base/static/src/img/warning.png" class="oe-dialog-icon"/></td>
|
|
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<t t-js="d">
|
2011-07-04 11:11:34 +00:00
|
|
|
var message = d.message ? d.message : d.error.data.fault_code;
|
|
|
|
d.html_error = context.engine.tools.html_escape(message)
|
|
|
|
.replace(/\n/g, '<br/>');
|
2011-06-22 14:57:57 +00:00
|
|
|
</t>
|
|
|
|
<t t-raw="html_error"/>
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-06-21 12:10:02 +00:00
|
|
|
</t>
|
|
|
|
<t t-name="DialogTraceback">
|
|
|
|
<pre><t t-esc="error.message"/></pre>
|
|
|
|
<hr/>
|
|
|
|
<pre><t t-esc="error.data.debug"/></pre>
|
2011-04-06 14:51:13 +00:00
|
|
|
</t>
|
2011-06-16 15:17:22 +00:00
|
|
|
<t t-name="SelectCreatePopup">
|
2011-05-09 10:05:41 +00:00
|
|
|
<div t-att-id="element_id">
|
|
|
|
<div t-att-id="element_id + '_search'"></div>
|
2011-05-09 11:52:33 +00:00
|
|
|
<div t-att-id="element_id + '_view_list'"></div>
|
2011-05-10 10:30:46 +00:00
|
|
|
<div t-att-id="element_id + '_view_form'"></div>
|
2011-05-03 16:17:25 +00:00
|
|
|
</div>
|
|
|
|
</t>
|
2011-06-16 15:17:22 +00:00
|
|
|
<t t-name="SelectCreatePopup.search.buttons">
|
|
|
|
<button type="button" class="oe_selectcreatepopup-search-select" disabled="disabled">Select</button>
|
|
|
|
<button type="button" class="oe_selectcreatepopup-search-close">Close</button>
|
2011-05-10 10:30:46 +00:00
|
|
|
</t>
|
2011-06-16 15:17:22 +00:00
|
|
|
<t t-name="SelectCreatePopup.form.buttons">
|
|
|
|
<button type="button" class="oe_selectcreatepopup-form-save">Save</button>
|
|
|
|
<button type="button" class="oe_selectcreatepopup-form-close">Close</button>
|
2011-05-10 10:30:46 +00:00
|
|
|
</t>
|
2011-06-03 10:31:00 +00:00
|
|
|
|
|
|
|
<t t-name="ListView.row.frame" t-extend="WidgetFrame">
|
|
|
|
<t t-jquery="tr">
|
|
|
|
$(document.createElement('t'))
|
|
|
|
.append(this.contents())
|
|
|
|
.attr({
|
|
|
|
't-foreach': this.attr('t-foreach'),
|
|
|
|
't-as': this.attr('t-as')
|
|
|
|
})
|
|
|
|
.replaceAll(this)
|
2011-06-07 14:13:58 +00:00
|
|
|
.after($(document.createElement('td')).append(
|
2011-06-03 12:24:43 +00:00
|
|
|
$(document.createElement('button')).attr({
|
2011-06-03 14:16:38 +00:00
|
|
|
'class': 'oe-edit-row-save', 'type': 'button'}).text('Save')))
|
2011-06-07 14:13:58 +00:00
|
|
|
.before($(document.createElement('td')).append(
|
2011-06-03 14:16:38 +00:00
|
|
|
$(document.createElement('button')).attr({
|
|
|
|
'class': 'oe-edit-row-cancel', 'type': 'button'}).text('Cancel')))
|
2011-06-03 10:31:00 +00:00
|
|
|
.unwrap();
|
|
|
|
</t>
|
|
|
|
</t>
|
2011-03-02 21:09:42 +00:00
|
|
|
</templates>
|