Made new windows position themselves randomly.
[philo.git] / templates / admin / philo / page / add_form.html
1 {% extends "admin/change_form.html" %}
2 {% load i18n %}
3
4 {% block extrahead %}{{ block.super }}
5 <!-- This will break if anything ever changes and may not work in all browsers. Sad face. -->
6 <script type='text/javascript'>
7 (function($){
8         $(function(){
9                 $('#page_form input[type=submit]').click(function(e){
10                         if (e.target.name == '_addanother') {
11                                 hidden = document.getElementById('page_form')._continue[0]
12                                 hidden.parentNode.removeChild(hidden)
13                         }
14                 })
15         })
16 }(django.jQuery));
17 </script>
18 {% endblock %}
19
20 {% block form_top %}
21         <p>{% trans "First, choose a template. After saving, you'll be able to provide additional content for containers." %}</p>
22         <input type="hidden" name="_continue" value="1" />
23 {% endblock %}
24
25 {% block content %}
26 {% with 0 as save_on_top %}
27 {{ block.super }}
28 {% endwith %}
29 {% endblock %}