@@ -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 |
@@ -1,24 +1,26 | |||
|
1 | 1 | from django.conf.urls import patterns, include, url |
|
2 | 2 | from django.conf import settings |
|
3 | 3 | |
|
4 | 4 | # Uncomment the next two lines to enable the admin: |
|
5 | 5 | from django.contrib import admin |
|
6 | 6 | admin.autodiscover() |
|
7 | 7 | |
|
8 | 8 | urlpatterns = patterns('', |
|
9 | 9 | # Examples: |
|
10 | 10 | # url(r'^$', 'abs_webapp_dev.views.home', name='home'), |
|
11 | 11 | # url(r'^abs_webapp_dev/', include('abs_webapp_dev.foo.urls')), |
|
12 | 12 | |
|
13 | 13 | # Uncomment the admin/doc line below to enable admin documentation: |
|
14 | 14 | # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
15 | 15 | |
|
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: |
|
22 | 24 | urlpatterns = patterns('', |
|
23 | 25 | url(r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), |
|
24 | 26 | ) + urlpatterns No newline at end of file |
@@ -1,64 +1,63 | |||
|
1 | 1 | {% extends "base.html" %} |
|
2 | 2 | |
|
3 | 3 | {% block title %}ABS CONTROL:::::{% endblock %} |
|
4 | 4 | {% block scripting %} |
|
5 | 5 | {% if profile_list %} |
|
6 | 6 | <script src="/static/static/js/profiles.js"></script> |
|
7 | 7 | {% endif %} |
|
8 | 8 | {% endblock %} |
|
9 | 9 | {% block content %} |
|
10 | 10 | <div id="content"> |
|
11 | 11 | {% block topcolumn %} |
|
12 | 12 | <div id="topcolumn"> |
|
13 | 13 | <div id="lsProfiles"> |
|
14 | 14 | <div id="infoProfiles"> |
|
15 | 15 | <label for="lblProfile" class="lblInfo">Profiles: </label> |
|
16 | 16 | {% if profile_list %} |
|
17 | 17 | <select name="lsProfiles" id="listProfiles"> |
|
18 | 18 | <option value="-1">Choose ...</option> |
|
19 | 19 | {% for entry in profile_list %} |
|
20 | 20 | {% if objProfile %} |
|
21 | 21 | {% if objProfile.id == entry.id %} |
|
22 | 22 | <option value="{{ entry.id }}" selected>{{ entry.name }}</option> |
|
23 | 23 | {% else %} |
|
24 | 24 | <option value="{{ entry.id }}">{{ entry.name }}</option> |
|
25 | 25 | {% endif %} |
|
26 | 26 | {% else %} |
|
27 | 27 | <option value="{{ entry.id }}">{{ entry.name }}</option> |
|
28 | 28 | {% endif %} |
|
29 | 29 | {% endfor %} |
|
30 | 30 | </select> |
|
31 | 31 | {% else %} |
|
32 | 32 | <label for="lblMessage" class="lblInfo">No profiles.</label> |
|
33 | 33 | {% endif %} |
|
34 | 34 | </div> |
|
35 | 35 | </div> |
|
36 | 36 | {% block mnu_profile %} |
|
37 | 37 | <div id="mnuProfiles"> |
|
38 | 38 | <nav class="MnuHorizontal" id="navProfiles"> |
|
39 | 39 | <ul> |
|
40 |
<li><a href=" |
|
|
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> |
|
50 | 49 | {% endif %} |
|
51 | 50 | </ul> |
|
52 | 51 | <div class="cleardivs"></div> |
|
53 | 52 | </nav> |
|
54 | 53 | </div> |
|
55 | 54 | {% endblock %} |
|
56 | 55 | <div class="cleardivs"></div> |
|
57 | 56 | </div> |
|
58 | 57 | {% endblock %} |
|
59 | 58 | {% block maincolumn %} |
|
60 | 59 | <div id="maincolumn" style="height: 50px"></div> |
|
61 | 60 | {% endblock %} |
|
62 | 61 | <div class="cleardivs"></div> |
|
63 | 62 | </div> |
|
64 | 63 | {% endblock %} No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now