Guest User

Untitled

a guest
May 24th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. @Html.BeginForm("Search", "Home", FormMethod.Post))
  2. {
  3. <div class="sub_title_bar">Search</div>
  4. <table>
  5. <tr>
  6. <td>
  7. @Html.LabelFor(m => m.FirstName)
  8. @Html.TextBoxFor(m => m.FirstName)
  9. </td>
  10. <td>
  11. @Html.LabelFor(m => m.LastName)
  12. @Html.TextBoxFor(m => m.LastName)
  13. </td>
  14. </tr>
  15. ... Few more fields.
  16. </table>
  17. <button type="submit" class="button">Search</button>
  18. <button id="btnAdvSearch" type="button" class="button">Advanced Search Filters...</button>
  19. }
  20.  
  21. <div id="dlgAdvanced" style="display:none; position:page" class="modal-dialog" role="document">
  22. <div class="modal-content">
  23. <div class="widget">
  24.  
  25.  
  26. <div class="modal-header widget_collapse_header_bold">
  27. <div class="sub_title_bar">
  28. Advanced Search
  29. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  30. <span aria-hidden="true">&times;</span>
  31. </button>
  32. </div>
  33. </div>
  34.  
  35. @Html.LabelFor(m => m.Foo.Bar)
  36. @Html.TextBoxFor(m => m.Foo.Bar)
  37. @Html.LabelFor(m => m.Foo.Baz)
  38. @Html.TextBoxFor(m => m.Foo.Baz)
  39. </div>
  40. </div>
  41. </div>
  42.  
  43. ...
  44.  
  45. <script>
  46. $("#btnAdvSearch").click(function () {
  47. $('#dlgAdvanced').modal('show');
  48. });
  49. </script>
  50.  
  51. $("#btnAdvSearch").click(function () {
  52. $('#dlgAdvanced').appendTo("body").modal('show');
  53. });
Add Comment
Please, Sign In to add comment