<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!-- vim:fdl=1:
-->
<templates id="template" xml:space="preserve">

<t t-name="WebClient">
    <div data-role="page" id="oe_login"></div>
    <div id="oe_header" />
    <div id="oe_footer" />
    <div data-role="page" id="oe_shortcuts"></div>
    <div data-role="page" id="oe_menu"></div>
    <div data-role="page" id="oe_options"></div>
</t>

<t t-name="Login">
     <div data-role="header" data-theme="b" data-position="fixed">
        <h1>OpenERP</h1>
    </div>
    <div data-role="content">
        <fieldset>
            <div data-role="fieldcontain">
                <label for="database" class="select">Database:</label>
                <select id="database" name="database" data-native-menu="false">
                    <t t-if="db_list">
                        <t t-foreach="db_list" t-as="opt">
                            <option t-att-value="opt"><t t-esc="opt"/></option>
                        </t>
                    </t>
                </select>
                <label for="login">Login:</label>
                <input type="text" id="login" name="login" t-att-value="selected_login || ''" />
                <label for="password">Password:</label>
                <input type="password" id="password" name="password" t-att-value="<PASSWORD>_password || ''" />
                <a id="login_btn" data-theme="c" href="#" data-role="button">Login</a>
                <div class="login_error_message ui-btn-inner ui-btn-corner-all">
                    <span class="ui-btn-text">Bad username or password</span>
                </div>
             </div>
        </fieldset>
    </div>
    <div data-role="footer" data-theme="b" data-position="fixed">
        <h1>Powered by openerp.com</h1>
    </div>
</t>

<t t-name="Header">
    <div data-role="header" data-theme="b" data-position="fixed">
        <h1></h1>
        <a id="home" class="ui-btn-right" data-iconpos="notext" data-icon="home" href="#" title="Home" data-theme="b"></a>
    </div>
</t>

<t t-name="Footer">
    <div data-role="footer" data-theme="b" data-position="fixed">
        <div data-role="navbar">
            <ul>
                <li><a id="shrotcuts" href="#" title="Favourite" data-theme="b" data-icon="star" >Favourite</a></li>
                <li><a id="preference" href="#" title="Preference" data-theme="b" data-icon="gear">Preference</a></li>
            </ul>
        </div>
    </div>
</t>

<t t-name="Shortcuts">
    <t t-call="Header" />
    <div id="content" data-role="content">
        <ul data-role="listview" data-inset="true">
            <li data-theme="c" t-foreach="sc" t-as="opt">
                <a href="#" t-att-data-menu="opt.id" t-att-data-name="opt.name" t-att-data-res="opt.res_id">
                    <span><t t-esc="opt.name"/></span>
                </a>
            </li>
       </ul>
   </div>
   <t t-call="Footer" />
</t>

<t t-name="Menu">
    <t t-call="Header" />
    <div id="content" data-role="content">
        <ul data-role="listview" data-inset="true">
            <li data-theme="c" t-foreach="data.children" t-as="menu">
                <a href="#" t-att-data-menu="menu.id" t-att-data-name="menu.name">
                    <span><t t-esc="menu.name"/></span>
                </a>
            </li>
        </ul>
    </div>
    <t t-call="Footer" />
</t>

<t t-name="Menu.secondary">
    <t t-call="Header" />
    <div id="content" data-role="content">
        <t t-foreach="menu.children" t-as="menu1" >
            <ul data-dividertheme="b" data-theme="c" data-inset="true" data-role="listview">
                <li data-role="list-divider">
                    <t t-if="(menu1.children.length)">
                        <t t-esc="menu1.name"/>
                    </t>
                    <t t-if="!(menu1.children.length)">
                        <a href="#" t-attf-id="menu_#{menu1.id}" t-att-data-menu="menu1.id" t-att-data-name="menu1.name">
                            <t t-esc="menu1.name"/>
                        </a>
                    </t>
                </li>
                <t t-if="menu1.children.length">
                    <li data-theme="c" t-foreach="menu1.children" t-as="childmenu" >
                        <a href="#" t-attf-id="menu_#{childmenu.id}" t-att-data-menu="childmenu.id" t-att-data-name="childmenu.name">
                            <t t-esc="childmenu.name" />
                        </a>
                    </li>
                </t>
            </ul>
        </t>
    </div>
     <t t-call="Footer" />
</t>

<t t-name="Options">
    <t t-call="Header" />
    <div data-role="content">
        <ul data-dividertheme="b" data-theme="c" data-inset="true" data-role="listview">
            <li data-theme="c">
                <a id="logout">Logout</a>
            </li>
        </ul>
    </div>
    <t t-call="Footer" />
</t>

<t t-name="ListView">
    <t t-call="Header" />
    <div id="content" data-role="content">
        <ul data-role="listview" data-inset="true" data-theme="d" data-filter="true">
            <li data-theme="c" t-foreach="records" t-as="record">
                <a id="list-id" t-att-data-id="record[0]" href="#">
                    <t t-esc="record[1]"/>
                </a>
            </li>
        </ul>
    </div>
    <t t-call="Footer" />
</t>

<t t-name="FormView">
    <t t-if="temp_flag">
        <t t-call="Header" />
    </t>
    <div data-role="content">

        <form>
            <t t-foreach="get_fields" t-as="field">
                <div data-role="fieldcontain">
                    <t t-if="fields[field.attrs.name].type == 'char'">
                        <label for="">
                            <t t-if="!(field.attrs.string)" t-esc="fields[field.attrs.name].string"></t>
                            <t t-if="field.attrs.string" t-esc="field.attrs.string"></t>:
                        </label>
                        <t t-if="values[field.attrs.name]">
                            <input type="text" t-att-id="field.attrs.name" readonly="true" t-att-value="values[field.attrs.name]"/>
                        </t>
                        <t t-if="!(values[field.attrs.name])">
                            <input type="text" value="" readonly="true" t-att-id="field.attrs.name"/>
                        </t>
                        <t t-if="(field.attrs.name == 'email' or field.attrs.name == 'email_from') and values[field.attrs.name]">
                            <a t-att-href="'mailto:'+values[field.attrs.name]"><img src="/web/static/src/img/icons/terp-mail-message-new.png" /></a>
                        </t>
                        <t t-if="field.attrs.name == 'website' and values[field.attrs.name]">
                            <a t-att-href="values[field.attrs.name]"><img src="/web/static/src/img/icons/gtk-ok.png" title="Open this resource"/></a>
                        </t><commit_msg>[IMP] When result is null then displayed message in listview for no any records found and filter is hide.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!-- vim:fdl=1:
-->
<templates id="template" xml:space="preserve">

<t t-name="WebClient">
    <div data-role="page" id="oe_login"></div>
    <div id="oe_header" />
    <div id="oe_footer" />
    <div data-role="page" id="oe_shortcuts"></div>
    <div data-role="page" id="oe_menu"></div>
    <div data-role="page" id="oe_options"></div>
</t>

<t t-name="Login">
     <div data-role="header" data-theme="b" data-position="fixed">
        <h1>OpenERP</h1>
    </div>
    <div data-role="content">
        <fieldset>
            <div data-role="fieldcontain">
                <label for="database" class="select">Database:</label>
                <select id="database" name="database" data-native-menu="false">
                    <t t-if="db_list">
                        <t t-foreach="db_list" t-as="opt">
                            <option t-att-value="opt"><t t-esc="opt"/></option>
                        </t>
                    </t>
                </select>
                <label for="login">Login:</label>
                <input type="text" id="login" name="login" t-att-value="selected_login || ''" />
                <label for="password">Password:</label>
                <input type="password" id="password" name="password" t-att-value="selected_password || ''" />
                <a id="login_btn" data-theme="c" href="#" data-role="button">Login</a>
                <div class="login_error_message ui-btn-inner ui-btn-corner-all">
                    <span class="ui-btn-text">Bad username or password</span>
                </div>
             </div>
        </fieldset>
    </div>
    <div data-role="footer" data-theme="b" data-position="fixed">
        <h1>Powered by openerp.com</h1>
    </div>
</t>

<t t-name="Header">
    <div data-role="header" data-theme="b" data-position="fixed">
        <h1></h1>
        <a id="home" class="ui-btn-right" data-iconpos="notext" data-icon="home" href="#" title="Home" data-theme="b"></a>
    </div>
</t>

<t t-name="Footer">
    <div data-role="footer" data-theme="b" data-position="fixed">
        <div data-role="navbar">
            <ul>
                <li><a id="shrotcuts" href="#" title="Favourite" data-theme="b" data-icon="star" >Favourite</a></li>
                <li><a id="preference" href="#" title="Preference" data-theme="b" data-icon="gear">Preference</a></li>
            </ul>
        </div>
    </div>
</t>

<t t-name="Shortcuts">
    <t t-call="Header" />
    <div id="content" data-role="content">
        <ul data-role="listview" data-inset="true">
            <li data-theme="c" t-foreach="sc" t-as="opt">
                <a href="#" t-att-data-menu="opt.id" t-att-data-name="opt.name" t-att-data-res="opt.res_id">
                    <span><t t-esc="opt.name"/></span>
                </a>
            </li>
       </ul>
   </div>
   <t t-call="Footer" />
</t>

<t t-name="Menu">
    <t t-call="Header" />
    <div id="content" data-role="content">
        <ul data-role="listview" data-inset="true">
            <li data-theme="c" t-foreach="data.children" t-as="menu">
                <a href="#" t-att-data-menu="menu.id" t-att-data-name="menu.name">
                    <span><t t-esc="menu.name"/></span>
                </a>
            </li>
        </ul>
    </div>
    <t t-call="Footer" />
</t>

<t t-name="Menu.secondary">
    <t t-call="Header" />
    <div id="content" data-role="content">
        <t t-foreach="menu.children" t-as="menu1" >
            <ul data-dividertheme="b" data-theme="c" data-inset="true" data-role="listview">
                <li data-role="list-divider">
                    <t t-if="(menu1.children.length)">
                        <t t-esc="menu1.name"/>
                    </t>
                    <t t-if="!(menu1.children.length)">
                        <a href="#" t-attf-id="menu_#{menu1.id}" t-att-data-menu="menu1.id" t-att-data-name="menu1.name">
                            <t t-esc="menu1.name"/>
                        </a>
                    </t>
                </li>
                <t t-if="menu1.children.length">
                    <li data-theme="c" t-foreach="menu1.children" t-as="childmenu" >
                        <a href="#" t-attf-id="menu_#{childmenu.id}" t-att-data-menu="childmenu.id" t-att-data-name="childmenu.name">
                            <t t-esc="childmenu.name" />
                        </a>
                    </li>
                </t>
            </ul>
        </t>
    </div>
     <t t-call="Footer" />
</t>

<t t-name="Options">
    <t t-call="Header" />
    <div data-role="content">
        <ul data-dividertheme="b" data-theme="c" data-inset="true" data-role="listview">
            <li data-theme="c">
                <a id="logout">Logout</a>
            </li>
        </ul>
    </div>
    <t t-call="Footer" />
</t>

<t t-name="ListView">
    <t t-call="Header" />
    <div id="content" data-role="content">
        <t t-if="!(records.length>0)">
            No one record is created
        </t>
        <t t-if="records.length>0">
            <ul data-role="listview" data-inset="true" data-theme="d" data-filter="true">
                <li data-theme="c" t-foreach="records" t-as="record">
                    <a id="list-id" t-att-data-id="record[0]" href="#">
                        <t t-esc="record[1]"/>
                    </a>
                </li>
            </ul>
        </t>
    </div>
    <t t-call="Footer" />
</t>

<t t-name="FormView">
    <t t-if="temp_flag">
        <t t-call="Header" />
    </t>
    <div data-role="content">

        <form>
            <t t-foreach="get_fields" t-as="field">
                <div data-role="fieldcontain">
                    <t t-if="fields[field.attrs.name].type == 'char'">
                        <label for="">
                            <t t-if="!(field.attrs.string)" t-esc="fields[field.attrs.name].string"></t>
                            <t t-if="field.attrs.string" t-esc="field.attrs.string"></t>:
                        </label>
                        <t t-if="values[field.attrs.name]">
                            <input type="text" t-att-id="field.attrs.name" readonly="true" t-att-value="values[field.attrs.name]"/>
                        </t>
                        <t t-if="!(values[field.attrs.name])">
                            <input type="text" value="" readonly="true" t-att-id="field.attrs.name"/>
                        </t>
                        <t t-if="(field.attrs.name == 'email' or field.attrs.name == 'email_from') and values[field.attrs.name]">
                            <a t-att-href="'mailto:'+values[field.attrs.name]"><img src="/web/static/src/img/icons/terp-mail-message-new.png" /></a>
                        </t>
                        <t t-if="field.attrs.name == 'website' and values[field.attrs.name]">
                            <a t-att-href="values[field.attrs.name]"><img src="/web/static/src/img/icons/gtk-ok.png" title="Open this resource"/></a>
                        </t>
{'fraction_non_alphanumeric': 0.20327868852459016, 'fraction_numerical': 0.003278688524590164, 'mean_word_length': 1.667997718197376, 'pattern_counts': {'":': 0, '<': 390, '<?xml version=': 2, '>': 392, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7550159', 'n_tokens_mistral': 4753, 'n_tokens_neox': 4584, 'n_words': 768}