blob: f77cd7fff58cf24545d981bf05a33bad921c4e5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{% extends "edit_fieldsets.html" %}
{% block widgets %}
$('#wizard').formwizard({
validationEnabled: true,
focusFirstInput: true,
textSubmit: "Finish",
//validationOptions: {
// rules: {
// username: 'validUser'
// }
//}
});
$('#id_username').autocomplete({
source: "/user/search.json",
focus: function(event, ui) {
$('#id_username').val(ui.item.label);
return false;
},
select: function(event, ui) {
$('#id_username').val(ui.item.label);
$('#id_user').val(ui.item.value);
return false;
},
minLength: 2,
open: function() {
$( this ).removeClass( "ui-corner-all" ).addClass( "ui-corner-top" );
},
close: function() {
$( this ).removeClass( "ui-corner-top" ).addClass( "ui-corner-all" );
}
});
{% endblock %}
|