Created
January 25, 2015 01:26
-
-
Save erfannoury/a87e5101d163b8ccae45 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% extends "base.html" %} | |
| {% block content %} | |
| <div class="container"> | |
| <div class="modal-body"> | |
| <form id="signupForm" role="form"> | |
| <input type="hidden" id="theme" name="theme" value="{{theme}}"/> | |
| <div class="form-group"> | |
| <label for="query">Query</label> | |
| <input type="text" class="form-control" id="query" name="query" placeholder="Enter query"> | |
| </div> | |
| <button id="show_result" type="button" href="/result" class="btn btn-primary">Search</button> | |
| </div> | |
| <div class="modal-footer"> | |
| </div> | |
| </div> <!-- /container --> | |
| <script src="{{ url_for('static', filename="jquery/jquery.js") }}"></script> | |
| <script src="{{ url_for('static', filename="bootstrap/js/bootstrap.min.js") }}"></script> | |
| <script type="text/javascript"> | |
| $(document).ready(function() { | |
| $("#show_result").click(function() { | |
| $.post( "/show_result", $("#query").serialize()) | |
| }) | |
| }) | |
| </script> | |
| {% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment