@ -29,6 +29,7 @@ class PosliReseniForm(forms.Form):
attrs = {
attrs = {
' data-placeholder--id ' : ' -1 ' ,
' data-placeholder--id ' : ' -1 ' ,
' data-placeholder--text ' : ' --- ' ,
' data-placeholder--text ' : ' --- ' ,
' data-close-on-select ' : ' false ' ,
' data-allow-clear ' : ' true '
' data-allow-clear ' : ' true '
} ,
} ,
) ,
) ,
@ -43,6 +44,7 @@ class PosliReseniForm(forms.Form):
url = ' autocomplete_resitel ' ,
url = ' autocomplete_resitel ' ,
attrs = { ' data-placeholder--id ' : ' -1 ' ,
attrs = { ' data-placeholder--id ' : ' -1 ' ,
' data-placeholder--text ' : ' --- ' ,
' data-placeholder--text ' : ' --- ' ,
' data-close-on-select ' : ' false ' ,
' data-allow-clear ' : ' true ' } )
' data-allow-clear ' : ' true ' } )
)
)
@ -74,6 +76,7 @@ class NahrajReseniForm(forms.ModelForm):
url = ' autocomplete_problem_odevzdatelny ' ,
url = ' autocomplete_problem_odevzdatelny ' ,
attrs = { ' data-placeholder--id ' : ' -1 ' ,
attrs = { ' data-placeholder--id ' : ' -1 ' ,
' data-placeholder--text ' : ' --- ' ,
' data-placeholder--text ' : ' --- ' ,
' data-close-on-select ' : ' false ' ,
' data-allow-clear ' : ' true ' } ,
' data-allow-clear ' : ' true ' } ,
forward = [ " nadproblem_id " ] ,
forward = [ " nadproblem_id " ] ,
) ,
) ,
@ -82,6 +85,7 @@ class NahrajReseniForm(forms.ModelForm):
url = ' autocomplete_resitel_public ' ,
url = ' autocomplete_resitel_public ' ,
attrs = { ' data-placeholder--id ' : ' -1 ' ,
attrs = { ' data-placeholder--id ' : ' -1 ' ,
' data-placeholder--text ' : ' --- ' ,
' data-placeholder--text ' : ' --- ' ,
' data-close-on-select ' : ' false ' ,
' data-allow-clear ' : ' true ' } ,
' data-allow-clear ' : ' true ' } ,
)
)
}
}