diff options
Diffstat (limited to 'templates')
-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> |