title: Creating a popup form in django
body: <p>My django application has 4 buttons where each button opens a popup form upon clicking that button. After filling that popup form, my button should have right mark on it so that user can get to know that it is completed. Below these four buttons, i have submit button which posts all these forms details to database.</p>
  
  <p>I can make a popup with modal in bootstrap. but i want this button to be clicked or set right mark on button after completing that popup form.  I am confused on how to achieve this with django or bootstrap?</p>
  
  <p>And also, do i have to create a separate view for every popup form in my django views.py file? and how does that button store form values so that it will post these values upon clicking submit button?</p>
  
  <p>Edit: my button looks like below</p>
  
  <pre><code>&lt;button type="button" class="btn btn-default" data-toggle="modal" data-
  target="#myModal"&gt;Button Name&lt;/button&gt;
  </code></pre>
  
  <p>Upon clicking that above button, a popup appears which have form contains 4 fields. I want to get these form values in my views.py file. But i do not have urlconf for that button. when i create a separate URL for the button, form no longer comes in popup or dialog box. How to get those form values in my views.py file or how to process those form variables? Any help is appreciated </p>