@@ -0,0 +1,28 | |||||
|
1 | {% extends "base.html" %} | |||
|
No newline at end of file | ||||
|
2 | {% load url from future %} | |||
|
No newline at end of file | ||||
|
3 | ||||
|
No newline at end of file | ||||
|
4 | {% block content %} | |||
|
No newline at end of file | ||||
|
5 | ||||
|
No newline at end of file | ||||
|
6 | {% if form.errors %} | |||
|
No newline at end of file | ||||
|
7 | <p>Your username and password didn't match. Please try again.</p> | |||
|
No newline at end of file | ||||
|
8 | {% endif %} | |||
|
No newline at end of file | ||||
|
9 | ||||
|
No newline at end of file | ||||
|
10 | <form method="post" action="{% url 'django.contrib.auth.views.login' %}"> | |||
|
No newline at end of file | ||||
|
11 | {% csrf_token %} | |||
|
No newline at end of file | ||||
|
12 | <table> | |||
|
No newline at end of file | ||||
|
13 | <tr> | |||
|
No newline at end of file | ||||
|
14 | <td>{{ form.username.label_tag }}</td> | |||
|
No newline at end of file | ||||
|
15 | <td>{{ form.username }}</td> | |||
|
No newline at end of file | ||||
|
16 | </tr> | |||
|
No newline at end of file | ||||
|
17 | <tr> | |||
|
No newline at end of file | ||||
|
18 | <td>{{ form.password.label_tag }}</td> | |||
|
No newline at end of file | ||||
|
19 | <td>{{ form.password }}</td> | |||
|
No newline at end of file | ||||
|
20 | </tr> | |||
|
No newline at end of file | ||||
|
21 | </table> | |||
|
No newline at end of file | ||||
|
22 | ||||
|
No newline at end of file | ||||
|
23 | <input type="submit" value="login" /> | |||
|
No newline at end of file | ||||
|
24 | <input type="hidden" name="next" value="{{ next }}" /> | |||
|
No newline at end of file | ||||
|
25 | </form> | |||
|
No newline at end of file | ||||
|
26 | ||||
|
No newline at end of file | ||||
|
27 | {% endblock %} | |||
|
No newline at end of file | ||||
|
28 | No newline at end of file |
@@ -1,24 +1,26 | |||||
1 | from django.conf.urls import patterns, include, url No newline at end of file |
|
1 | from django.conf.urls import patterns, include, url | |
2 | from django.conf import settings No newline at end of file |
|
2 | from django.conf import settings | |
3 | No newline at end of file |
|
3 | ||
4 | # Uncomment the next two lines to enable the admin: No newline at end of file |
|
4 | # Uncomment the next two lines to enable the admin: | |
5 | from django.contrib import admin No newline at end of file |
|
5 | from django.contrib import admin | |
6 | admin.autodiscover() No newline at end of file |
|
6 | admin.autodiscover() | |
7 | No newline at end of file |
|
7 | ||
8 | urlpatterns = patterns('', No newline at end of file |
|
8 | urlpatterns = patterns('', | |
9 | # Examples: No newline at end of file |
|
9 | # Examples: | |
10 | # url(r'^$', 'abs_webapp_dev.views.home', name='home'), No newline at end of file |
|
10 | # url(r'^$', 'abs_webapp_dev.views.home', name='home'), | |
11 | # url(r'^abs_webapp_dev/', include('abs_webapp_dev.foo.urls')), No newline at end of file |
|
11 | # url(r'^abs_webapp_dev/', include('abs_webapp_dev.foo.urls')), | |
12 | No newline at end of file |
|
12 | ||
13 | # Uncomment the admin/doc line below to enable admin documentation: No newline at end of file |
|
13 | # Uncomment the admin/doc line below to enable admin documentation: | |
14 | # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), No newline at end of file |
|
14 | # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), | |
15 | No newline at end of file |
|
15 | ||
16 | # Uncomment the next line to enable the admin: No newline at end of file |
|
16 | # Uncomment the next line to enable the admin: | |
17 | url(r'^admin/', include(admin.site.urls)), No newline at end of file |
|
17 | url(r'^admin/', include(admin.site.urls)), | |
18 | url(r'^abscontrol/', include('abscontrol.urls')), No newline at end of file |
|
18 | url(r'^abscontrol/', include('abscontrol.urls')), | |
|
19 | url(r'^accounts/login/$', 'django.contrib.auth.views.login'), | |||
|
No newline at end of file | ||||
|
20 | No newline at end of file | |||
19 | ) No newline at end of file |
|
21 | ) | |
20 | No newline at end of file |
|
22 | ||
21 | if settings.DEBUG: No newline at end of file |
|
23 | if settings.DEBUG: | |
22 | urlpatterns = patterns('', No newline at end of file |
|
24 | urlpatterns = patterns('', | |
23 | url(r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), No newline at end of file |
|
25 | url(r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), | |
24 | ) + urlpatterns No newline at end of file |
|
26 | ) + urlpatterns |
@@ -1,64 +1,63 | |||||
1 | {% extends "base.html" %} No newline at end of file |
|
1 | {% extends "base.html" %} | |
2 | No newline at end of file |
|
2 | ||
3 | {% block title %}ABS CONTROL:::::{% endblock %} No newline at end of file |
|
3 | {% block title %}ABS CONTROL:::::{% endblock %} | |
4 | {% block scripting %} No newline at end of file |
|
4 | {% block scripting %} | |
5 | {% if profile_list %} No newline at end of file |
|
5 | {% if profile_list %} | |
6 | <script src="/static/static/js/profiles.js"></script> No newline at end of file |
|
6 | <script src="/static/static/js/profiles.js"></script> | |
7 | {% endif %} No newline at end of file |
|
7 | {% endif %} | |
8 | {% endblock %} No newline at end of file |
|
8 | {% endblock %} | |
9 | {% block content %} No newline at end of file |
|
9 | {% block content %} | |
10 | <div id="content"> No newline at end of file |
|
10 | <div id="content"> | |
11 | {% block topcolumn %} No newline at end of file |
|
11 | {% block topcolumn %} | |
12 | <div id="topcolumn"> No newline at end of file |
|
12 | <div id="topcolumn"> | |
13 | <div id="lsProfiles"> No newline at end of file |
|
13 | <div id="lsProfiles"> | |
14 | <div id="infoProfiles"> No newline at end of file |
|
14 | <div id="infoProfiles"> | |
15 | <label for="lblProfile" class="lblInfo">Profiles: </label> No newline at end of file |
|
15 | <label for="lblProfile" class="lblInfo">Profiles: </label> | |
16 | {% if profile_list %} No newline at end of file |
|
16 | {% if profile_list %} | |
17 | <select name="lsProfiles" id="listProfiles"> No newline at end of file |
|
17 | <select name="lsProfiles" id="listProfiles"> | |
18 | <option value="-1">Choose ...</option> No newline at end of file |
|
18 | <option value="-1">Choose ...</option> | |
19 | {% for entry in profile_list %} No newline at end of file |
|
19 | {% for entry in profile_list %} | |
20 | {% if objProfile %} No newline at end of file |
|
20 | {% if objProfile %} | |
21 | {% if objProfile.id == entry.id %} No newline at end of file |
|
21 | {% if objProfile.id == entry.id %} | |
22 | <option value="{{ entry.id }}" selected>{{ entry.name }}</option> No newline at end of file |
|
22 | <option value="{{ entry.id }}" selected>{{ entry.name }}</option> | |
23 | {% else %} No newline at end of file |
|
23 | {% else %} | |
24 | <option value="{{ entry.id }}">{{ entry.name }}</option> No newline at end of file |
|
24 | <option value="{{ entry.id }}">{{ entry.name }}</option> | |
25 | {% endif %} No newline at end of file |
|
25 | {% endif %} | |
26 | {% else %} No newline at end of file |
|
26 | {% else %} | |
27 | <option value="{{ entry.id }}">{{ entry.name }}</option> No newline at end of file |
|
27 | <option value="{{ entry.id }}">{{ entry.name }}</option> | |
28 | {% endif %} No newline at end of file |
|
28 | {% endif %} | |
29 | {% endfor %} No newline at end of file |
|
29 | {% endfor %} | |
30 | </select> No newline at end of file |
|
30 | </select> | |
31 | {% else %} No newline at end of file |
|
31 | {% else %} | |
32 | <label for="lblMessage" class="lblInfo">No profiles.</label> No newline at end of file |
|
32 | <label for="lblMessage" class="lblInfo">No profiles.</label> | |
33 | {% endif %} No newline at end of file |
|
33 | {% endif %} | |
34 | </div> No newline at end of file |
|
34 | </div> | |
35 | </div> No newline at end of file |
|
35 | </div> | |
36 | {% block mnu_profile %} No newline at end of file |
|
36 | {% block mnu_profile %} | |
37 | <div id="mnuProfiles"> No newline at end of file |
|
37 | <div id="mnuProfiles"> | |
38 | <nav class="MnuHorizontal" id="navProfiles"> No newline at end of file |
|
38 | <nav class="MnuHorizontal" id="navProfiles"> | |
39 | <ul> |
|
39 | <ul> | |
No newline at end of file |
|
40 | <li><a href="{% url abscontrol.views.new %}">New</a></li> No newline at end of file | ||
40 | <li><a href="/abscontrol/new">New</a></li> No newline at end of file |
|
|||
41 | {% if objProfile %} No newline at end of file |
|
41 | {% if objProfile %} | |
42 | <li><a href="/abscontrol/edit/{{ objProfile.id }}">Edit</a></li> No newline at end of file |
|
42 | <li><a href="/abscontrol/edit/{{ objProfile.id }}">Edit</a></li> | |
43 | <li><a href="#">Save</a></li> No newline at end of file |
|
43 | <li><a href="#">Save</a></li> | |
44 | {% endif %} |
|
44 | {% endif %} | |
No newline at end of file |
|
45 | <li><a href="{% url abscontrol.views.importProfile %}">Import</a></li> No newline at end of file | ||
45 | <li><a href="#">Save as</a></li> |
|
|||
No newline at end of file |
|
||||
46 | <li><a href="/abscontrol/import">Import</a></li> No newline at end of file |
|
|||
47 | {% if objProfile %} No newline at end of file |
|
46 | {% if objProfile %} | |
48 | <li><a href="#" id="lnkExport" alt="{{ objProfile.id }}">Export</a></li> No newline at end of file |
|
47 | <li><a href="#" id="lnkExport" alt="{{ objProfile.id }}">Export</a></li> | |
49 | <li><a href="#" id="lnkSendFile" alt="{{ objProfile.id }}">Send</a></li> No newline at end of file |
|
48 | <li><a href="#" id="lnkSendFile" alt="{{ objProfile.id }}">Send</a></li> | |
50 | {% endif %} No newline at end of file |
|
49 | {% endif %} | |
51 | </ul> No newline at end of file |
|
50 | </ul> | |
52 | <div class="cleardivs"></div> No newline at end of file |
|
51 | <div class="cleardivs"></div> | |
53 | </nav> No newline at end of file |
|
52 | </nav> | |
54 | </div> No newline at end of file |
|
53 | </div> | |
55 | {% endblock %} No newline at end of file |
|
54 | {% endblock %} | |
56 | <div class="cleardivs"></div> No newline at end of file |
|
55 | <div class="cleardivs"></div> | |
57 | </div> No newline at end of file |
|
56 | </div> | |
58 | {% endblock %} No newline at end of file |
|
57 | {% endblock %} | |
59 | {% block maincolumn %} No newline at end of file |
|
58 | {% block maincolumn %} | |
60 | <div id="maincolumn" style="height: 50px"></div> No newline at end of file |
|
59 | <div id="maincolumn" style="height: 50px"></div> | |
61 | {% endblock %} No newline at end of file |
|
60 | {% endblock %} | |
62 | <div class="cleardivs"></div> No newline at end of file |
|
61 | <div class="cleardivs"></div> | |
63 | </div> No newline at end of file |
|
62 | </div> | |
64 | {% endblock %} No newline at end of file |
|
63 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now