forked from DGNum/gestioCOF
cof -- Fix urls naming related to registration
This commit is contained in:
parent
7160a9c954
commit
0921f32e4c
3 changed files with 4 additions and 3 deletions
|
@ -70,7 +70,8 @@ urlpatterns = [
|
||||||
url(r'^registration/empty$', gestioncof_views.registration_form2,
|
url(r'^registration/empty$', gestioncof_views.registration_form2,
|
||||||
name="empty-registration"),
|
name="empty-registration"),
|
||||||
# Autocompletion
|
# Autocompletion
|
||||||
url(r'^autocomplete/registration$', autocomplete),
|
url(r'^autocomplete/registration$', autocomplete,
|
||||||
|
name='cof.registration.autocomplete'),
|
||||||
url(r'^user/autocomplete$', gestioncof_views.user_autocomplete,
|
url(r'^user/autocomplete$', gestioncof_views.user_autocomplete,
|
||||||
name='cof-user-autocomplete'),
|
name='cof-user-autocomplete'),
|
||||||
# Interface admin
|
# Interface admin
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>Inscription d'un nouveau compte (extérieur ?)</h3>
|
<h3>Inscription d'un nouveau compte (extérieur ?)</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form role="form" id="profile" method="post" action="{% url 'gestioncof.views.registration' %}">
|
<form role="form" id="profile" method="post" action="{% url 'registration' %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table>
|
<table>
|
||||||
{{ user_form | bootstrap }}
|
{{ user_form | bootstrap }}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
// On attend que la page soit prête pour executer le code
|
// On attend que la page soit prête pour executer le code
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('input#search_autocomplete').yourlabsAutocomplete({
|
$('input#search_autocomplete').yourlabsAutocomplete({
|
||||||
url: '{% url 'gestioncof.autocomplete.autocomplete' %}',
|
url: '{% url 'cof.registration.autocomplete' %}',
|
||||||
minimumCharacters: 3,
|
minimumCharacters: 3,
|
||||||
id: 'search_autocomplete',
|
id: 'search_autocomplete',
|
||||||
choiceSelector: 'li:has(a)',
|
choiceSelector: 'li:has(a)',
|
||||||
|
|
Loading…
Reference in a new issue