Skip to Content
Menu
This question has been flagged
1 Reply
2874 Views

How can i add popup menu  in my odoo website?

This is my template.xml file where i designed UI for my module,i want to show my form in popup window?


<template id="call_back" name="Request Call back window">
            <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/css/materialize.min.css"/>

            <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/js/materialize.min.js"></script> -->
        

      
            <center>
                <div style="background-color:#f6f6f6;border:solid black 2px;width:25%;">
               
                <h5 align="center">Request call back</h5>
             
              <form action="/callback" method='post' >
                <input type="text" name="username"  autocomplete="on" placeholder="Name*"  required="True"/>
                <br/><br/>
                <input type="tel" name="number"  autocomplete="on" placeholder="Mobile Number*"
                  required="True"/>
                <br/><br/>
                <input type="email" name="mail"  autocomplete="on" placeholder="Email Id"/>
                <br/><br/>
                <input type="text" name="location"  autocomplete="on" placeholder="Enter user location*" required="True"/>
                <br/><br/>
                <div align="left">

                    <div style="padding:0px 0px 0px 15px;"><h6 >I Have</h6></div>
                    <input type="radio" name="i_have" id="bulk" value="bulk"/>
                    <label for="bulk"><font size="2">Bulk Requirement</font></label><br/>
                     <input type="radio" name="i_have" id="support" value="support"/>
                      <label for="support"><font size="2">I need Support For My order</font></label><br/>
                      <input type="radio" name="i_have" id="other" value="confused"/>
                      <label for="other"><font size="2">I am confused;I need your help!</font></label>
                     
                      <br/><br/>
                      <center><button type="submit" value="Submit" style="background-color:#00c957;width:80%;height:4%;border:none">Submit</button></center>
                </div>



              </form>
        
         

            </div>
        </center>

      </template>

Avatar
Discard
Best Answer

Have a look at here and here

Avatar
Discard