src/cm/templates/test_inner.html
author Simon Descarpentries <sid@sopinspace.com>
Wed, 09 May 2012 17:13:33 +0200
changeset 417 c5e91f204371
parent 0 40c8f766c9b8
permissions -rw-r--r--
After investigations, commit the proposed patch by kklimonda presented with the following introduction : cm/templates/site/login_form.html template uses a relative url for the form action, which seems to break deployment in the subfolder when trailing slash is missing (the form redirects to the upper folder breaking login). Using {% url login %} (as in the attached patch) instead would fix the issue.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
<form  id="test" class="wizard-form" action="." method="post">
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
{{ form }}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
<input id="sub" name="continue" type="button" value="finish  →"/>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
<script type="text/javascript">
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     7
    $(function() {
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
        $("#sub").click(function () {
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     9
        	var str = $("#test").serialize();
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    10
        	$.post("{% url test_inner %}", str,
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    11
        			  function(data, textStatus){
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    12
        		$(".ui-tabs-panel").not('.ui-tabs-hide').html(data);
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    13
        			  }, "html");
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    14
        });
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    15
    });
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    16
    </script>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    17
</form>