##// END OF EJS Templates
- Primera implementacion del Login del proyecto. (Funcionalidad no completada)
jsalyrosas -
r198:199
parent child
Show More
@@ -0,0 +1,28
1 {% extends "base.html" %}
2 {% load url from future %}
3
4 {% block content %}
5
6 {% if form.errors %}
7 <p>Your username and password didn't match. Please try again.</p>
8 {% endif %}
9
10 <form method="post" action="{% url 'django.contrib.auth.views.login' %}">
11 {% csrf_token %}
12 <table>
13 <tr>
14 <td>{{ form.username.label_tag }}</td>
15 <td>{{ form.username }}</td>
16 </tr>
17 <tr>
18 <td>{{ form.password.label_tag }}</td>
19 <td>{{ form.password }}</td>
20 </tr>
21 </table>
22
23 <input type="submit" value="login" />
24 <input type="hidden" name="next" value="{{ next }}" />
25 </form>
26
27 {% endblock %}
28
@@ -16,6 +16,8
16 16 # Uncomment the next line to enable the admin:
17 17 url(r'^admin/', include(admin.site.urls)),
18 18 url(r'^abscontrol/', include('abscontrol.urls')),
19 url(r'^accounts/login/$', 'django.contrib.auth.views.login'),
20
19 21 )
20 22
21 23 if settings.DEBUG:
@@ -37,13 +37,12
37 37 <div id="mnuProfiles">
38 38 <nav class="MnuHorizontal" id="navProfiles">
39 39 <ul>
40 <li><a href="/abscontrol/new">New</a></li>
40 <li><a href="{% url abscontrol.views.new %}">New</a></li>
41 41 {% if objProfile %}
42 42 <li><a href="/abscontrol/edit/{{ objProfile.id }}">Edit</a></li>
43 43 <li><a href="#">Save</a></li>
44 44 {% endif %}
45 <li><a href="#">Save as</a></li>
46 <li><a href="/abscontrol/import">Import</a></li>
45 <li><a href="{% url abscontrol.views.importProfile %}">Import</a></li>
47 46 {% if objProfile %}
48 47 <li><a href="#" id="lnkExport" alt="{{ objProfile.id }}">Export</a></li>
49 48 <li><a href="#" id="lnkSendFile" alt="{{ objProfile.id }}">Send</a></li>
General Comments 0
You need to be logged in to leave comments. Login now