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>
|
2011-06-29 06:17:55 +00:00
|
|
|
|
<td colspan="2" valign="top">
|
2011-03-22 11:49:19 +00:00
|
|
|
|
<div id="oe_header" class="header"></div>
|
|
|
|
|
<div id="oe_menu" class="menu"></div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2011-06-29 06:17:55 +00:00
|
|
|
|
<td valign="top" class="login-container" colspan="2">
|
|
|
|
|
<div id="oe_login" class="login"></div>
|
2011-03-22 11:49:19 +00:00
|
|
|
|
</td>
|
2011-06-29 06:17:55 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="db_options_row">
|
|
|
|
|
<td valign="top" class="db_container">
|
|
|
|
|
<div id="oe_database" class="database"></div>
|
|
|
|
|
</td>
|
|
|
|
|
<td valign="top">
|
2011-06-29 14:00:51 +00:00
|
|
|
|
<div id="oe_db_options"></div>
|
2011-03-22 11:49:19 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2011-06-06 09:04:54 +00:00
|
|
|
|
<tr>
|
2011-03-22 11:49:19 +00:00
|
|
|
|
<td valign="top" id="oe_secondary_menu" class="secondary_menu">
|
|
|
|
|
</td>
|
2011-06-29 06:17:55 +00:00
|
|
|
|
<td valign="top">
|
2011-05-18 14:24:25 +00:00
|
|
|
|
<div id="oe_app" class="oe-application">
|
|
|
|
|
</div>
|
2011-06-06 09:04:54 +00:00
|
|
|
|
</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-06-24 06:52:12 +00:00
|
|
|
|
<t t-name="Database">
|
2011-07-26 08:47:14 +00:00
|
|
|
|
<ul class="db_options" style="padding: 0px; display: inline;">
|
|
|
|
|
<li id="db-create">Create</li>
|
|
|
|
|
<li id="db-drop">Drop</li>
|
|
|
|
|
<li id="db-backup">Backup</li>
|
|
|
|
|
<li id="db-restore">Restore</li>
|
|
|
|
|
<li id="db-change-password">Password</li>
|
|
|
|
|
<li id="back-to-login">Back to Login</li>
|
|
|
|
|
</ul>
|
2011-06-29 06:17:55 +00:00
|
|
|
|
</t>
|
2011-08-19 02:01:56 +00:00
|
|
|
|
<t t-name="Database.CreateDB">
|
2011-08-03 12:50:52 +00:00
|
|
|
|
<form name="create_db_form" class="oe_forms" method="POST">
|
2011-07-26 08:47:14 +00:00
|
|
|
|
<table width="100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="option_string">
|
|
|
|
|
CREATE DATABASE
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<table align="center" class="db_option_table">
|
|
|
|
|
<tr>
|
2011-08-10 14:30:39 +00:00
|
|
|
|
<td><label for="super_admin_pwd">Master password:</label></td>
|
2011-08-19 02:01:56 +00:00
|
|
|
|
<td><input type="password" name="super_admin_pwd" class="required" value="admin"/></td>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="db_name">New database name:</label></td>
|
|
|
|
|
<td><input type="text" name="db_name" class="required"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="demo_data">Load Demonstration data:</label></td>
|
2011-08-04 12:23:00 +00:00
|
|
|
|
<td><input type="checkbox" name="demo_data"/></td>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="db_lang">Default language:</label></td>
|
|
|
|
|
<td>
|
2011-08-01 10:58:38 +00:00
|
|
|
|
<select name="db_lang" t-if="lang_list">
|
|
|
|
|
<t t-foreach="lang_list" t-as="lang">
|
2011-08-19 02:01:56 +00:00
|
|
|
|
<option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined"><t t-esc="lang[1]"/></option>
|
2011-08-01 10:58:38 +00:00
|
|
|
|
</t>
|
|
|
|
|
</select>
|
2011-08-01 10:44:53 +00:00
|
|
|
|
</td>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2011-08-10 14:30:39 +00:00
|
|
|
|
<td><label for="create_admin_pwd">Admin password:</label></td>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
<td><input type="password" name="create_admin_pwd" class="required"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="create_confirm_pwd">Confirm password:</label></td>
|
2011-08-01 10:44:53 +00:00
|
|
|
|
<td><input type="password" name="create_confirm_pwd" class="required"
|
|
|
|
|
equalTo="input[name=create_admin_pwd]"/></td>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" align="right"><input type="submit" value="Create"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
2011-06-29 18:15:57 +00:00
|
|
|
|
</t>
|
|
|
|
|
<t t-name="DropDB">
|
2011-08-03 12:50:52 +00:00
|
|
|
|
<form name="drop_db_form" class="oe_forms" method="POST">
|
2011-07-26 08:47:14 +00:00
|
|
|
|
<table width="100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="option_string">
|
|
|
|
|
DROP DATABASE
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<table align="center" class="db_option_table">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="drop_db">Database:</label></td>
|
2011-08-01 10:52:31 +00:00
|
|
|
|
<td>
|
2011-08-01 10:58:38 +00:00
|
|
|
|
<select t-if="db_list" name="drop_db" autofocus="autofocus">
|
|
|
|
|
<t t-foreach="db_list" t-as="db">
|
|
|
|
|
<option t-att-value="db"><t t-esc="db"/></option>
|
|
|
|
|
</t>
|
|
|
|
|
</select>
|
2011-08-01 10:52:31 +00:00
|
|
|
|
</td>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2011-08-10 14:30:39 +00:00
|
|
|
|
<td><label for="drop_password">Master Password:</label></td>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
<td><input type="password" name="drop_pwd" class="required"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" align="right"><input type="submit" value="Drop"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
2011-07-05 13:24:23 +00:00
|
|
|
|
</t>
|
|
|
|
|
<t t-name="BackupDB">
|
2011-08-03 12:50:52 +00:00
|
|
|
|
<form name="backup_db_form" class="oe_forms" method="POST" target="backup-target"
|
2011-09-05 11:03:09 +00:00
|
|
|
|
action="/web/database/backup">
|
2011-08-01 13:12:54 +00:00
|
|
|
|
<input type="hidden" name="token"/>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
<table width="100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="option_string">
|
|
|
|
|
BACKUP DATABASE
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<table align="center" class="db_option_table">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="backup_db">Database:</label></td>
|
|
|
|
|
<td>
|
2011-08-01 10:58:38 +00:00
|
|
|
|
<select t-if="db_list" name="backup_db" autofocus="autofocus">
|
|
|
|
|
<t t-foreach="db_list" t-as="db">
|
|
|
|
|
<option t-att-value="db"><t t-esc="db"/></option>
|
|
|
|
|
</t>
|
|
|
|
|
</select>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2011-08-10 14:30:39 +00:00
|
|
|
|
<td><label for="backup_pwd">Master Password:</label></td>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
<td><input type="password" name="backup_pwd" class="required"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" align="right"><input type="submit" value="Backup"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
2011-06-29 18:15:57 +00:00
|
|
|
|
</t>
|
|
|
|
|
<t t-name="RestoreDB">
|
2011-08-03 12:50:52 +00:00
|
|
|
|
<form name="restore_db_form" class="oe_forms" method="POST">
|
2011-07-26 08:47:14 +00:00
|
|
|
|
<table width="100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="option_string">
|
|
|
|
|
RESTORE DATABASE
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<table align="center" class="db_option_table">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="restore_db">File:</label></td>
|
2011-08-01 14:47:28 +00:00
|
|
|
|
<td><input type="file" name="db_file" class="required"
|
2011-08-01 10:44:53 +00:00
|
|
|
|
autofocus="autofocus"/></td>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2011-08-10 14:30:39 +00:00
|
|
|
|
<td><label for="restore_pwd">Master Password:</label></td>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
<td><input type="password" name="restore_pwd" class="required"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="new_db">New database name:</label></td>
|
|
|
|
|
<td><input type="text" name="new_db" class="required"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" align="right"><input type="submit" value="Restore"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
2011-06-29 18:15:57 +00:00
|
|
|
|
</t>
|
|
|
|
|
<t t-name="Change_DB_Pwd">
|
2011-08-03 12:50:52 +00:00
|
|
|
|
<form name="change_pwd_form" class="oe_forms" method="POST">
|
2011-07-26 08:47:14 +00:00
|
|
|
|
<table width="100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="option_string">
|
2011-08-10 14:30:39 +00:00
|
|
|
|
CHANGE MASTER PASSWORD
|
2011-07-26 08:47:14 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<table align="center" class="db_option_table">
|
|
|
|
|
<tr>
|
2011-08-10 14:30:39 +00:00
|
|
|
|
<td><label for="old_pwd">Master password:</label></td>
|
2011-08-01 10:44:53 +00:00
|
|
|
|
<td><input type="password" name="old_pwd" class="required"
|
|
|
|
|
minlength="1" autofocus="autofocus"/></td>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2011-08-10 14:30:39 +00:00
|
|
|
|
<td><label for="new_pwd">New master password:</label></td>
|
2011-08-01 10:44:53 +00:00
|
|
|
|
<td><input type="password" name="new_pwd" class="required"
|
|
|
|
|
minlength="1"/></td>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2011-08-10 14:30:39 +00:00
|
|
|
|
<td><label for="confirm_pwd">Confirm new master password:</label></td>
|
2011-08-01 10:44:53 +00:00
|
|
|
|
<td><input type="password" name="confirm_pwd" class="required"
|
|
|
|
|
equalTo="input[name=new_pwd]" minlength="1"/></td>
|
2011-07-26 08:47:14 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" align="right"><input type="submit" value="Change Password"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
2011-06-24 06:52:12 +00:00
|
|
|
|
</t>
|
2011-03-09 15:03:38 +00:00
|
|
|
|
<t t-name="Login">
|
2011-08-03 12:50:52 +00:00
|
|
|
|
<form class="oe_forms">
|
2011-06-06 09:49:55 +00:00
|
|
|
|
<fieldset>
|
|
|
|
|
<legend style="">
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/stock_person.png" alt="" />
|
2011-06-06 09:49:55 +00:00
|
|
|
|
</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">
|
2011-07-25 09:52:32 +00:00
|
|
|
|
<input type="text" name="db" t-att-value="selected_db || ''" autofocus="true"/>
|
2011-06-06 11:43:06 +00:00
|
|
|
|
</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"
|
2011-07-12 09:11:31 +00:00
|
|
|
|
t-att-value="selected_password || ''"/></td>
|
2011-06-06 09:49:55 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td></td>
|
2011-06-08 09:44:26 +00:00
|
|
|
|
<td>
|
2011-06-24 06:52:12 +00:00
|
|
|
|
<button type="button" id="oe-db-config">Database</button>
|
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>
|
2011-06-07 13:14:19 +00:00
|
|
|
|
|
2011-06-06 10:19:47 +00:00
|
|
|
|
<table cellpadding="0" cellspacing="0" width="100%" style="border:none;">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/product.png"/>
|
2011-06-06 10:19:47 +00:00
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<strong>Full featured</strong><br />
|
|
|
|
|
Today's enterprise challenges are multiple. We provide one module for each need.
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/accessories-archiver.png"/>
|
2011-06-06 10:19:47 +00:00
|
|
|
|
</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>
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/partner.png" />
|
2011-06-06 10:19:47 +00:00
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<strong>User Friendly</strong><br />
|
|
|
|
|
In order to be productive, people need clean and easy to use interface.
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2011-06-07 13:14:19 +00:00
|
|
|
|
|
2011-06-06 10:19:47 +00:00
|
|
|
|
</div>
|
2011-03-02 21:09:42 +00:00
|
|
|
|
</t>
|
2011-03-08 22:47:58 +00:00
|
|
|
|
<t t-name="Header">
|
2011-08-30 08:53:28 +00:00
|
|
|
|
<div>
|
|
|
|
|
<a t-att-href="'/' + widget.qs" class="company_logo_link">
|
|
|
|
|
<div class="company_logo" />
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</t>
|
|
|
|
|
<t t-name="Header-content">
|
|
|
|
|
<h1 class="header_title">
|
|
|
|
|
<span class="database"><t t-esc="widget.session.db"/></span> - <t t-esc="widget.session.login"/> <br/>
|
|
|
|
|
<small class="username">rpc_session_id: <t t-esc="widget.session.session_id"/></small>
|
2011-03-08 22:47:58 +00:00
|
|
|
|
</h1>
|
|
|
|
|
<div class="header_corner">
|
2011-08-30 08:53:28 +00:00
|
|
|
|
<ul class="block">
|
2011-03-09 15:03:38 +00:00
|
|
|
|
<li>
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<a href="#home" title="Home" class="home"><img src="/web/static/src/img/header-home.png" width="16" height="16" border="0"/></a>
|
2011-03-09 15:03:38 +00:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<a href="#requests" title="Requests" class="requests"><img src="/web/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-09-05 11:03:09 +00:00
|
|
|
|
<a href="#preferences" title="Preferences" class="preferences"><img src="/web/static/src/img/header-preferences.png" width="16" height="16" border="0"/></a>
|
2011-03-09 15:03:38 +00:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<a href="#about" title="About" class="about"><img src="/web/static/src/img/header-about.png" width="16" height="16" border="0"/></a>
|
2011-03-09 15:03:38 +00:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<a href="http://doc.openerp.com/v6.0/book?version=$version" title="Help" target="_blank" class="help"><img src="/web/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>
|
2011-08-16 10:26:20 +00:00
|
|
|
|
<div class="oe-shortcuts"> </div>
|
2011-03-08 22:47:58 +00:00
|
|
|
|
</t>
|
2011-08-16 10:26:20 +00:00
|
|
|
|
<ul t-name="Shortcuts">
|
|
|
|
|
<li t-foreach="shortcuts" t-as="shortcut"
|
2011-08-16 12:37:24 +00:00
|
|
|
|
t-att-data-id="shortcut.res_id"
|
2011-08-16 10:26:20 +00:00
|
|
|
|
t-att-data-shortcut-id="shortcut.id"
|
|
|
|
|
><t t-esc="shortcut.name"/></li>
|
|
|
|
|
</ul>
|
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">
|
2011-08-16 12:35:10 +00:00
|
|
|
|
<a class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
|
|
|
|
|
href="javascript: void(0)"> </a>
|
2011-04-21 10:12:12 +00:00
|
|
|
|
<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-07-26 21:00:05 +00:00
|
|
|
|
<t t-foreach="views" t-as="view">
|
|
|
|
|
<div t-attf-id="#{prefix}_sidebar_#{view.view_type}" class="sidebar-main-div closed-sidebar" style="display: none"/>
|
|
|
|
|
</t>
|
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-07-26 21:00:05 +00:00
|
|
|
|
<t t-name="Sidebar">
|
|
|
|
|
<a class="toggle-sidebar"></a>
|
|
|
|
|
<div class="sidebar-content">
|
|
|
|
|
<div class="sidebar-actions">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</t>
|
|
|
|
|
<t t-name="Sidebar.section">
|
|
|
|
|
<h2><t t-esc="name"/></h2>
|
2011-07-28 15:15:45 +00:00
|
|
|
|
<div t-att-id="section_id" t-att-class="classname">
|
2011-07-26 21:00:05 +00:00
|
|
|
|
<ul t-if="items">
|
|
|
|
|
<li t-foreach="items" t-as="item" t-att-class="item.classname">
|
2011-07-28 15:15:45 +00:00
|
|
|
|
<a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
|
2011-07-26 21:00:05 +00:00
|
|
|
|
<t t-esc="item.label"/>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</t>
|
2011-08-24 15:13:57 +00:00
|
|
|
|
<t t-name="TranslateDialog">
|
|
|
|
|
<ul class="oe_translate_tabs">
|
|
|
|
|
<li><a t-attf-href="##{widget.element_id}_fields">Fields</a></li>
|
|
|
|
|
<li><a t-attf-href="##{widget.element_id}_view">View labels</a></li>
|
|
|
|
|
<li><a t-attf-href="##{widget.element_id}_sidebar">Sidebar Relates</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div t-attf-id="#{widget.element_id}_fields">
|
|
|
|
|
<table t-if="widget.view.translatable_fields" class="oe_frame oe_forms oe_translation_form" border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="oe_form_separator" width="1%" nowrap="nowrap">
|
|
|
|
|
<div class="separator horizontal">Field</div>
|
|
|
|
|
</td>
|
|
|
|
|
<th t-foreach="widget.languages" align="left">
|
|
|
|
|
<div class="separator horizontal"><t t-esc="name"/></div>
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr t-foreach="widget.view.translatable_fields" t-as="field">
|
|
|
|
|
<td class="oe_form_frame_cell" width="1%" nowrap="nowrap">
|
2011-09-02 09:19:22 +00:00
|
|
|
|
<label class="oe_label"><t t-esc="field.string"/>:</label>
|
2011-08-24 15:13:57 +00:00
|
|
|
|
</td>
|
|
|
|
|
<td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell">
|
2011-08-29 14:08:39 +00:00
|
|
|
|
<input t-if="field.type == 'char'" type="text" t-attf-name="#{lg.code}-#{field.name}" value="" data-value="" class="oe_trad_field" style="width: 100%"/>
|
|
|
|
|
<textarea t-if="field.type == 'text'" t-attf-name="#{lg.code}-#{field.name}" data-value="" class="oe_trad_field" style="width: 100%"></textarea>
|
2011-08-24 15:13:57 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div t-attf-id="#{widget.element_id}_view">
|
|
|
|
|
Translate view
|
|
|
|
|
</div>
|
|
|
|
|
<div t-attf-id="#{widget.element_id}_sidebar">
|
|
|
|
|
Translate sidebar
|
|
|
|
|
</div>
|
|
|
|
|
</t>
|
2011-06-13 05:51:02 +00:00
|
|
|
|
<t t-name="TreeView">
|
2011-06-30 07:11:29 +00:00
|
|
|
|
<h2 class="oe_view_title"><t t-esc="title"/></h2>
|
2011-08-09 13:56:40 +00:00
|
|
|
|
<select t-if="toolbar" style="width: 30%">
|
2011-06-13 05:51:02 +00:00
|
|
|
|
</select>
|
2011-08-09 15:54:29 +00:00
|
|
|
|
<table class="oe-treeview-table">
|
2011-08-09 11:25:27 +00:00
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th t-foreach="fields_view" t-as="field"
|
|
|
|
|
t-if="!field.attrs.modifiers.tree_invisible"
|
|
|
|
|
class="treeview-header">
|
|
|
|
|
<t t-esc="fields[field.attrs.name].string" />
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2011-06-07 07:10:34 +00:00
|
|
|
|
</t>
|
2011-08-09 09:09:39 +00:00
|
|
|
|
<tr t-name="TreeView.rows"
|
|
|
|
|
t-foreach="records" t-as="record"
|
2011-08-09 11:25:27 +00:00
|
|
|
|
t-att-id="'treerow_' + record.id"
|
2011-08-09 14:22:43 +00:00
|
|
|
|
t-att-data-id="record.id" t-att-data-level="level + 1">
|
2011-08-09 08:56:28 +00:00
|
|
|
|
<t t-set="children" t-value="record[children_field]"/>
|
2011-08-09 11:25:27 +00:00
|
|
|
|
<t t-set="has_children" t-value="children and children.length"/>
|
|
|
|
|
|
|
|
|
|
<td t-foreach="fields_view" t-as="field"
|
|
|
|
|
t-if="!field.attrs.modifiers.tree_invisible"
|
2011-08-09 12:35:47 +00:00
|
|
|
|
t-att-data-id="record.id"
|
|
|
|
|
t-att-style="!field_index ? 'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px' : undefined"
|
2011-08-09 11:25:27 +00:00
|
|
|
|
t-att-class="!field_index and has_children ? 'treeview-tr' : 'treeview-td'">
|
2011-08-09 09:09:39 +00:00
|
|
|
|
<span t-if="!field.attrs.modifiers.invisible">
|
2011-08-09 15:44:40 +00:00
|
|
|
|
<t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
|
2011-08-09 09:09:39 +00:00
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2011-07-15 12:50:44 +00:00
|
|
|
|
<table t-name="ListView" class="oe-listview-content">
|
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)"/>
|
2011-04-12 11:17:12 +00:00
|
|
|
|
<thead class="ui-widget-header">
|
2011-07-27 08:14:48 +00:00
|
|
|
|
<tr t-if="options.action_buttons !== false or options.pager !== false">
|
2011-07-15 12:50:44 +00:00
|
|
|
|
<th t-att-colspan="columns_count">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
2011-07-27 08:14:48 +00:00
|
|
|
|
<td t-if="options.action_buttons !== false" class="oe-actions">
|
2011-07-15 12:50:44 +00:00
|
|
|
|
<button type="button" class="oe-list-add"
|
|
|
|
|
t-if="options.addable">
|
|
|
|
|
<t t-esc="options.addable"/>
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="oe-list-delete"
|
|
|
|
|
t-if="options.selectable and options.deletable">
|
|
|
|
|
Delete
|
|
|
|
|
</button>
|
|
|
|
|
</td>
|
2011-07-27 08:14:48 +00:00
|
|
|
|
<th t-if="options.pager !== false" class="oe-list-pager">
|
2011-07-15 12:50:44 +00:00
|
|
|
|
<button type="button" disabled="disabled"
|
|
|
|
|
data-pager-action="first">First</button>
|
|
|
|
|
<button type="button" disabled="disabled"
|
|
|
|
|
data-pager-action="previous"
|
|
|
|
|
><</button>
|
2011-04-05 10:30:13 +00:00
|
|
|
|
|
2011-07-15 12:50:44 +00:00
|
|
|
|
<span class="oe-pager-state">
|
|
|
|
|
</span>
|
2011-04-05 10:30:13 +00:00
|
|
|
|
|
2011-07-15 12:50:44 +00:00
|
|
|
|
<button type="button" disabled="disabled"
|
|
|
|
|
data-pager-action="next">></button>
|
|
|
|
|
<button type="button" disabled="disabled"
|
|
|
|
|
data-pager-action="last">Last</button>
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
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-07-11 11:33:40 +00:00
|
|
|
|
<th t-if="options.selectable" width="1"/>
|
2011-04-07 12:12:22 +00:00
|
|
|
|
<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-07-13 11:18:15 +00:00
|
|
|
|
<t t-if="column.tag !== 'button'"
|
|
|
|
|
><t t-esc="column.string"/></t>
|
2011-04-07 12:12:22 +00:00
|
|
|
|
</th>
|
|
|
|
|
</t>
|
2011-07-11 11:33:40 +00:00
|
|
|
|
<th t-if="options.deletable" width="1"/>
|
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"
|
2011-07-25 10:29:49 +00:00
|
|
|
|
t-att-data-field="column.id" 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-08-17 13:16:35 +00:00
|
|
|
|
<t t-name="ListView.rows" t-foreach="records.length" t-as="index">
|
|
|
|
|
<t t-call="ListView.row">
|
|
|
|
|
<t t-set="record" t-value="records.at(index)"/>
|
|
|
|
|
<t t-set="row_parity" t-value="index_parity"/>
|
|
|
|
|
</t>
|
2011-03-02 21:09:42 +00:00
|
|
|
|
</t>
|
2011-08-10 14:00:58 +00:00
|
|
|
|
<tr t-name="ListView.row" t-att-class="row_parity"
|
2011-08-24 08:53:03 +00:00
|
|
|
|
t-att-data-id="record.get('id')">
|
2011-05-24 11:57:55 +00:00
|
|
|
|
<t t-foreach="columns" t-as="column">
|
|
|
|
|
<td t-if="column.meta">
|
2011-06-07 13:14:19 +00:00
|
|
|
|
|
2011-05-24 11:57:55 +00:00
|
|
|
|
</td>
|
|
|
|
|
</t>
|
2011-07-11 11:33:40 +00:00
|
|
|
|
<th t-if="options.selectable" class="oe-record-selector" width="1">
|
2011-04-07 12:12:22 +00:00
|
|
|
|
<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-08-17 13:16:35 +00:00
|
|
|
|
<t t-raw="render_cell(record.toForm().data, column)"/>
|
2011-04-06 13:58:37 +00:00
|
|
|
|
</td>
|
|
|
|
|
</t>
|
2011-07-11 11:33:40 +00:00
|
|
|
|
<td t-if="options.deletable" class='oe-record-delete' width="1">
|
2011-04-07 15:13:19 +00:00
|
|
|
|
<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-11 12:32:07 +00:00
|
|
|
|
<div class="oe_form_header" t-att-id="view.element_id + '_header'">
|
2011-08-31 12:45:38 +00:00
|
|
|
|
<h2 class="oe_view_title"><t t-esc="view.fields_view.arch.attrs.string"/> <button t-if="view.session.debug" class="oe_get_xml_view">View#<t t-esc="view.fields_view.view_id"/></button></h2>
|
2011-07-27 08:14:48 +00:00
|
|
|
|
<div class="oe_form_buttons" t-if="view.options.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-07-27 08:14:48 +00:00
|
|
|
|
<div class="oe_form_pager" t-if="view.options.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">
|
|
|
|
|
<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"
|
2011-09-05 11:03:09 +00:00
|
|
|
|
method="post" enctype="multipart/form-data" action="/web/binary/upload_attachment">
|
2011-05-26 21:38:11 +00:00
|
|
|
|
<input type="hidden" name="session_id" t-att-value="session.session_id"/>
|
|
|
|
|
<input type="hidden" name="callback" t-attf-value="#{element_id}_iframe"/>
|
2011-07-26 21:00:05 +00:00
|
|
|
|
<input type="hidden" name="model" t-att-value="view.dataset.model"/>
|
|
|
|
|
<input type="hidden" name="id" t-att-value="view.datarecord.id"/>
|
2011-05-26 21:38:11 +00:00
|
|
|
|
<button class="button" type="button">
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/throbber.gif" width="16" height="16" style="display: none"/>
|
2011-05-26 21:38:11 +00:00
|
|
|
|
<span>Add</span>
|
|
|
|
|
</button>
|
|
|
|
|
<input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
|
2011-07-26 21:00:05 +00:00
|
|
|
|
t-att-onclick="view.datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
|
2011-05-26 21:38:11 +00:00
|
|
|
|
</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">
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="'/web/binary/saveas?session_id='
|
2011-05-26 21:38:11 +00:00
|
|
|
|
+ session.session_id + '&model=ir.attachment&id=' + attachment.id
|
2011-07-26 21:00:05 +00:00
|
|
|
|
+ '&field=datas&fieldname=name&t=' + (new Date().getTime())"/>
|
2011-05-26 21:38:11 +00:00
|
|
|
|
<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}">
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/attachments-close.png" width="15" height="15" border="0"/>
|
2011-05-26 21:38:11 +00:00
|
|
|
|
</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-08-03 12:47:02 +00:00
|
|
|
|
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
|
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"
|
2011-08-31 12:45:38 +00:00
|
|
|
|
t-att-width="td.width"
|
|
|
|
|
t-att-nowrap="td.nowrap 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-08-31 12:45:38 +00:00
|
|
|
|
t-attf-class="oe_form_frame_cell #{td.classname}"
|
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>
|
2011-07-11 14:48:51 +00:00
|
|
|
|
<li t-foreach="widget.pages" t-as="page" t-att-id="page.element_tab_id">
|
|
|
|
|
<a t-att-href="'#' + page.element_id">
|
2011-03-22 17:18:01 +00:00
|
|
|
|
<t t-esc="page.string"/>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<t t-foreach="widget.pages" t-as="page">
|
2011-07-11 14:48:51 +00:00
|
|
|
|
<t t-raw="page.render()"/>
|
2011-03-22 17:18:01 +00:00
|
|
|
|
</t>
|
2011-03-16 14:00:45 +00:00
|
|
|
|
</t>
|
2011-07-11 14:48:51 +00:00
|
|
|
|
<t t-name="WidgetNotebookPage">
|
|
|
|
|
<div t-att-id="widget.element_id">
|
|
|
|
|
<t t-call="WidgetFrame"/>
|
|
|
|
|
</div>
|
|
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
|
<t t-name="WidgetSeparator">
|
2011-08-31 12:45:38 +00:00
|
|
|
|
<div t-if="widget.orientation !== 'vertical'" t-att-class="'separator ' + widget.orientation">
|
2011-03-16 14:00:45 +00:00
|
|
|
|
<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'"
|
2011-09-02 09:19:22 +00:00
|
|
|
|
t-att-class="'oe_label' + (widget.help ? '_help' : '')"
|
2011-08-04 15:20:45 +00:00
|
|
|
|
t-att-title="widget.help">
|
2011-03-24 21:03:47 +00:00
|
|
|
|
<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-08-22 12:49:10 +00:00
|
|
|
|
<input type="text" size="1"
|
2011-03-22 17:18:01 +00:00
|
|
|
|
t-att-name="widget.name"
|
2011-04-06 13:45:31 +00:00
|
|
|
|
t-att-id="widget.element_id + '_field'"
|
2011-08-24 15:13:57 +00:00
|
|
|
|
t-att-class="'field_' + widget.type"
|
|
|
|
|
t-attf-style="width: #{widget.field.translate ? '99' : '100'}%"
|
2011-03-22 17:18:01 +00:00
|
|
|
|
/>
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img class="oe_field_translate" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
|
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-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/icons/terp-mail-message-new.png"/>
|
2011-05-12 16:25:50 +00:00
|
|
|
|
</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">
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/icons/gtk-ok.png"/>
|
2011-05-19 13:55:22 +00:00
|
|
|
|
</button>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
|
<t t-name="FieldText">
|
2011-08-24 15:13:57 +00:00
|
|
|
|
<textarea rows="6"
|
2011-03-22 17:18:01 +00:00
|
|
|
|
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-08-24 15:13:57 +00:00
|
|
|
|
t-attf-style="width: #{widget.field.translate ? '99' : '100'}%"
|
2011-03-22 17:18:01 +00:00
|
|
|
|
></textarea>
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img class="oe_field_translate" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
|
2011-03-16 14:00:45 +00:00
|
|
|
|
</t>
|
2011-03-17 17:25:08 +00:00
|
|
|
|
<t t-name="FieldDate">
|
2011-08-22 12:49:10 +00:00
|
|
|
|
<input type="text" size="1" style="width: 100%"
|
2011-03-22 17:18:01 +00:00
|
|
|
|
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%">
|
2011-07-07 14:19:24 +00:00
|
|
|
|
<t t-foreach="widget.field_index" t-as="options">
|
|
|
|
|
<option t-att-value="options.ikey">
|
|
|
|
|
<t t-esc="options.label"/>
|
2011-04-06 13:45:31 +00:00
|
|
|
|
</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-08-22 12:49:10 +00:00
|
|
|
|
<input t-att-id="widget.element_id + '_input'" type="text" size="1" 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-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/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-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/icons/gtk-index.png"/></span>
|
2011-08-25 14:37:45 +00:00
|
|
|
|
<div t-att-id="widget.cm_id" class="contextMenu" style="display:none">
|
|
|
|
|
</div>
|
2011-05-19 13:06:23 +00:00
|
|
|
|
</div>
|
2011-03-16 14:00:45 +00:00
|
|
|
|
</t>
|
2011-08-25 14:37:45 +00:00
|
|
|
|
<t t-name="FieldMany2One.context_menu">
|
|
|
|
|
<ul>
|
|
|
|
|
<li t-att-id="widget.cm_id + '_open'" style="color:grey">Open...</li>
|
|
|
|
|
<li t-att-id="widget.cm_id + '_create'">Create...</li>
|
2011-08-25 15:17:01 +00:00
|
|
|
|
<li t-att-id="widget.cm_id + '_search'" class="oe_m2o_menu_item_mandatory">Search...</li>
|
|
|
|
|
<t t-set="i" t-value="0"/>
|
|
|
|
|
<t t-foreach="widget.related_entries" t-as="entry">
|
|
|
|
|
<li t-att-id="widget.cm_id + '_related_' + i" style="color:grey" class="oe_m2o_menu_item_mandatory">
|
|
|
|
|
... <t t-esc="(entry[2] || {})['name'] || ''"/>
|
|
|
|
|
</li>
|
|
|
|
|
<t t-set="i" t-value="i+1"/>
|
|
|
|
|
</t>
|
2011-08-25 14:37:45 +00:00
|
|
|
|
</ul>
|
|
|
|
|
</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
|
|
|
|
</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-08-18 17:45:08 +00:00
|
|
|
|
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
|
|
|
|
|
<tr>
|
|
|
|
|
<td t-att-id="widget.selection.element_id" class="oe_form_frame_cell oe_form_selection">
|
|
|
|
|
<t t-raw="widget.selection.render()"/>
|
|
|
|
|
</td>
|
|
|
|
|
<td t-att-id="widget.m2o.element_id" class="oe_form_frame_cell oe_form_many2one" nowrap="true">
|
|
|
|
|
<t t-raw="widget.m2o.render()"/>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2011-03-16 14:00:45 +00:00
|
|
|
|
</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">
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/placeholder.png" class="oe-binary-image"
|
2011-08-31 12:45:38 +00:00
|
|
|
|
t-att-border="widget.readonly ? 0 : 1"
|
2011-05-18 15:33:56 +00:00
|
|
|
|
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-09-05 11:03:09 +00:00
|
|
|
|
method="post" enctype="multipart/form-data" action="/web/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">
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
|
2011-05-23 13:38:40 +00:00
|
|
|
|
</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">
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
|
2011-05-23 13:38:40 +00:00
|
|
|
|
</button>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2011-05-18 22:36:16 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="oe-binary-progress" style="display: none">
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
|
2011-05-19 10:17:26 +00:00
|
|
|
|
<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%">
|
2011-08-22 12:49:10 +00:00
|
|
|
|
<input type="text" size="1"
|
2011-05-19 12:58:45 +00:00
|
|
|
|
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-09-05 11:03:09 +00:00
|
|
|
|
method="post" enctype="multipart/form-data" action="/web/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">
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
|
2011-05-23 13:38:40 +00:00
|
|
|
|
<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">
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/icons/gtk-save.png"/>
|
2011-05-23 13:38:40 +00:00
|
|
|
|
<span>Save As</span>
|
|
|
|
|
</button>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<button class="button oe-binary-file-clear" type="button" title="Clear">
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
|
2011-05-23 13:38:40 +00:00
|
|
|
|
<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">
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
|
2011-05-19 12:58:45 +00:00
|
|
|
|
<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-09-05 11:03:09 +00:00
|
|
|
|
<img t-if="widget.node.attrs.icon" t-att-src="'/web/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-08-03 12:47:02 +00:00
|
|
|
|
<form class="oe_forms">
|
2011-03-24 16:18:42 +00:00
|
|
|
|
<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">
|
|
|
|
|
</select>
|
2011-03-24 16:18:42 +00:00
|
|
|
|
</div>
|
|
|
|
|
</form>
|
2011-03-02 21:09:42 +00:00
|
|
|
|
</t>
|
2011-07-22 15:05:37 +00:00
|
|
|
|
<t t-name="SearchView.managed-filters">
|
|
|
|
|
<option value="_filters">-- Filters --</option>
|
2011-07-22 15:35:05 +00:00
|
|
|
|
<t t-set="i" t-value="0"/>
|
2011-07-22 15:05:37 +00:00
|
|
|
|
<t t-foreach="filters" t-as="filter">
|
2011-07-22 15:35:05 +00:00
|
|
|
|
<option t-att-value="'get:' + i"><t t-esc="filter.name"/></option>
|
|
|
|
|
<t t-set="i" t-value="i+1"/>
|
2011-07-22 15:05:37 +00:00
|
|
|
|
</t>
|
|
|
|
|
<option value="_actions">-- Actions --</option>
|
|
|
|
|
<option value="save_filter">Save Filter</option>
|
|
|
|
|
<option value="manage_filters">Manage Filters</option>
|
|
|
|
|
</t>
|
2011-07-25 11:37:40 +00:00
|
|
|
|
<t t-name="SearchView.managed-filters.add">
|
|
|
|
|
<div>
|
|
|
|
|
<p>Filter Name:</p>
|
|
|
|
|
<input type="text"/>
|
|
|
|
|
<p>(Any existing filter with the same name will be replaced)</p>
|
|
|
|
|
</div>
|
|
|
|
|
</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-09-05 11:03:09 +00:00
|
|
|
|
<img t-if="attrs.icon" t-att-src="'/web/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-09-02 09:19:22 +00:00
|
|
|
|
<label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
|
|
|
|
|
t-att-title="attrs.help"
|
2011-03-24 16:18:42 +00:00
|
|
|
|
t-att-for="element_id">
|
2011-03-24 12:46:53 +00:00
|
|
|
|
<t t-esc="attrs.string || attrs.name"/>
|
2011-09-02 09:19:22 +00:00
|
|
|
|
<span t-if="attrs.help">?</span>
|
2011-03-24 12:46:53 +00:00
|
|
|
|
</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-03-24 18:47:13 +00:00
|
|
|
|
<t t-name="SearchView.field.selection">
|
2011-09-02 09:35:17 +00:00
|
|
|
|
<label t-att-title="attrs.help"
|
|
|
|
|
t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
|
2011-03-24 18:47:13 +00:00
|
|
|
|
t-att-for="element_id">
|
|
|
|
|
<t t-esc="attrs.string || attrs.name"/>
|
2011-09-02 09:35:17 +00:00
|
|
|
|
<span t-if="attrs.help">?</span>
|
2011-03-24 18:47:13 +00:00
|
|
|
|
</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="any">Any of the following conditions must match</option>
|
2011-07-04 15:23:47 +00:00
|
|
|
|
<option value="all">All the following conditions must match</option>
|
2011-04-12 16:27:03 +00:00
|
|
|
|
<option value="none">None of the following conditions must match</option>
|
2011-03-30 15:04:21 +00:00
|
|
|
|
</select>
|
2011-06-07 13:14:19 +00:00
|
|
|
|
<a class="searchview_extended_delete_group"
|
2011-05-27 10:25:27 +00:00
|
|
|
|
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"
|
2011-07-14 14:14:02 +00:00
|
|
|
|
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-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>
|
2011-09-05 11:03:09 +00:00
|
|
|
|
<td><img src="/web/static/src/img/warning.png" class="oe-dialog-icon"/></td>
|
2011-06-22 14:57:57 +00:00
|
|
|
|
<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">
|
2011-07-12 16:16:10 +00:00
|
|
|
|
<table style="width:100%">
|
|
|
|
|
<tr style="width:100%">
|
|
|
|
|
<td style="width:100%">
|
|
|
|
|
<div t-att-id="element_id + '_search'" style="width:100%"></div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr style="width:100%">
|
|
|
|
|
<td style="width:100%">
|
|
|
|
|
<div t-att-id="element_id + '_view_list'" style="width:100%"></div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<div t-att-id="element_id + '_view_form'" style="width:100%"></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>
|
2011-08-11 16:03:47 +00:00
|
|
|
|
<button type="button" class="oe_selectcreatepopup-search-close">Cancel</button>
|
2011-05-10 10:30:46 +00:00
|
|
|
|
</t>
|
2011-06-16 15:17:22 +00:00
|
|
|
|
<t t-name="SelectCreatePopup.form.buttons">
|
2011-08-11 16:03:47 +00:00
|
|
|
|
<t t-if="widget.options.disable_multiple_selection">
|
|
|
|
|
<button type="button" class="oe_selectcreatepopup-form-save">Save</button>
|
|
|
|
|
</t>
|
|
|
|
|
<t t-if="! widget.options.disable_multiple_selection">
|
|
|
|
|
<button type="button" class="oe_selectcreatepopup-form-save-new">Save & New</button>
|
|
|
|
|
<button type="button" class="oe_selectcreatepopup-form-save">Save & Close</button>
|
|
|
|
|
</t>
|
|
|
|
|
<button type="button" class="oe_selectcreatepopup-form-close">Cancel</button>
|
2011-05-10 10:30:46 +00:00
|
|
|
|
</t>
|
2011-07-13 09:44:11 +00:00
|
|
|
|
<t t-name="FormOpenPopup">
|
|
|
|
|
<div t-att-id="element_id">
|
|
|
|
|
<div t-att-id="element_id + '_view_form'" style="width:100%"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</t>
|
|
|
|
|
<t t-name="FormOpenPopup.form.buttons">
|
|
|
|
|
<button type="button" class="oe_formopenpopup-form-save">Save</button>
|
2011-08-11 16:03:47 +00:00
|
|
|
|
<button type="button" class="oe_formopenpopup-form-close">Cancel</button>
|
2011-07-13 09:44:11 +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-07-22 12:52:14 +00:00
|
|
|
|
|
|
|
|
|
<t t-name="ExportView">
|
|
|
|
|
<a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
|
|
|
|
|
</t>
|
2011-08-26 15:04:42 +00:00
|
|
|
|
<table t-name="ExportTreeView" class="oe-export"
|
|
|
|
|
style="background-color: #F3F3F3;">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="3">
|
|
|
|
|
This wizard will export all data that matches the current search criteria to a CSV file.
|
|
|
|
|
You can export all data or only the fields that can be reimported after modification.
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="3">
|
|
|
|
|
<label for="import_compat">Export Type:</label>
|
|
|
|
|
<select id="import_compat" name="import_compat">
|
2011-08-31 11:28:54 +00:00
|
|
|
|
<option value="yes">Import Compatible Export</option>
|
|
|
|
|
<option value="">Export all Data</option>
|
2011-08-26 15:04:42 +00:00
|
|
|
|
</select>
|
2011-07-22 12:52:14 +00:00
|
|
|
|
|
2011-08-30 13:23:26 +00:00
|
|
|
|
<label for="export_format">Export Formats</label>
|
|
|
|
|
<select id="export_format" name="export_format"></select>
|
2011-08-26 15:04:42 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2011-07-22 12:52:14 +00:00
|
|
|
|
|
2011-08-26 15:04:42 +00:00
|
|
|
|
<tr>
|
|
|
|
|
<th>Available fields</th>
|
|
|
|
|
<th/>
|
|
|
|
|
<th>
|
|
|
|
|
Fields to export
|
|
|
|
|
<a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
|
|
|
|
|
<div id="savenewlist"></div>
|
|
|
|
|
<div id="ExistsExportList"></div>
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr style="height: 400px;">
|
|
|
|
|
<td class="oe_export_fields_selector_left">
|
|
|
|
|
<div id="left_field_panel">
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="oe_export_fields_selector_center">
|
|
|
|
|
<button id="add_field">Add</button>
|
|
|
|
|
<button id="remove_field">Remove</button>
|
|
|
|
|
<button id="remove_all_field">Remove All</button>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="oe_export_fields_selector_right">
|
|
|
|
|
<select name="fields_list" id="fields_list"
|
|
|
|
|
multiple="multiple"></select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2011-07-22 12:52:14 +00:00
|
|
|
|
|
2011-08-26 15:04:42 +00:00
|
|
|
|
<table t-name="ExportTreeView-Secondary"
|
|
|
|
|
id="field-tree-structure" class="oe_export_fields_selector_export"
|
|
|
|
|
cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr><th class="oe_export_tree_header"> Name </th></tr>
|
|
|
|
|
<t t-call="ExportTreeView-Secondary.children"/>
|
|
|
|
|
</table>
|
|
|
|
|
<tr t-name="ExportTreeView-Secondary.children"
|
|
|
|
|
t-foreach="fields" t-as="field"
|
|
|
|
|
t-att-id="'treerow-' + field.id" class="oe_export_row">
|
|
|
|
|
<td>
|
|
|
|
|
<table class="tree_grid" border="0">
|
|
|
|
|
<tr class="oe_export_row">
|
|
|
|
|
<t t-foreach="(field.id).split('/')" t-as="level" >
|
|
|
|
|
<t t-if="(field.id).split('/')[0] != level">
|
|
|
|
|
<td width="18">&nbsp;</td>
|
|
|
|
|
</t>
|
|
|
|
|
</t>
|
|
|
|
|
<td valign="top" align="left" style="cursor: pointer;" width="18">
|
2011-08-31 14:03:05 +00:00
|
|
|
|
<t t-if="field.children">
|
2011-08-26 15:04:42 +00:00
|
|
|
|
<t t-if="(field.id).split('/').length != 3">
|
2011-09-05 14:24:55 +00:00
|
|
|
|
<img t-att-id="'parentimg-' + field.id" src="/web/static/src/img/expand.gif" width="16" height="16" border="0"/>
|
2011-07-22 12:52:14 +00:00
|
|
|
|
</t>
|
2011-08-26 15:04:42 +00:00
|
|
|
|
</t>
|
|
|
|
|
</td>
|
|
|
|
|
<td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
|
|
|
|
|
<a t-att-id="'export-' + field.id" t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
|
|
|
|
|
<t t-esc="field.string"/>
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2011-07-22 12:52:14 +00:00
|
|
|
|
|
|
|
|
|
<t t-name="ExportNewList">
|
|
|
|
|
<tr>
|
|
|
|
|
<th><label>Save as:</label></th>
|
|
|
|
|
<td><input size="10" type="text" id="savelist_name"/></td>
|
2011-07-28 05:19:53 +00:00
|
|
|
|
<td><button class="oe_export_button_export" id="add_export_list">Ok</button></td>
|
2011-07-22 12:52:14 +00:00
|
|
|
|
</tr>
|
|
|
|
|
</t>
|
|
|
|
|
|
|
|
|
|
<t t-name="Exists.ExportList">
|
|
|
|
|
<tr><th align="right"><label >Saved exports:</label></th></tr>
|
|
|
|
|
<tr align="left">
|
|
|
|
|
<td>
|
|
|
|
|
<select id="saved_export_list" style="width: 100%;">
|
|
|
|
|
<option></option>
|
|
|
|
|
<t t-foreach="existing_exports" t-as="export">
|
|
|
|
|
<option t-att-value="export.id"><t t-esc="export.name"/></option>
|
|
|
|
|
</t>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
2011-07-28 05:19:53 +00:00
|
|
|
|
<td><button class="oe_export_button_export" id="delete_export_list">Delete</button></td>
|
2011-07-22 12:52:14 +00:00
|
|
|
|
</tr>
|
|
|
|
|
</t>
|
2011-08-19 13:10:07 +00:00
|
|
|
|
<t t-name="Change_Pwd">
|
|
|
|
|
<form name="change_password_form" class="oe_forms" method="POST">
|
2011-08-23 12:58:02 +00:00
|
|
|
|
<table align="center">
|
2011-08-19 13:10:07 +00:00
|
|
|
|
<tr>
|
|
|
|
|
<td><label for="old_pwd">Old Password:</label></td>
|
2011-08-23 12:58:02 +00:00
|
|
|
|
<td><input type="password" name="old_pwd"
|
2011-08-19 13:10:07 +00:00
|
|
|
|
minlength="1" autofocus="autofocus"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2011-08-23 12:58:02 +00:00
|
|
|
|
<td><label for="new_password">New Password:</label></td>
|
|
|
|
|
<td><input type="password" name="new_password"
|
|
|
|
|
minlength="1" autofocus="autofocus"/></td>
|
2011-08-19 13:10:07 +00:00
|
|
|
|
</tr>
|
2011-08-23 12:58:02 +00:00
|
|
|
|
<tr>
|
2011-08-19 13:10:07 +00:00
|
|
|
|
<td><label for="confirm_pwd">Confirm Password:</label></td>
|
2011-08-23 12:58:02 +00:00
|
|
|
|
<td><input type="password" name="confirm_pwd"
|
|
|
|
|
minlength="1"/></td>
|
2011-08-19 13:10:07 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" align="right"><input type="submit" value="Change Password"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
</t>
|
2011-03-02 21:09:42 +00:00
|
|
|
|
</templates>
|