<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!-- vim:fdl=1:
-->
<templates id="template" xml:space="preserve">
<t t-name="Notification">
    <div class="oe_notification" t-translation="off">
        <div id="oe_notification_default">
            <a class="ui-notify-cross ui-notify-close" href="#">x</a>
            <h1>#{title}</h1>
            <p>#{text}</p>
        </div>
        <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>
    </div>
</t>
<t t-name="Interface">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="main_table">
    <tr>
        <td colspan="2" valign="top">
            <div id="oe_header" class="header"></div>
            <div id="oe_menu" class="menu"></div>
        </td>
    </tr>
    <tr>
        <td colspan="2" valign="top" height="100%">
            <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
            <tr>
                <td valign="top" id="oe_secondary_menu" class="secondary_menu"></td>
                <td valign="top" class="oe-application-container">
                    <div id="oe_app" class="oe-application">
                    </div>
                </td>
            </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <div id="oe_footer" class="oe_footer">
                <p class="oe_footer_powered">Powered by <a href="http://www.openerp.com">OpenERP</a></p>
            </div>
        </td>
    </tr>
    </table>
</t>
<t t-name="Loading">
    <div id="oe_loading">
        <div class="loading">
        Loading...
        </div>
    </div>
</t>
<t t-name="Database.CreateDB">
    <form name="create_db_form" class="oe_forms" method="POST">
        <table width="100%">
            <tr>
                <td class="option_string">
                    CREATE DATABASE
                </td>
            </tr>
        </table>
        <table align="center" class="db_option_table">
            <tr>
                <td><label for="super_admin_pwd">Master password:</label></td>
                <td><input type="password" name="super_admin_pwd" class="required" value="<PASSWORD>"/></td>
            </tr>
            <tr>
                <td><label for="db_name">New database name:</label></td>
                <td><input type="text" name="db_name"
                           class="required" matches="^[a-zA-Z][a-zA-Z0-9_]+$"/></td>
            </tr>
            <tr>
                <td><label for="demo_data">Load Demonstration data:</label></td>
                <td><input type="checkbox" name="demo_data"/></td>
            </tr>
            <tr>
                <td><label for="db_lang">Default language:</label></td>
                <td>
                    <select name="db_lang" t-if="lang_list">
                        <t t-foreach="lang_list" t-as="lang">
                            <option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined"><t t-esc="lang[1]"/></option>
                        </t>
                    </select>
                </td>
            </tr>
            <tr>
                <td><label for="create_admin_pwd">Admin password:</label></td>
                <td><input type="password" name="create_admin_pwd" class="required"/></td>
            </tr>
            <tr>
                <td><label for="create_confirm_pwd">Confirm password:</label></td>
                <td><input type="password" name="create_confirm_pwd" class="required"
                           equalTo="input[name=create_admin_pwd]"/></td>
            </tr>
            <tr>
                <td colspan="2" align="right"><button class="oe_button">Create</button></td>
            </tr>
        </table>
    </form>
</t>
<t t-name="DropDB">
    <form name="drop_db_form" class="oe_forms" method="POST">
        <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>
                <td>
                    <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>
                    <input t-if="!db_list" name="drop_db" class="required"
                           type="text" autofocus="autofocus"/>
                </td>
            </tr>
            <tr>
                <td><label for="drop_password">Master Password:</label></td>
                <td><input type="password" name="drop_pwd" class="required"/></td>
            </tr>
            <tr>
                <td colspan="2" align="right"><button class="oe_button">Drop</button></td>
            </tr>
        </table>
    </form>
</t>
<t t-name="BackupDB">
    <form name="backup_db_form" class="oe_forms" method="POST" target="backup-target"
          action="/web/database/backup">
        <input type="hidden" name="token"/>
        <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>
                    <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>
                    <input t-if="!db_list" name="drop_db" class="required"
                           type="text" autofocus="autofocus"/>
                </td>
            </tr>
            <tr>
                <td><label for="backup_pwd">Master Password:</label></td>
                <td><input type="password" name="backup_pwd" class="required"/></td>
            </tr>
            <tr>
                <td colspan="2" align="right"><button class="oe_button">Backup</button></td>
            </tr>
        </table>
    </form>
</t>
<t t-name="RestoreDB">
    <form name="restore_db_form" class="oe_forms" method="POST">
        <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>
                <td><input type="file" name="db_file" class="required"
                         autofocus="autofocus"/></td>
            </tr>
            <tr>
                <td><label for="restore_pwd">Master Password:</label></td>
                <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"><button class="oe_button">Restore</button></td>
            </tr>
        </table>
    </form>
</t>
<t t-name="Change_DB_Pwd">
    <form name="change_pwd_form" class="oe_forms" method="POST">
        <table width="100%">
            <tr>
                <td class="option_string">
                    CHANGE MASTER PASSWORD
                </td>
            </tr>
        </table>
        <table align="center" class="db_option_table">
            <tr>
                <td><label for="old_pwd">Master password:</label></td>
                <td><input type="password" name="old_pwd" class="required"
                           minlength="1" autofocus="autofocus"/></td>
            </tr>
            <tr>
            <td><label for="new_pwd">New master password:</label></td>
       	    <td><input type="password" name="new_pwd" class="required"
                       minlength="1"/></td>
            </tr>
   	    <tr>
                <td><label for="confirm_pwd">Confirm new master password:</label></td>
                <td><input type="password" name="confirm_pwd" class="required"
                           equalTo="input[name=new_pwd]" minlength="1"/></td>
            </tr>
            <tr>
                <td colspan="2" align="right"><button class="oe_button">Change Password</button></td>
            </tr>
        </table>
    </form>
</t>

<t t-name="CrashManagerWarning">
    <table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
    <tr>
        <td><img t-att-src='_s + "/web/static/src/img/warning.png"' class="oe-dialog-icon"/></td>
        <td>
            <p>
                <t t-js="d">
                    var message = d.message ? d.message : d.error.data.fault_code;
                    d.html_error = context.engine.tools.html_escape(message)
                        .replace(/\n/g, '<br/>');
                </t>
                <t t-raw="html_error"/>
            </p>
        </td>
    </tr>
    </table>
</t>
<t t-name="CrashManagerError">
    <t t-if="!session.openerp_entreprise">
        <span>Your version of OpenERP is unsupported. Support &amp; maintenance services are available here: <a href="http://www.openerp.com/support-or-publisher-warranty-contract" target="_blank">OpenERP Entreprise</a>.</span>
    </t>
    <t t-if="session.openerp_entreprise">
        <div class="oe_error_send">
            <div>
                <div class="oe_centeralign"><b>OpenERP Enterprise Contract.</b></div>
                <div><br/>Your report will be sent to the OpenERP Enterprise team.<br/></div><br/>
                <div>
                    <label>Summary:</label><br/>
                    <input id="issuename" type="text" class="oe_fielddiv"/>
                </div><br/><br/>
                <div>
                    <label>Description:</label><br/>
                    <textarea id="explanation" rows="6"></textarea>
                </div><br/><br/>
                <div>
                    <label>What you did:</label><br/>
                    <textarea id="remark" rows="6" ></textarea>
                </div>
            </div>
        </div><br/>
    </t>
    <div class="oe_error_detail">
        <pre><t t-esc="error.message"/></pre>
        <hr/>
        <pre><t t-esc="error.data.debug"/></pre>
    </div>
</t>

<t t-name="Login_dblist">
    <select name="db">
        <t t-foreach="db_list" t-as="db">
            <t t-if="selected_db === db">
                <option t-att-value="db" selected="true">
                    <t t-esc="db"/></option>
            </t>
            <t t-if="selected_db !== db">
                <option t-att-value="db"><t t-esc="db"/></option>
            </t>
        </t>
    </select>
</t>

<t t-name="Login">
  <div class="login">
    <div class="bottom"> </div>
    <div class="login_error_message">Invalid username or password</div>
    <div class="pane">
      <div id="logo"><img src='/web/static/src/img/logo2.png'/></div>
      <form action="" method="post">
        <div class="dbpane" >
          Database:
          <input name="db" t-att-value="widget.selected_db || ''"/>
        </div>
        <ul>
          <li>Username</li>
          <li><input type="text" name="login" t-att-value="widget.selected_login || ''" autofocus="autofocus"/></li>
          <li>Password</li>
          <li><input type="password" name="password" t-att-value="widget.selected_password || ''"/></li>
          <li><button name="submit">Log in</button></li>
        </ul>
      </form>
      <div class="footer">
        <a href="#" id="oe-db-config">Manage Databases</a> |
        <a href="http://www.openerp.com">Powered by <span class="openerp">OpenERP</span></a>
      </div>
    </div>
  </div>
</t>
<t t-name="DatabaseManager">
    <div class="oe-database-manager">
        <div class="database">
            <a class="company_logo_link" href="/?">
                <div class="company_logo"></div>
            </a>
            <ul class="db_options">
                <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>
        </div>
        <div id="oe_db_options" class="oe_db_options"></div>
    </div>
</t>
<t t-name="Header">
    <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">
        <t t-esc="user.company_id[1]"/> (<t t-esc="widget.session.db"/>)<br/>
        <small class="username"><t t-esc="user.name"/></small>
    </h1>
    <div class="header_corner">
        <ul class="block">
            <li>
                <a t-att-href="'/' + widget.qs" title="Home" class="home"><img t-att-src='_s + "/web/static/src/img/header-home.png"' width="16" height="16" border="0"/></a>
            </li>
            <li class="preferences">
                <a href="javascript:void(0)" title="Preferences" class="preferences"><img t-att-src='_s + "/web/static/src/img/header-preferences.png"' width="16" height="16" border="0"/></a>
            </li>
            <li>
                <a href="javascript:void(0)" title="About" class="about"><img t-att-src='_s + "/web/static/src/img/header-about.png"' width="16" height="16" border="0"/></a>
            </li>
        </ul>
        <div class="block">
            <a href="javascript:void(0)" class="logout">LOGOUT</a>
        </div>

    </div>
    <div class="oe-shortcuts"> </div>
</t>
<ul t-name="Shortcuts">
    <li t-foreach="shortcuts" t-as="shortcut"
            t-att-data-id="shortcut.res_id"
            t-att-data-shortcut-id="shortcut.id"
        ><t t-esc="shortcut.name"/></li>
</ul>
<t t-name="Menu">
    <table align="center">
    <tr>
        <td t-foreach="widget.data.data.children" t-as="menu">
            <a href="#" t-att-data-menu="menu.id">
                <t t-esc="menu.name"/>
            </a>
        </td>
    </tr>
    </table>
</t>
<t t-name="Menu.secondary">
    <div t-attf-class="oe_toggle_secondary_menu">
        <span class="oe_menu_fold" title="Fold menu"><t t-raw="'&amp;laquo;'"/></span>
        <span class="oe_menu_unfold" title="Unfold menu"><t t-raw="'&amp;raquo;'"/></span>
    </div>
    <div t-foreach="widget.data.data.children" t-as="menu" style="display: none" class="oe_secondary_menu" t-att-data-menu-parent="menu.id">
        <t t-foreach="menu.children" t-as="menu">
            <t t-set="classname" t-translation="off">oe_secondary_menu_item</t>
            <t t-set="level" t-value="0"/>
            <t t-call="Menu.secondary.children"/>
        </t>
    </div>
</t>
<t t-name="Menu.secondary.children">
    <t t-set="level" t-value="level + 1"/>
    <a href="#" t-att-id="menu.children.length ? 'menu_' + menu.id : undefined"
        t-att-class="classname + (menu.children.length ? ' submenu' : ' leaf') + (menu_first and level == 1 ? ' opened' : '')"
        t-att-data-menu="menu.children.length ? undefined : menu.id">
        <span t-attf-style="padding-left: #{(level - 2) * 20}px"> <t t-esc="menu.name"/></span>
    </a>
    <div t-attf-class="oe_secondary_submenu" t-if="menu.children.length" t-att-style="menu_first and level == 1 ? undefined : 'display: none'">
        <t t-foreach="menu.children" t-as="menu">
            <t t-set="classname" t-translation="off">oe_secondary_submenu_item</t>
            <t t-call="Menu.secondary.children"/>
        </t>
    </div>
</t>
<t t-name="ViewManager">
    <table class="view-manager-main-table" cellpadding="0" cellspacing="0">
    <tbody>
    <tr>
        <td class="view-manager-main-content">
            <div class="oe-view-manager-header">
                <h2 class="oe_view_title" t-if="self.flags.display_title !== false">
                    <span class="oe_view_title_text"><t t-esc="self.display_title()"/></span>
                </h2>
                <div class="oe_vm_switch">
                    <t t-if="views.length != 1" t-foreach="views" t-as="view">

                        <button type="button" t-attf-class="oe_vm_switch_#{view.view_type}" t-att-data-view-type="view.view_type" t-att-title="view.label || view.view_type">
                            <span><t t-esc="view.label || view.view_type"/></span>
                        </button>
                    </t>
                </div>
            </div>
            <div t-attf-id="#{prefix}_search" t-opentag="true"/>
            <t t-foreach="views" t-as="view">
                <div t-attf-id="#{prefix}_view_#{view.view_type}"/>
            </t>
        </td>
        <td class="view-manager-main-sidebar" height="100%">
            <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>
        </td>
    </tr>
    </tbody>
    </table>
</t>

<t t-extend="ViewManager" t-name="ViewManagerAction">
    <t t-jquery=".view-manager-main-table tbody" t-operation="prepend">
        <tr>
            <td class="oe_view_manager_menu_tips" colspan="2">
                <blockquote t-if="self.action.help and !self.flags.low_profile
                                 and !(self.action.id in self.session.hidden_menutips)">
                    <p><t t-esc="self.action.help"/></p>
                    <div>
                        <button type="button" name="hide">Hide this tip</button>
                        <button type="button" name="disable">Disable all tips</button>
                    </div>
                </blockquote>
            </td>
        </tr>
    </t>
    <t t-jquery="h2.oe_view_title" t-operation="prepend">
        <a t-if="self.flags.display_title !== false" class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
            href="javascript: void(0)"> </a>
    </t>
    <t t-jquery="h2.oe_view_title" t-operation="after">
        <select t-if="self.session.debug" class="oe_debug_view"/>
    </t>
    <t t-jquery=".oe-view-manager-header" t-operation="after">
        <div class="oe-view-manager-logs oe-folded">
            <ul></ul>
            <a class="oe-more-logs" href="#">More…</a>
            <a class="oe-remove-everything ui-icon ui-icon-closethick"/>
        </div>
    </t>
</t>
<t t-name="ViewManagerDebug">
    <option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
    <option t-if="_.indexOf(['form', 'page'], view_manager.active_view) gt -1" value="perm_read" data-views="form,page">View Log (perm_read)</option>
    <option value="fields">View Fields</option>
    <option value="fvg">Fields View Get</option>
    <t t-if="view_manager.session.uid === 1">
        <option value="manage_views">Manage Views</option>
        <option value="edit" data-model="ir.ui.view" t-att-data-id="view.fields_view.view_id">Edit <t t-esc="_.str.capitalize(view.fields_view.type)"/>View</option>
        <option t-if="view_manager.searchview" value="edit" data-model="ir.ui.view" t-att-data-id="view_manager.searchview.view_id">Edit SearchView</option>
        <option t-if="view_manager.action" value="edit" t-att-data-model="view_manager.action.type" t-att-data-id="view_manager.action.id">Edit Action</option>
        <option value="edit_workflow">Edit Workflow</option>
    </t>
</t>
<t t-name="ViewManagerDebugViewLog">
    <div class="oe_debug_view_log">
        <label>ID:</label>
        <span><t t-esc="perm.id"/></span>

        <label>XML ID:</label>
        <span><t t-esc="perm.xmlid"/></span>

        <label>Creation User:</label>
        <span><t t-esc="format(perm.create_uid, { 'type' : 'many2one' }, '/')"/></span>

        <label>Creation Date:</label>
        <span><t t-esc="format(perm.create_date, { 'type' : 'datetime' }, '/')"/></span>

        <label>Latest Modification by:</label>
        <span><t t-esc="format(perm.write_uid, { 'type' : 'many2one' }, '/')"/></span>

        <label>Latest Modification Date:</label>
        <span><t t-esc="format(perm.write_date, { 'type' : 'datetime' }, '/')"/></span>
    </div>
</t>
<t t-extend="ViewManager" t-name="One2Many.viewmanager">
    <t t-jquery="span.oe_view_title_text" t-operation="replace"/>

    <t t-jquery=".oe-view-manager-header">
        this.attr('t-if', 'views.length != 1');
    </t>
</t>

<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">
    <div t-att-id="section_id" t-att-class="classname">
        <h2><t t-esc="name"/></h2>
    </div>
</t>
<t t-name="Sidebar.section.items">
    <li t-foreach="items" t-as="item" t-att-class="item.classname">
        <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
            <t t-esc="item.label"/>
        </a>
    </li>
</t>

<t t-name="TranslateDialog">
    <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" t-att-data-field="field.name">
        <td class="oe_form_frame_cell" width="1%" nowrap="nowrap">
            <label class="oe_label"><t t-esc="field.string"/>:</label>
        </td>
        <td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell">
            <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>
        </td>
    </tr>
    </table>
</t>
<t t-name="TreeView">
    <select t-if="toolbar" style="width: 30%">
    </select>
    <table class="oe-treeview-table">
        <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>
</t>
<tr t-name="TreeView.rows"
        t-foreach="records" t-as="record"
        t-att-id="'treerow_' + record.id"
        t-att-data-id="record.id" t-att-data-level="level + 1">
    <t t-set="children" t-value="record[children_field]"/>
    <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
    <t t-set="rank" t-value="'oe-treeview-first'"/>
    <t t-set="style" t-value="'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;'"/>

    <td t-foreach="fields_view" t-as="field"
        t-if="!field.attrs.modifiers.tree_invisible"
        t-att-data-id="record.id"
        t-att-style="color_for(record) + style "
        t-attf-class="#{class} #{rank} #{(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') ? 'oe-number' : ''}">

        <span t-if="!field.attrs.modifiers.invisible" >
            <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
        </span>

        <t t-set="class" t-value="'treeview-td'"/>
        <t t-set="rank" t-value="''"/>
        <t t-set="style" t-value="''"/>
    </td>
</tr>

<t t-name="ViewPager">
    <button class="oe_button oe_button_pager" type="button" data-pager-action="first">
        <img t-att-src='_s + "/web/static/src/img/pager_first.png"'/>
    </button>
    <button class="oe_button oe_button_pager" type="button" data-pager-action="previous">
        <img t-att-src='_s + "/web/static/src/img/pager_previous.png"'/>
    </button>

    <t t-raw="__content__"/>

    <button class="oe_button oe_button_pager" type="button" data-pager-action="next">
        <img t-att-src='_s + "/web/static/src/img/pager_next.png"'/>
    </button>
    <button class="oe_button oe_button_pager" type="button" data-pager-action="last">
        <img t-att-src='_s + "/web/static/src/img/pager_last.png"'/>
    </button>
</t>

<table t-name="ListView" class="oe-listview-content">
    <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0) + (options.isClarkGable ? 1 : 0)"/>
    <thead class="ui-widget-header">
        <tr t-if="options.action_buttons !== false or options.pager !== false">
            <th t-att-colspan="columns_count">
                <table>
                    <tr>
                        <td t-if="!no_leaf and options.action_buttons !== false" class="oe-actions">
                            <button type="button" class="oe_button oe-list-add"
                                    t-if="options.addable">
                                <t t-esc="options.addable"/>
                            </button>
                            <button type="button" class="oe_button oe-list-delete"
                                    t-if="options.selectable and options.deletable">
                                Delete
                            </button>
                        </td>
                        <t t-call="Listview.navigation.button"/>
                    </tr>
                </table>
            </th>
        </tr>
        <tr t-if="options.header" class="oe-listview-header-columns">
            <t t-foreach="columns" t-as="column">
                <th t-if="column.meta">
                    <t t-esc="column.string"/>
                </th>
            </t>
            <th t-if="options.selectable" width="1"  >
                <input type="checkbox" class="all-record-selector"/> </th>
            <th t-if="options.isClarkGable" width="1"> </th>
            <t t-foreach="columns" t-as="column">
                <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
                    t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
                    <t t-if="column.tag !== 'button'"
                        ><t t-esc="column.string"/></t>
                </th>
            </t>
            <th t-if="options.deletable" width="1"/>
        </tr>
    </thead>
    <tfoot class="ui-widget-header">
        <tr>
            <td t-if="options.selectable"/>
            <td t-if="options.isClarkGable"/>
            <td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
                t-att-data-field="column.id" t-att-title="column.label">
            </td>
            <td t-if="options.deletable"/>
        </tr>
        <tr>
            <t t-call="Listview.navigation.button"/>
        </tr>
    </tfoot>
</table>
<t t-extend="ListView" t-name="One2Many.listview">
    <t t-jquery="thead.ui-widget-header > tr:first">
        this.removeAttr('t-if');
    </t>

    <t t-jquery="tfoot &gt; tr:last-child" t-operation="replace"/>

    <t t-jquery="td.oe-actions">
        this.removeAttr('t-if');
    </t>
    <t t-jquery="td.oe-actions" t-operation="prepend">
        <h3 class="oe_view_title"><t t-esc="fields_view.arch.attrs.string"/></h3>
    </t>
</t>
<th t-name="Listview.navigation.button" t-if="!no_leaf and options.pager !== false"
        class="oe-list-pager" t-att-colspan="columns_count">
    <t t-call="ViewPager">
        <span class="oe-pager-state">
        </span>
    </t>
</th>
<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>
</t>
<tr t-name="ListView.row" t-att-class="row_parity"
        t-att-data-id="record.get('id')"
        t-att-style="view.color_for(record)">
    <t t-foreach="columns" t-as="column">
        <td t-if="column.meta">

        </td>
    </t>
    <th t-if="options.selectable" class="oe-record-selector" width="1">
        <t t-set="checked" t-value="options.select_view_id == record.get('id') ? 'checked' : null"/>
        <input t-if="options.radio" type="radio" name="radiogroup" t-att-checked="checked"/>
        <input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/>
    </th>
    <th t-if="options.isClarkGable" class="oe-record-edit-link" width="1">
        <img src="/web/static/src/img/pencil.gif" width="12" height="12" class="oe-record-edit-link-img"/>
    </th>
    <t t-foreach="columns" t-as="column">
        <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
        <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
            t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')
                         + (column.tag === 'button' ? ' oe-button' : '')"
            t-att-data-field="column.id">
            <t t-raw="render_cell(record, column)"/>
        </td>
    </t>
    <td t-if="options.deletable" class='oe-record-delete' width="1">
        <button type="button" name="delete"></button>
    </td>
</tr>
<t t-name="ListView.row.form">
    <t t-raw="frame.render()"/>
</t>

<t t-name="FormView">
    <div class="oe_form_header">
        <div class="oe_form_buttons" t-if="widget.options.action_buttons !== false">
            <button type="button" class="oe_button oe_form_button_save">Save</button>
            <button type="button" class="oe_button oe_form_button_cancel">Cancel</button>
        </div>
        <div class="oe_form_pager" t-if="widget.options.pager !== false">
            <t t-call="ViewPager">
                <span class="oe_pager_index">0</span><span class="oe_pager_separator"> / </span><span class="oe_pager_count">0</span>
            </t>
        </div>
    </div>
    <t t-raw="frame.render()"/>
</t>
<t t-name="One2Many.formview" t-extend="FormView">
    <t t-jquery=".oe_form_buttons" t-operation="inner">
        <button type="button" class="oe_button oe_form_button_create">Add</button>
    </t>
</t>
<t t-name="PageView" t-extend="FormView">
    <t t-jquery=".oe_form_buttons" t-operation="inner">
        <button type="button" class="oe_button oe_form_button_edit">Edit</button>
        <button type="button" class="oe_button oe_form_button_create">Create</button>
        <button type="button" class="oe_button oe_form_button_duplicate">Duplicate</button>
        <button type="button" class="oe_button oe_form_button_delete">Delete</button>
    </t>
</t>
<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"
                method="post" enctype="multipart/form-data" action="/web/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="view.dataset.model"/>
                <input type="hidden" name="id" t-att-value="view.datarecord.id"/>
                <button class="oe_button" type="button">
                    <img t-att-src='_s + "/web/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="view.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"/>
        </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="_s + '/web/binary/saveas?session_id='
                + session.session_id + '&amp;model=ir.attachment&amp;id=' + attachment.id
                + '&amp;field=datas&amp;filename_field=name&amp;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 t-att-src='_s + "/web/static/src/img/attachments-close.png"' width="15" height="15" border="0"/>
            </a>
        </li>
    </ul>
</t>
<form t-name="FormView.set_default" class="oe_forms oe_frame">
    <t t-set="args" t-value="widget.dialog_options.args"/>
    <table style="width: 100%">
        <tr>
            <td>
                <label for="formview_default_fields"
                       class="oe_label oe_align_right">
                    Default:
                </label>
            </td>
            <td class="required">
                <select id="formview_default_fields">
                    <option value=""/>
                    <option t-foreach="args.fields" t-as="field"
                            t-att-value="field.name">
                        <t t-esc="field.string"/> = <t t-esc="field.displayed"/>
                    </option>
                </select>
            </td>
        </tr>
        <tr t-if="args.conditions.length">
            <td>
                <label for="formview_default_conditions"
                       class="oe_label oe_align_right">
                    Condition:
                </label>
            </td>
            <td>
                <select id="formview_default_conditions">
                    <option value=""/>
                    <option t-foreach="args.conditions" t-as="cond"
                            t-att-value="cond.name + '=' + cond.value">
                        <t t-esc="cond.string"/>=<t t-esc="cond.displayed"/>
                    </option>
                </select>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="radio" id="formview_default_self"
                       value="self" name="scope" checked="checked"/>
                <label for="formview_default_self" class="oe_label"
                       style="display: inline;">
                    Only you
                </label>
                <br/>
                <input type="radio" id="formview_default_all"
                       value="all" name="scope"/>
                <label for="formview_default_all" class="oe_label"
                       style="display: inline;">
                    All users
                </label>
            </td>
        </tr>
    </table>
</form>
<t t-name="Widget">
    Unhandled widget
    <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
</t>
<t t-name="WidgetFrame">
    <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
    <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"
                t-att-valign="td.table ? 'top' : undefined"
                t-attf-class="oe_form_frame_cell #{td.classname} #{td.element_class}"
            >
                <t t-raw="td.render()"/>
            </td>
        </t>
    </tr>
    </table>
</t>
<t t-name="WidgetFrame.readonly" t-extend="WidgetFrame">
    <t t-jquery="&gt;table">
        this.attr('class', this.attr('class')+' oe_form_readonly');
    </t>
</t>
<t t-name="WidgetGroup">
    <t t-if="widget.string">
    <fieldset class="oe_group_box">
        <legend><t t-esc="widget.string"/></legend>
        <t t-call="WidgetFrame"/>
    </fieldset>
    </t>
    <t t-if="!widget.string">
        <t t-call="WidgetFrame"/>
    </t>
</t>
<t t-name="WidgetNotebook">
    <ul>
        <li t-foreach="widget.pages" t-as="page">
            <a href="#">
                <t t-esc="page.string"/>
            </a>
        </li>
    </ul>
    <t t-foreach="widget.pages" t-as="page">
        <t t-raw="page.render()"/>
    </t>
</t>
<t t-name="WidgetNotebook.tooltip">
    <t t-foreach="widget.pages" t-as="page">
        <div class="oe_tooltip_string">
            Notebook Page "<t t-esc="page.string"/>"
        </div>
        <ul class="oe_tooltip_technical">
            <li data-item="modifiers">
                <span class="oe_tooltip_technical_title">Modifiers:</span>
                <t t-esc="page.node.attrs.modifiers"/>
            </li>
        </ul>
    </t>
</t>
<t t-name="WidgetNotebookPage">
    <div>
        <t t-call="WidgetFrame"/>
    </div>
</t>
<t t-name="WidgetSeparator">
    <div t-if="widget.orientation !== 'vertical'" t-att-class="'separator ' + widget.orientation">
        <t t-esc="widget.string"/>
    </div>
</t>
<t t-name="WidgetLabel">
    <label t-att-for="widget.element_id"
           t-attf-class="oe_label#{widget.help ? '_help' : ''} oe_align_#{widget.align}">
        <t t-esc="widget.string"/>
        <span t-if="widget.help">?</span>
        <t t-if="widget.string and widget.node.tag != 'label'">:</t>
    </label>
</t>
<t t-name="WidgetLabel.tooltip">
    <div class="oe_tooltip_string" t-if="widget.string">
        <t t-esc="widget.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
    </div>
    <p t-if="widget.help" class="oe_tooltip_help"><t t-esc="widget.help"/></p>
    <ul t-if="debug" class="oe_tooltip_technical">
        <li data-item="field" t-if="widget.name">
            <span class="oe_tooltip_technical_title">Field:</span>
            <t t-esc="widget.name"/>
        </li>
        <li data-item="object" t-if="widget.view and widget.view.fields_view">
            <span class="oe_tooltip_technical_title">Object:</span>
            <t t-esc="widget.view.fields_view.model"/>
        </li>
        <li data-item="type" t-if="widget.field">
            <span class="oe_tooltip_technical_title">Type:</span>
            <t t-esc="widget.field.type"/>
        </li>
        <li t-if="widget.node.attrs.widget" data-item="widget">
            <span class="oe_tooltip_technical_title">Widget:</span>
            <t t-esc="widget.node.attrs.widget"/>
        </li>
        <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
            <span class="oe_tooltip_technical_title">Size:</span>
            <t t-esc="widget.node.attrs.size || widget.field.size"/>
        </li>
        <li t-if="widget.node.attrs.context" data-item="context">
            <span class="oe_tooltip_technical_title">Context:</span>
            <t t-esc="widget.node.attrs.context_string"/>
        </li>
        <li t-if="widget.node.attrs.domain" data-item="domain">
            <span class="oe_tooltip_technical_title">Domain:</span>
            <t t-esc="widget.node.attrs.domain_string"/>
        </li>
        <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
            <span class="oe_tooltip_technical_title">Modifiers:</span>
            <t t-esc="widget.node.attrs.modifiers"/>
        </li>
        <li t-if="widget.field and widget.field.change_default" data-item="change_default">
            <span class="oe_tooltip_technical_title">Change default:</span>
            Yes
        </li>
        <li t-if="widget.node.attrs.on_change" data-item="on_change">
            <span class="oe_tooltip_technical_title">On change:</span>
            <t t-esc="widget.node.attrs.on_change"/>
        </li>
        <li t-if="widget.field and widget.field.relation" data-item="relation">
            <span class="oe_tooltip_technical_title">Relation:</span>
            <t t-esc="widget.field.relation"/>
        </li>
        <li t-if="widget.field and widget.field.selection" data-item="selection">
            <span class="oe_tooltip_technical_title">Selection:</span>
            <ul>
                <li t-foreach="widget.field.selection" t-as="option">
                    [<t t-esc="option[0]"/>]
                    <t t-if="option[1]"> - </t>
                    <t t-esc="option[1]"/>
                </li>
            </ul>
        </li>
    </ul>
</t>
<t t-name="WidgetParagraph">
    <p t-attf-class="oe_form_paragraph oe_align_#{widget.align} #{widget.multilines ? 'oe_multilines' : ''}"><t t-esc="widget.string"/></p>
</t>
<t t-name="FieldChar">
    <input t-att-type="widget.password ? 'password' : 'text'" size="1"
        t-att-name="widget.name"
        t-att-id="widget.element_id"
        t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}"
        style="width: 100%"
    /><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/>
</t>
<t t-name="FieldChar.readonly">
    <div
        t-att-id="widget.element_id"
        t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}">
    </div>
</t>
<t t-name="FieldURI.readonly">
    <div>
        <a href="#" class="oe_form_uri">#</a>
    </div>
</t>
<t t-name="FieldEmail">
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr><commit_msg>[FIX] don't display a '#' in empty URI fields<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!-- vim:fdl=1:
-->
<templates id="template" xml:space="preserve">
<t t-name="Notification">
    <div class="oe_notification" t-translation="off">
        <div id="oe_notification_default">
            <a class="ui-notify-cross ui-notify-close" href="#">x</a>
            <h1>#{title}</h1>
            <p>#{text}</p>
        </div>
        <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>
    </div>
</t>
<t t-name="Interface">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="main_table">
    <tr>
        <td colspan="2" valign="top">
            <div id="oe_header" class="header"></div>
            <div id="oe_menu" class="menu"></div>
        </td>
    </tr>
    <tr>
        <td colspan="2" valign="top" height="100%">
            <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
            <tr>
                <td valign="top" id="oe_secondary_menu" class="secondary_menu"></td>
                <td valign="top" class="oe-application-container">
                    <div id="oe_app" class="oe-application">
                    </div>
                </td>
            </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <div id="oe_footer" class="oe_footer">
                <p class="oe_footer_powered">Powered by <a href="http://www.openerp.com">OpenERP</a></p>
            </div>
        </td>
    </tr>
    </table>
</t>
<t t-name="Loading">
    <div id="oe_loading">
        <div class="loading">
        Loading...
        </div>
    </div>
</t>
<t t-name="Database.CreateDB">
    <form name="create_db_form" class="oe_forms" method="POST">
        <table width="100%">
            <tr>
                <td class="option_string">
                    CREATE DATABASE
                </td>
            </tr>
        </table>
        <table align="center" class="db_option_table">
            <tr>
                <td><label for="super_admin_pwd">Master password:</label></td>
                <td><input type="password" name="super_admin_pwd" class="required" value="<PASSWORD>"/></td>
            </tr>
            <tr>
                <td><label for="db_name">New database name:</label></td>
                <td><input type="text" name="db_name"
                           class="required" matches="^[a-zA-Z][a-zA-Z0-9_]+$"/></td>
            </tr>
            <tr>
                <td><label for="demo_data">Load Demonstration data:</label></td>
                <td><input type="checkbox" name="demo_data"/></td>
            </tr>
            <tr>
                <td><label for="db_lang">Default language:</label></td>
                <td>
                    <select name="db_lang" t-if="lang_list">
                        <t t-foreach="lang_list" t-as="lang">
                            <option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined"><t t-esc="lang[1]"/></option>
                        </t>
                    </select>
                </td>
            </tr>
            <tr>
                <td><label for="create_admin_pwd">Admin password:</label></td>
                <td><input type="password" name="create_admin_pwd" class="required"/></td>
            </tr>
            <tr>
                <td><label for="create_confirm_pwd">Confirm password:</label></td>
                <td><input type="password" name="create_confirm_pwd" class="required"
                           equalTo="input[name=create_admin_pwd]"/></td>
            </tr>
            <tr>
                <td colspan="2" align="right"><button class="oe_button">Create</button></td>
            </tr>
        </table>
    </form>
</t>
<t t-name="DropDB">
    <form name="drop_db_form" class="oe_forms" method="POST">
        <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>
                <td>
                    <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>
                    <input t-if="!db_list" name="drop_db" class="required"
                           type="text" autofocus="autofocus"/>
                </td>
            </tr>
            <tr>
                <td><label for="drop_password">Master Password:</label></td>
                <td><input type="password" name="drop_pwd" class="required"/></td>
            </tr>
            <tr>
                <td colspan="2" align="right"><button class="oe_button">Drop</button></td>
            </tr>
        </table>
    </form>
</t>
<t t-name="BackupDB">
    <form name="backup_db_form" class="oe_forms" method="POST" target="backup-target"
          action="/web/database/backup">
        <input type="hidden" name="token"/>
        <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>
                    <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>
                    <input t-if="!db_list" name="drop_db" class="required"
                           type="text" autofocus="autofocus"/>
                </td>
            </tr>
            <tr>
                <td><label for="backup_pwd">Master Password:</label></td>
                <td><input type="password" name="backup_pwd" class="required"/></td>
            </tr>
            <tr>
                <td colspan="2" align="right"><button class="oe_button">Backup</button></td>
            </tr>
        </table>
    </form>
</t>
<t t-name="RestoreDB">
    <form name="restore_db_form" class="oe_forms" method="POST">
        <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>
                <td><input type="file" name="db_file" class="required"
                         autofocus="autofocus"/></td>
            </tr>
            <tr>
                <td><label for="restore_pwd">Master Password:</label></td>
                <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"><button class="oe_button">Restore</button></td>
            </tr>
        </table>
    </form>
</t>
<t t-name="Change_DB_Pwd">
    <form name="change_pwd_form" class="oe_forms" method="POST">
        <table width="100%">
            <tr>
                <td class="option_string">
                    CHANGE MASTER PASSWORD
                </td>
            </tr>
        </table>
        <table align="center" class="db_option_table">
            <tr>
                <td><label for="old_pwd">Master password:</label></td>
                <td><input type="password" name="old_pwd" class="required"
                           minlength="1" autofocus="autofocus"/></td>
            </tr>
            <tr>
            <td><label for="new_pwd">New master password:</label></td>
       	    <td><input type="password" name="new_pwd" class="required"
                       minlength="1"/></td>
            </tr>
   	    <tr>
                <td><label for="confirm_pwd">Confirm new master password:</label></td>
                <td><input type="password" name="confirm_pwd" class="required"
                           equalTo="input[name=new_pwd]" minlength="1"/></td>
            </tr>
            <tr>
                <td colspan="2" align="right"><button class="oe_button">Change Password</button></td>
            </tr>
        </table>
    </form>
</t>

<t t-name="CrashManagerWarning">
    <table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
    <tr>
        <td><img t-att-src='_s + "/web/static/src/img/warning.png"' class="oe-dialog-icon"/></td>
        <td>
            <p>
                <t t-js="d">
                    var message = d.message ? d.message : d.error.data.fault_code;
                    d.html_error = context.engine.tools.html_escape(message)
                        .replace(/\n/g, '<br/>');
                </t>
                <t t-raw="html_error"/>
            </p>
        </td>
    </tr>
    </table>
</t>
<t t-name="CrashManagerError">
    <t t-if="!session.openerp_entreprise">
        <span>Your version of OpenERP is unsupported. Support &amp; maintenance services are available here: <a href="http://www.openerp.com/support-or-publisher-warranty-contract" target="_blank">OpenERP Entreprise</a>.</span>
    </t>
    <t t-if="session.openerp_entreprise">
        <div class="oe_error_send">
            <div>
                <div class="oe_centeralign"><b>OpenERP Enterprise Contract.</b></div>
                <div><br/>Your report will be sent to the OpenERP Enterprise team.<br/></div><br/>
                <div>
                    <label>Summary:</label><br/>
                    <input id="issuename" type="text" class="oe_fielddiv"/>
                </div><br/><br/>
                <div>
                    <label>Description:</label><br/>
                    <textarea id="explanation" rows="6"></textarea>
                </div><br/><br/>
                <div>
                    <label>What you did:</label><br/>
                    <textarea id="remark" rows="6" ></textarea>
                </div>
            </div>
        </div><br/>
    </t>
    <div class="oe_error_detail">
        <pre><t t-esc="error.message"/></pre>
        <hr/>
        <pre><t t-esc="error.data.debug"/></pre>
    </div>
</t>

<t t-name="Login_dblist">
    <select name="db">
        <t t-foreach="db_list" t-as="db">
            <t t-if="selected_db === db">
                <option t-att-value="db" selected="true">
                    <t t-esc="db"/></option>
            </t>
            <t t-if="selected_db !== db">
                <option t-att-value="db"><t t-esc="db"/></option>
            </t>
        </t>
    </select>
</t>

<t t-name="Login">
  <div class="login">
    <div class="bottom"> </div>
    <div class="login_error_message">Invalid username or password</div>
    <div class="pane">
      <div id="logo"><img src='/web/static/src/img/logo2.png'/></div>
      <form action="" method="post">
        <div class="dbpane" >
          Database:
          <input name="db" t-att-value="widget.selected_db || ''"/>
        </div>
        <ul>
          <li>Username</li>
          <li><input type="text" name="login" t-att-value="widget.selected_login || ''" autofocus="autofocus"/></li>
          <li>Password</li>
          <li><input type="password" name="password" t-att-value="widget.selected_password || ''"/></li>
          <li><button name="submit">Log in</button></li>
        </ul>
      </form>
      <div class="footer">
        <a href="#" id="oe-db-config">Manage Databases</a> |
        <a href="http://www.openerp.com">Powered by <span class="openerp">OpenERP</span></a>
      </div>
    </div>
  </div>
</t>
<t t-name="DatabaseManager">
    <div class="oe-database-manager">
        <div class="database">
            <a class="company_logo_link" href="/?">
                <div class="company_logo"></div>
            </a>
            <ul class="db_options">
                <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>
        </div>
        <div id="oe_db_options" class="oe_db_options"></div>
    </div>
</t>
<t t-name="Header">
    <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">
        <t t-esc="user.company_id[1]"/> (<t t-esc="widget.session.db"/>)<br/>
        <small class="username"><t t-esc="user.name"/></small>
    </h1>
    <div class="header_corner">
        <ul class="block">
            <li>
                <a t-att-href="'/' + widget.qs" title="Home" class="home"><img t-att-src='_s + "/web/static/src/img/header-home.png"' width="16" height="16" border="0"/></a>
            </li>
            <li class="preferences">
                <a href="javascript:void(0)" title="Preferences" class="preferences"><img t-att-src='_s + "/web/static/src/img/header-preferences.png"' width="16" height="16" border="0"/></a>
            </li>
            <li>
                <a href="javascript:void(0)" title="About" class="about"><img t-att-src='_s + "/web/static/src/img/header-about.png"' width="16" height="16" border="0"/></a>
            </li>
        </ul>
        <div class="block">
            <a href="javascript:void(0)" class="logout">LOGOUT</a>
        </div>

    </div>
    <div class="oe-shortcuts"> </div>
</t>
<ul t-name="Shortcuts">
    <li t-foreach="shortcuts" t-as="shortcut"
            t-att-data-id="shortcut.res_id"
            t-att-data-shortcut-id="shortcut.id"
        ><t t-esc="shortcut.name"/></li>
</ul>
<t t-name="Menu">
    <table align="center">
    <tr>
        <td t-foreach="widget.data.data.children" t-as="menu">
            <a href="#" t-att-data-menu="menu.id">
                <t t-esc="menu.name"/>
            </a>
        </td>
    </tr>
    </table>
</t>
<t t-name="Menu.secondary">
    <div t-attf-class="oe_toggle_secondary_menu">
        <span class="oe_menu_fold" title="Fold menu"><t t-raw="'&amp;laquo;'"/></span>
        <span class="oe_menu_unfold" title="Unfold menu"><t t-raw="'&amp;raquo;'"/></span>
    </div>
    <div t-foreach="widget.data.data.children" t-as="menu" style="display: none" class="oe_secondary_menu" t-att-data-menu-parent="menu.id">
        <t t-foreach="menu.children" t-as="menu">
            <t t-set="classname" t-translation="off">oe_secondary_menu_item</t>
            <t t-set="level" t-value="0"/>
            <t t-call="Menu.secondary.children"/>
        </t>
    </div>
</t>
<t t-name="Menu.secondary.children">
    <t t-set="level" t-value="level + 1"/>
    <a href="#" t-att-id="menu.children.length ? 'menu_' + menu.id : undefined"
        t-att-class="classname + (menu.children.length ? ' submenu' : ' leaf') + (menu_first and level == 1 ? ' opened' : '')"
        t-att-data-menu="menu.children.length ? undefined : menu.id">
        <span t-attf-style="padding-left: #{(level - 2) * 20}px"> <t t-esc="menu.name"/></span>
    </a>
    <div t-attf-class="oe_secondary_submenu" t-if="menu.children.length" t-att-style="menu_first and level == 1 ? undefined : 'display: none'">
        <t t-foreach="menu.children" t-as="menu">
            <t t-set="classname" t-translation="off">oe_secondary_submenu_item</t>
            <t t-call="Menu.secondary.children"/>
        </t>
    </div>
</t>
<t t-name="ViewManager">
    <table class="view-manager-main-table" cellpadding="0" cellspacing="0">
    <tbody>
    <tr>
        <td class="view-manager-main-content">
            <div class="oe-view-manager-header">
                <h2 class="oe_view_title" t-if="self.flags.display_title !== false">
                    <span class="oe_view_title_text"><t t-esc="self.display_title()"/></span>
                </h2>
                <div class="oe_vm_switch">
                    <t t-if="views.length != 1" t-foreach="views" t-as="view">

                        <button type="button" t-attf-class="oe_vm_switch_#{view.view_type}" t-att-data-view-type="view.view_type" t-att-title="view.label || view.view_type">
                            <span><t t-esc="view.label || view.view_type"/></span>
                        </button>
                    </t>
                </div>
            </div>
            <div t-attf-id="#{prefix}_search" t-opentag="true"/>
            <t t-foreach="views" t-as="view">
                <div t-attf-id="#{prefix}_view_#{view.view_type}"/>
            </t>
        </td>
        <td class="view-manager-main-sidebar" height="100%">
            <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>
        </td>
    </tr>
    </tbody>
    </table>
</t>

<t t-extend="ViewManager" t-name="ViewManagerAction">
    <t t-jquery=".view-manager-main-table tbody" t-operation="prepend">
        <tr>
            <td class="oe_view_manager_menu_tips" colspan="2">
                <blockquote t-if="self.action.help and !self.flags.low_profile
                                 and !(self.action.id in self.session.hidden_menutips)">
                    <p><t t-esc="self.action.help"/></p>
                    <div>
                        <button type="button" name="hide">Hide this tip</button>
                        <button type="button" name="disable">Disable all tips</button>
                    </div>
                </blockquote>
            </td>
        </tr>
    </t>
    <t t-jquery="h2.oe_view_title" t-operation="prepend">
        <a t-if="self.flags.display_title !== false" class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
            href="javascript: void(0)"> </a>
    </t>
    <t t-jquery="h2.oe_view_title" t-operation="after">
        <select t-if="self.session.debug" class="oe_debug_view"/>
    </t>
    <t t-jquery=".oe-view-manager-header" t-operation="after">
        <div class="oe-view-manager-logs oe-folded">
            <ul></ul>
            <a class="oe-more-logs" href="#">More…</a>
            <a class="oe-remove-everything ui-icon ui-icon-closethick"/>
        </div>
    </t>
</t>
<t t-name="ViewManagerDebug">
    <option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
    <option t-if="_.indexOf(['form', 'page'], view_manager.active_view) gt -1" value="perm_read" data-views="form,page">View Log (perm_read)</option>
    <option value="fields">View Fields</option>
    <option value="fvg">Fields View Get</option>
    <t t-if="view_manager.session.uid === 1">
        <option value="manage_views">Manage Views</option>
        <option value="edit" data-model="ir.ui.view" t-att-data-id="view.fields_view.view_id">Edit <t t-esc="_.str.capitalize(view.fields_view.type)"/>View</option>
        <option t-if="view_manager.searchview" value="edit" data-model="ir.ui.view" t-att-data-id="view_manager.searchview.view_id">Edit SearchView</option>
        <option t-if="view_manager.action" value="edit" t-att-data-model="view_manager.action.type" t-att-data-id="view_manager.action.id">Edit Action</option>
        <option value="edit_workflow">Edit Workflow</option>
    </t>
</t>
<t t-name="ViewManagerDebugViewLog">
    <div class="oe_debug_view_log">
        <label>ID:</label>
        <span><t t-esc="perm.id"/></span>

        <label>XML ID:</label>
        <span><t t-esc="perm.xmlid"/></span>

        <label>Creation User:</label>
        <span><t t-esc="format(perm.create_uid, { 'type' : 'many2one' }, '/')"/></span>

        <label>Creation Date:</label>
        <span><t t-esc="format(perm.create_date, { 'type' : 'datetime' }, '/')"/></span>

        <label>Latest Modification by:</label>
        <span><t t-esc="format(perm.write_uid, { 'type' : 'many2one' }, '/')"/></span>

        <label>Latest Modification Date:</label>
        <span><t t-esc="format(perm.write_date, { 'type' : 'datetime' }, '/')"/></span>
    </div>
</t>
<t t-extend="ViewManager" t-name="One2Many.viewmanager">
    <t t-jquery="span.oe_view_title_text" t-operation="replace"/>

    <t t-jquery=".oe-view-manager-header">
        this.attr('t-if', 'views.length != 1');
    </t>
</t>

<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">
    <div t-att-id="section_id" t-att-class="classname">
        <h2><t t-esc="name"/></h2>
    </div>
</t>
<t t-name="Sidebar.section.items">
    <li t-foreach="items" t-as="item" t-att-class="item.classname">
        <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
            <t t-esc="item.label"/>
        </a>
    </li>
</t>

<t t-name="TranslateDialog">
    <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" t-att-data-field="field.name">
        <td class="oe_form_frame_cell" width="1%" nowrap="nowrap">
            <label class="oe_label"><t t-esc="field.string"/>:</label>
        </td>
        <td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell">
            <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>
        </td>
    </tr>
    </table>
</t>
<t t-name="TreeView">
    <select t-if="toolbar" style="width: 30%">
    </select>
    <table class="oe-treeview-table">
        <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>
</t>
<tr t-name="TreeView.rows"
        t-foreach="records" t-as="record"
        t-att-id="'treerow_' + record.id"
        t-att-data-id="record.id" t-att-data-level="level + 1">
    <t t-set="children" t-value="record[children_field]"/>
    <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
    <t t-set="rank" t-value="'oe-treeview-first'"/>
    <t t-set="style" t-value="'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;'"/>

    <td t-foreach="fields_view" t-as="field"
        t-if="!field.attrs.modifiers.tree_invisible"
        t-att-data-id="record.id"
        t-att-style="color_for(record) + style "
        t-attf-class="#{class} #{rank} #{(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') ? 'oe-number' : ''}">

        <span t-if="!field.attrs.modifiers.invisible" >
            <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
        </span>

        <t t-set="class" t-value="'treeview-td'"/>
        <t t-set="rank" t-value="''"/>
        <t t-set="style" t-value="''"/>
    </td>
</tr>

<t t-name="ViewPager">
    <button class="oe_button oe_button_pager" type="button" data-pager-action="first">
        <img t-att-src='_s + "/web/static/src/img/pager_first.png"'/>
    </button>
    <button class="oe_button oe_button_pager" type="button" data-pager-action="previous">
        <img t-att-src='_s + "/web/static/src/img/pager_previous.png"'/>
    </button>

    <t t-raw="__content__"/>

    <button class="oe_button oe_button_pager" type="button" data-pager-action="next">
        <img t-att-src='_s + "/web/static/src/img/pager_next.png"'/>
    </button>
    <button class="oe_button oe_button_pager" type="button" data-pager-action="last">
        <img t-att-src='_s + "/web/static/src/img/pager_last.png"'/>
    </button>
</t>

<table t-name="ListView" class="oe-listview-content">
    <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0) + (options.isClarkGable ? 1 : 0)"/>
    <thead class="ui-widget-header">
        <tr t-if="options.action_buttons !== false or options.pager !== false">
            <th t-att-colspan="columns_count">
                <table>
                    <tr>
                        <td t-if="!no_leaf and options.action_buttons !== false" class="oe-actions">
                            <button type="button" class="oe_button oe-list-add"
                                    t-if="options.addable">
                                <t t-esc="options.addable"/>
                            </button>
                            <button type="button" class="oe_button oe-list-delete"
                                    t-if="options.selectable and options.deletable">
                                Delete
                            </button>
                        </td>
                        <t t-call="Listview.navigation.button"/>
                    </tr>
                </table>
            </th>
        </tr>
        <tr t-if="options.header" class="oe-listview-header-columns">
            <t t-foreach="columns" t-as="column">
                <th t-if="column.meta">
                    <t t-esc="column.string"/>
                </th>
            </t>
            <th t-if="options.selectable" width="1"  >
                <input type="checkbox" class="all-record-selector"/> </th>
            <th t-if="options.isClarkGable" width="1"> </th>
            <t t-foreach="columns" t-as="column">
                <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
                    t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
                    <t t-if="column.tag !== 'button'"
                        ><t t-esc="column.string"/></t>
                </th>
            </t>
            <th t-if="options.deletable" width="1"/>
        </tr>
    </thead>
    <tfoot class="ui-widget-header">
        <tr>
            <td t-if="options.selectable"/>
            <td t-if="options.isClarkGable"/>
            <td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
                t-att-data-field="column.id" t-att-title="column.label">
            </td>
            <td t-if="options.deletable"/>
        </tr>
        <tr>
            <t t-call="Listview.navigation.button"/>
        </tr>
    </tfoot>
</table>
<t t-extend="ListView" t-name="One2Many.listview">
    <t t-jquery="thead.ui-widget-header > tr:first">
        this.removeAttr('t-if');
    </t>

    <t t-jquery="tfoot &gt; tr:last-child" t-operation="replace"/>

    <t t-jquery="td.oe-actions">
        this.removeAttr('t-if');
    </t>
    <t t-jquery="td.oe-actions" t-operation="prepend">
        <h3 class="oe_view_title"><t t-esc="fields_view.arch.attrs.string"/></h3>
    </t>
</t>
<th t-name="Listview.navigation.button" t-if="!no_leaf and options.pager !== false"
        class="oe-list-pager" t-att-colspan="columns_count">
    <t t-call="ViewPager">
        <span class="oe-pager-state">
        </span>
    </t>
</th>
<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>
</t>
<tr t-name="ListView.row" t-att-class="row_parity"
        t-att-data-id="record.get('id')"
        t-att-style="view.color_for(record)">
    <t t-foreach="columns" t-as="column">
        <td t-if="column.meta">

        </td>
    </t>
    <th t-if="options.selectable" class="oe-record-selector" width="1">
        <t t-set="checked" t-value="options.select_view_id == record.get('id') ? 'checked' : null"/>
        <input t-if="options.radio" type="radio" name="radiogroup" t-att-checked="checked"/>
        <input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/>
    </th>
    <th t-if="options.isClarkGable" class="oe-record-edit-link" width="1">
        <img src="/web/static/src/img/pencil.gif" width="12" height="12" class="oe-record-edit-link-img"/>
    </th>
    <t t-foreach="columns" t-as="column">
        <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
        <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
            t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')
                         + (column.tag === 'button' ? ' oe-button' : '')"
            t-att-data-field="column.id">
            <t t-raw="render_cell(record, column)"/>
        </td>
    </t>
    <td t-if="options.deletable" class='oe-record-delete' width="1">
        <button type="button" name="delete"></button>
    </td>
</tr>
<t t-name="ListView.row.form">
    <t t-raw="frame.render()"/>
</t>

<t t-name="FormView">
    <div class="oe_form_header">
        <div class="oe_form_buttons" t-if="widget.options.action_buttons !== false">
            <button type="button" class="oe_button oe_form_button_save">Save</button>
            <button type="button" class="oe_button oe_form_button_cancel">Cancel</button>
        </div>
        <div class="oe_form_pager" t-if="widget.options.pager !== false">
            <t t-call="ViewPager">
                <span class="oe_pager_index">0</span><span class="oe_pager_separator"> / </span><span class="oe_pager_count">0</span>
            </t>
        </div>
    </div>
    <t t-raw="frame.render()"/>
</t>
<t t-name="One2Many.formview" t-extend="FormView">
    <t t-jquery=".oe_form_buttons" t-operation="inner">
        <button type="button" class="oe_button oe_form_button_create">Add</button>
    </t>
</t>
<t t-name="PageView" t-extend="FormView">
    <t t-jquery=".oe_form_buttons" t-operation="inner">
        <button type="button" class="oe_button oe_form_button_edit">Edit</button>
        <button type="button" class="oe_button oe_form_button_create">Create</button>
        <button type="button" class="oe_button oe_form_button_duplicate">Duplicate</button>
        <button type="button" class="oe_button oe_form_button_delete">Delete</button>
    </t>
</t>
<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"
                method="post" enctype="multipart/form-data" action="/web/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="view.dataset.model"/>
                <input type="hidden" name="id" t-att-value="view.datarecord.id"/>
                <button class="oe_button" type="button">
                    <img t-att-src='_s + "/web/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="view.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"/>
        </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="_s + '/web/binary/saveas?session_id='
                + session.session_id + '&amp;model=ir.attachment&amp;id=' + attachment.id
                + '&amp;field=datas&amp;filename_field=name&amp;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 t-att-src='_s + "/web/static/src/img/attachments-close.png"' width="15" height="15" border="0"/>
            </a>
        </li>
    </ul>
</t>
<form t-name="FormView.set_default" class="oe_forms oe_frame">
    <t t-set="args" t-value="widget.dialog_options.args"/>
    <table style="width: 100%">
        <tr>
            <td>
                <label for="formview_default_fields"
                       class="oe_label oe_align_right">
                    Default:
                </label>
            </td>
            <td class="required">
                <select id="formview_default_fields">
                    <option value=""/>
                    <option t-foreach="args.fields" t-as="field"
                            t-att-value="field.name">
                        <t t-esc="field.string"/> = <t t-esc="field.displayed"/>
                    </option>
                </select>
            </td>
        </tr>
        <tr t-if="args.conditions.length">
            <td>
                <label for="formview_default_conditions"
                       class="oe_label oe_align_right">
                    Condition:
                </label>
            </td>
            <td>
                <select id="formview_default_conditions">
                    <option value=""/>
                    <option t-foreach="args.conditions" t-as="cond"
                            t-att-value="cond.name + '=' + cond.value">
                        <t t-esc="cond.string"/>=<t t-esc="cond.displayed"/>
                    </option>
                </select>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="radio" id="formview_default_self"
                       value="self" name="scope" checked="checked"/>
                <label for="formview_default_self" class="oe_label"
                       style="display: inline;">
                    Only you
                </label>
                <br/>
                <input type="radio" id="formview_default_all"
                       value="all" name="scope"/>
                <label for="formview_default_all" class="oe_label"
                       style="display: inline;">
                    All users
                </label>
            </td>
        </tr>
    </table>
</form>
<t t-name="Widget">
    Unhandled widget
    <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
</t>
<t t-name="WidgetFrame">
    <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
    <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"
                t-att-valign="td.table ? 'top' : undefined"
                t-attf-class="oe_form_frame_cell #{td.classname} #{td.element_class}"
            >
                <t t-raw="td.render()"/>
            </td>
        </t>
    </tr>
    </table>
</t>
<t t-name="WidgetFrame.readonly" t-extend="WidgetFrame">
    <t t-jquery="&gt;table">
        this.attr('class', this.attr('class')+' oe_form_readonly');
    </t>
</t>
<t t-name="WidgetGroup">
    <t t-if="widget.string">
    <fieldset class="oe_group_box">
        <legend><t t-esc="widget.string"/></legend>
        <t t-call="WidgetFrame"/>
    </fieldset>
    </t>
    <t t-if="!widget.string">
        <t t-call="WidgetFrame"/>
    </t>
</t>
<t t-name="WidgetNotebook">
    <ul>
        <li t-foreach="widget.pages" t-as="page">
            <a href="#">
                <t t-esc="page.string"/>
            </a>
        </li>
    </ul>
    <t t-foreach="widget.pages" t-as="page">
        <t t-raw="page.render()"/>
    </t>
</t>
<t t-name="WidgetNotebook.tooltip">
    <t t-foreach="widget.pages" t-as="page">
        <div class="oe_tooltip_string">
            Notebook Page "<t t-esc="page.string"/>"
        </div>
        <ul class="oe_tooltip_technical">
            <li data-item="modifiers">
                <span class="oe_tooltip_technical_title">Modifiers:</span>
                <t t-esc="page.node.attrs.modifiers"/>
            </li>
        </ul>
    </t>
</t>
<t t-name="WidgetNotebookPage">
    <div>
        <t t-call="WidgetFrame"/>
    </div>
</t>
<t t-name="WidgetSeparator">
    <div t-if="widget.orientation !== 'vertical'" t-att-class="'separator ' + widget.orientation">
        <t t-esc="widget.string"/>
    </div>
</t>
<t t-name="WidgetLabel">
    <label t-att-for="widget.element_id"
           t-attf-class="oe_label#{widget.help ? '_help' : ''} oe_align_#{widget.align}">
        <t t-esc="widget.string"/>
        <span t-if="widget.help">?</span>
        <t t-if="widget.string and widget.node.tag != 'label'">:</t>
    </label>
</t>
<t t-name="WidgetLabel.tooltip">
    <div class="oe_tooltip_string" t-if="widget.string">
        <t t-esc="widget.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
    </div>
    <p t-if="widget.help" class="oe_tooltip_help"><t t-esc="widget.help"/></p>
    <ul t-if="debug" class="oe_tooltip_technical">
        <li data-item="field" t-if="widget.name">
            <span class="oe_tooltip_technical_title">Field:</span>
            <t t-esc="widget.name"/>
        </li>
        <li data-item="object" t-if="widget.view and widget.view.fields_view">
            <span class="oe_tooltip_technical_title">Object:</span>
            <t t-esc="widget.view.fields_view.model"/>
        </li>
        <li data-item="type" t-if="widget.field">
            <span class="oe_tooltip_technical_title">Type:</span>
            <t t-esc="widget.field.type"/>
        </li>
        <li t-if="widget.node.attrs.widget" data-item="widget">
            <span class="oe_tooltip_technical_title">Widget:</span>
            <t t-esc="widget.node.attrs.widget"/>
        </li>
        <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
            <span class="oe_tooltip_technical_title">Size:</span>
            <t t-esc="widget.node.attrs.size || widget.field.size"/>
        </li>
        <li t-if="widget.node.attrs.context" data-item="context">
            <span class="oe_tooltip_technical_title">Context:</span>
            <t t-esc="widget.node.attrs.context_string"/>
        </li>
        <li t-if="widget.node.attrs.domain" data-item="domain">
            <span class="oe_tooltip_technical_title">Domain:</span>
            <t t-esc="widget.node.attrs.domain_string"/>
        </li>
        <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
            <span class="oe_tooltip_technical_title">Modifiers:</span>
            <t t-esc="widget.node.attrs.modifiers"/>
        </li>
        <li t-if="widget.field and widget.field.change_default" data-item="change_default">
            <span class="oe_tooltip_technical_title">Change default:</span>
            Yes
        </li>
        <li t-if="widget.node.attrs.on_change" data-item="on_change">
            <span class="oe_tooltip_technical_title">On change:</span>
            <t t-esc="widget.node.attrs.on_change"/>
        </li>
        <li t-if="widget.field and widget.field.relation" data-item="relation">
            <span class="oe_tooltip_technical_title">Relation:</span>
            <t t-esc="widget.field.relation"/>
        </li>
        <li t-if="widget.field and widget.field.selection" data-item="selection">
            <span class="oe_tooltip_technical_title">Selection:</span>
            <ul>
                <li t-foreach="widget.field.selection" t-as="option">
                    [<t t-esc="option[0]"/>]
                    <t t-if="option[1]"> - </t>
                    <t t-esc="option[1]"/>
                </li>
            </ul>
        </li>
    </ul>
</t>
<t t-name="WidgetParagraph">
    <p t-attf-class="oe_form_paragraph oe_align_#{widget.align} #{widget.multilines ? 'oe_multilines' : ''}"><t t-esc="widget.string"/></p>
</t>
<t t-name="FieldChar">
    <input t-att-type="widget.password ? 'password' : 'text'" size="1"
        t-att-name="widget.name"
        t-att-id="widget.element_id"
        t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}"
        style="width: 100%"
    /><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/>
</t>
<t t-name="FieldChar.readonly">
    <div
        t-att-id="widget.element_id"
        t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}">
    </div>
</t>
<t t-name="FieldURI.readonly">
    <div>
        <a href="#" class="oe_form_uri"/>
    </div>
</t>
<t t-name="FieldEmail">
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
{'fraction_non_alphanumeric': 0.1923249445205156, 'fraction_numerical': 0.004745266537608008, 'mean_word_length': 2.0350374377530183, 'pattern_counts': {'":': 0, '<': 2392, '<?xml version=': 2, '>': 2394, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2627936', 'n_tokens_mistral': 28453, 'n_tokens_neox': 27546, 'n_words': 4562}