@import play.i18n._@(title: String)(content: Html)
<!DOCTYPE html>
<html lang="@lang().code()"> <head> <title>@title</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Some stuffs"> <meta name="author" content=""> <script type="text/javascript" src="@routes.Assets.versioned("javascripts/jquery.js")"></script> <script type="text/javascript" src="@routes.Assets.versioned("javascripts/test.js")"></script> <script type="text/javascript" src="@routes.Application.jsRoutes" defer="defer"></script> <script type="text/javascript" src="@routes.Assets.versioned("javascripts/bootstrap.js")" data-main="@routes.Assets.versioned("javascripts/bootstrap.js")"></script> <link rel="stylesheet" href="@routes.Assets.versioned("stylesheets/bootstrap.css")"> <link rel="stylesheet" href="@routes.Assets.versioned("stylesheets/main.css")"> </head> <body> <section class="nav">@navigation(Application.getLocalUser())</section> <!-- Button to trigger modal -->
<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a> <div class="container"> <section class="content">@content</section> </div> <!-- /container --> <!-- Modal --> <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="myModalLabel">Modal header</h3> </div> <div class="modal-body"> <p>One fine body…</p> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> <button class="btn btn-primary">Save changes</button> </div> </div> </body> <footer> <p class="pull-left">© 2016</p> </footer>
</html>
Hi
I had the same problem
The section element cause the problem for me.
@import play.i18n._@(title: String)(content: Html)
<!DOCTYPE html>
<html lang="@lang().code()"> <head> <title>@title</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="">
<meta name="author" content=""> <script type="text/javascript" src="@routes.Assets.versioned("javascripts/bootstrap.js")"></script>
<script type="text/javascript" src="@routes.Assets.versioned("javascripts/jquery.js")"></script>
<script type="text/javascript" src="@routes.Application.jsRoutes"></script>
<link rel="stylesheet" href="@routes.Assets.versioned("stylesheets/bootstrap.css")"> <link rel="stylesheet" href="@routes.Assets.versioned("stylesheets/main.css")"> </head> <body>
<!-- Button trigger modal --> <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal"> Launch demo modal </button> <!-- Modal --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Modal title</h4> </div> <div class="modal-body"> ... </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Save changes</button> </div> </div> </div> </div>
<section class="nav">@navigation(Application.getLocalUser())</section>
<div class="container"> <section class="content">@content</section> </div> <!-- /container -->
<script type="text/javascript" src="assets/javascripts/bootstrap.js"></script> <script> $('#myModal').on('show.bs.modal', function (e) { $('.modal-body').load('/modaltest'); }) </script>
</body> <footer> <p class="pull-left">© 2016</p> </footer>
</html>
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/50a11f02-86ba-4d24-8717-0648d1baa59f%40googlegroups.com.--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/9Tl0XH6rr10/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.