diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-08 14:03:52 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-08 14:04:14 +0200 |
commit | f44257450f7045b75e8a7dfa1a6115c12656bc80 (patch) | |
tree | 4434d2afaa9689c54d3b4d0acee603610da8d69e | |
parent | bb3a44676ff32378bb6197685a3629a6f92c2ab5 (diff) |
allow the user to choose weather to use the launcher or not
-rw-r--r-- | templates/apps/room/launch.html | 21 | ||||
-rw-r--r-- | templates/base.html | 2 |
2 files changed, 15 insertions, 8 deletions
diff --git a/templates/apps/room/launch.html b/templates/apps/room/launch.html index 204345d..54b30c4 100644 --- a/templates/apps/room/launch.html +++ b/templates/apps/room/launch.html @@ -1,7 +1,5 @@ {% extends "base.html" %} {% load datehumanize %} -{% block widgets %} -{% endblock %} {% block content %} <div class="page-header"> <h1>Entering {{room.name}}</h1> @@ -24,11 +22,18 @@ </div> <br/> <div> - <a class="btn btn-large" href="/rooms#{{room.id}}">Cancel</a> - {%if room.nhosts == 0 %} - <a class="btn btn-large btn-success" href="/accounts/login-federated?next=/promote/{{room.id}}">Enter as Host</a> - {% endif %} - <a class="btn btn-large btn-primary" href="/launch/{{room.id}}">Enter as Participant</a> - + <form id="launch" method="GET"> + <a class="btn btn-large" href="/rooms#{{room.id}}">Cancel</a> + {%if room.nhosts == 0 %} + <a class="btn btn-large btn-success submitter" data-form="#launch" href="/promote/{{room.id}}">Enter as Host</a> + {% endif %} + <a class="btn btn-large btn-primary submitter" data-form="#launch" href="/launch/{{room.id}}">Enter as Participant</a> + <br/> + <div> + <span class="inline" style="vertical-align: bottom;">Try to use add-in? </span> + <label class="radio inline" for="launcher_true"><input id="launcher_true" checked="checked" type="radio" name="launcher" value="true"/>Yes</label> + <label class="radio inline" for="launcher_false"><input id="launcher_false" type="radio" name="launcher" value="true"/>No</label> + </div> + </form> </div> {% endblock %}
\ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 5353fdd..ba3b06d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -25,6 +25,7 @@ <script type="text/javascript" src="{{STATIC_URL}}/js/spin.min.js"></script> <script type="text/javascript" src="{{STATIC_URL}}/js/jquery.spin.js"></script> <script type="text/javascript" src="{{STATIC_URL}}/js/prettify.js"></script> + <script type="text/javascript" src="{{STATIC_URL}}/js/jquery.submitter.js"></script> {% block meta %}{% endblock %} <!-- style> @@ -41,6 +42,7 @@ <script type="text/javascript"> $(function() { prettyPrint(); + $(".submitter").submitter() {% block widgets %}{% endblock %} }); </script> |