Untitled
raw download clone
TEXT
views 20
,
size 8705 b
<?xml version='1.0' encoding='utf-8'?>
<odoo>
    <data>
        <template id = "wtasset_frontend" name = "website_ribbon_assets_frontend" inherit_id='website.assets_frontend'>
            <xpath expr = '.' position = "inside">
                <link rel="stylesheet" href='/webkul_test/static/src/css/navbar.css'/>
                <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
                <script type ="text/javascript" src ='/webkul_test/static/src/js/navbar.js'/>
                <script type="text/javascript" src = '/webkul_test/static/src/js/buttons.js'/>
            </xpath>
        </template>


        <template id = "webkul_controller_1">
            <title>Tutorial</title>
            <t t-call="website.layout">
            <div>
                For Testing purpose

            </div>
            </t>
        </template>


        <template id = "webkul_controller_2">
            <title>Tutorial</title>
            <t t-call="website.layout">
            <div class = "buttons">
                <div>
                    <input name = "student_id_input" id = "std_input_id" type = 'text' class="pull-right" placeholder = "Enter Student Id"/>
                </div>
                <div>
                    <a class="btn btn-primary pull-right" href="/webkul/controller">http Button</a>
                     <a class="btn btn-primary pull-right wk_json_controller">Json Button</a>
                </div>
            </div>
           
            <table class="table-bordered table-hover col-lg-8">
            <tr>
                <th>Name</th>
                <th>Age</th> 
                <th>Dan</th> 
                <th>Raptor</th>
                <th>Subjects</th>

            </tr>
                <t t-foreach="obj" t-as="o">
                        <tr>
                            <td>
                                <span class="wk_name" t-esc="o.name"/>
                            </td>
                            <td>
                                <span class="wk_age" t-esc="o.age"/>
                            </td>
                            <td>
                                <span class="wk_designation" t-esc="o.designation"/>
                            </td>
                            <td>
                                <span class="wk_tchr" t-esc="o.tchr.mapped('name')" widget="many2many_tags"/>
                            </td>
                             <td>
                                <span class="wk_designation" t-esc="o.subjects.mapped('name')"/>
                            </td>
                        </tr>
                </t>
            </table>
            <!-- <For single Person data> -->
                <!-- <div>
                    <span >Name:</span>
                    <span class = 'wk_name' t-esc="obj.name"/>
                </div>
                <div>
                    <span>Designation:</span>
                    <span class = 'wk_desg' t-esc="obj.designation"/>
                </div>
                <div>
                    <span>Teachers:</span>
                    <span class = 'wk_tchr' t-esc="obj.tchr.mapped('name')" widget="many2many_tags"/>
                </div>
                <div>
                    <span>Gender:</span>
                    <span class = 'wk_gndr' t-esc="obj.gender"/>
                </div> -->

            </t>
        </template>

        <template id= "webkul_controller_3">
        <t t-call = "website.layout">
            <div class="bs-example">
                <ul class="nav nav-tabs" id="myTab">
                    <li class="active"><a data-toggle="tab" href="#sectionA">Section A</a></li>
                    <li><a data-toggle="tab" href="#sectionB">Section B</a></li>
                    <li><a data-toggle="tab" href="#sectionC">Section C</a></li>
                </ul>
                <div class="tab-content">
                    <div id="sectionA" class="tab-pane fade in active">
                        <h3>Section A</h3>
                            <table class="table-bordered table-hover col-lg-8">
                                <tr>
                                    <th>Name</th>
                                    <th>Age</th> 
                                    <th>Designation</th> 
                                    <th>Teachers</th>
                                    <th>Subjects</th>

                                </tr>
                                    <t t-foreach="obj" t-as="o">
                                            <tr>
                                                <td>
                                                    <span class="wk_name" t-esc="o.name"/>
                                                </td>
                                                <td>
                                                    <span class="wk_age" t-esc="o.age"/>
                                                </td>
                                                <td>
                                                    <span class="wk_designation" t-esc="o.designation"/>
                                                </td>
                                                <td>
                                                    <span class="wk_tchr" t-esc="o.tchr.mapped('name')" widget="many2many_tags"/>
                                                </td>
                                                <td>
                                                    <span class="wk_designation" t-esc="o.subjects.mapped('name')"/>
                                                </td>
                                            </tr>
                                    </t>
                            </table>
                    </div>
                    <div id="sectionB" class="tab-pane fade">
                        <h3>Section B</h3>
                        <table class="table-bordered table-hover col-lg-8">
                                <tr>
                                    <th>Name</th>
                                    <th>Age</th> 
                                    <th>Designation</th> 
                                    <th>Subjects</th>

                                </tr>
                                    <t t-foreach="obj2" t-as="o">
                                            <tr>
                                                <td>
                                                    <span class="wk_name" t-esc="o.name"/>
                                                </td>
                                                <td>
                                                    <span class="wk_age" t-esc="o.age"/>
                                                </td>
                                                <td>
                                                    <span class="wk_designation" t-esc="o.designation"/>
                                                </td>
                                                <td>
                                                    <span class="wk_Subs" t-esc="o.Subs.mapped('name')"/>
                                                </td>
                                            </tr>
                                    </t>
                            </table>
                    </div>
                    <div id="sectionC" class="tab-pane fade">
                        <h3>Section C</h3>
                         <table class="table-bordered table-hover col-lg-8">
                                <tr>
                                    <th>Name</th>
                                    <th>Teacher</th> 
                                </tr>
                                    <t t-foreach="obj3" t-as="o">
                                            <tr>
                                                <td>
                                                    <span class="wk_name" t-esc="o.name"/>
                                                </td>
                                                <td>
                                                    <span class="wk_Subs" t-esc="o.subs.mapped('name')"/>
                                                </td>
                                            </tr>
                                    </t>
                            </table>
                        
                    </div>
                </div>
            </div>
        </t>
        </template>
    </data>
</odoo>
close fullscreen
Login or Register to edit or fork this paste. It's free.