@@ -121,7 +121,7 | |||||
121 | ) |
|
121 | ) | |
122 |
|
122 | |||
123 | TEMPLATE_CONTEXT_PROCESSORS = ( |
|
123 | TEMPLATE_CONTEXT_PROCESSORS = ( | |
124 | 'django.core.context_processors.debug', |
|
124 | #'django.core.context_processors.debug', | |
125 | 'django.core.context_processors.media', |
|
125 | 'django.core.context_processors.media', | |
126 | 'django.core.context_processors.static', |
|
126 | 'django.core.context_processors.static', | |
127 | 'django.contrib.auth.context_processors.auth', |
|
127 | 'django.contrib.auth.context_processors.auth', |
@@ -6,7 +6,7 | |||||
6 | {% endblock %} |
|
6 | {% endblock %} | |
7 | {% block maincolumn%} |
|
7 | {% block maincolumn%} | |
8 | <div id="maincolumn"> |
|
8 | <div id="maincolumn"> | |
9 | <form action="{% url abscontrol.views.upgrade profile_id %}" method="post" id="frmPattern"> |
|
9 | <form action="{% url 'abscontrol.views.upgrade' profile_id %}" method="post" id="frmPattern"> | |
10 | {% csrf_token %} |
|
10 | {% csrf_token %} | |
11 | <div id="divProfile"> |
|
11 | <div id="divProfile"> | |
12 | <label for="lblName">Profile:</label> |
|
12 | <label for="lblName">Profile:</label> |
@@ -2,12 +2,12 | |||||
2 |
|
2 | |||
3 | urlpatterns = patterns('abscontrol.views', |
|
3 | urlpatterns = patterns('abscontrol.views', | |
4 | url(r'^$', 'index'), |
|
4 | url(r'^$', 'index'), | |
5 | url(r'^new/$', 'new'), |
|
5 | url(r'^new/$', 'new', name="new"), | |
6 | url(r'^save/$', 'save'), |
|
6 | url(r'^save/$', 'save', name="save"), | |
7 | url(r'^view/(?P<profile_id>\d+)/$', 'view'), |
|
7 | url(r'^view/(?P<profile_id>\d+)/$', 'view', name="view"), | |
8 | url(r'^edit/(?P<profile_id>\d+)/$', 'edit'), |
|
8 | url(r'^edit/(?P<profile_id>\d+)/$', 'edit', name="edit"), | |
9 | url(r'^update/(?P<profile_id>\d+)/$', 'update'), |
|
9 | url(r'^update/(?P<profile_id>\d+)/$', 'update', name="update"), | |
10 | url(r'^upgrade/(?P<profile_id>\d+)/$', 'upgrade'), |
|
10 | url(r'^upgrade/(?P<profile_id>\d+)/$', 'upgrade', name="upgrade"), | |
11 | url(r'^changeName/(?P<profile_id>\d+)/$', 'changeName'), |
|
11 | url(r'^changeName/(?P<profile_id>\d+)/$', 'changeName'), | |
12 | #url(r'^(?P<profile_id>\d+)/$', 'detail'), |
|
12 | #url(r'^(?P<profile_id>\d+)/$', 'detail'), | |
13 | url(r'^(?P<profile_id>\d+)/add/$', 'addPattern'), |
|
13 | url(r'^(?P<profile_id>\d+)/add/$', 'addPattern'), |
@@ -39,17 +39,17 | |||||
39 | def new(request): |
|
39 | def new(request): | |
40 | profile_list = Profile.objects.filter(state=1) |
|
40 | profile_list = Profile.objects.filter(state=1) | |
41 | txtProfile = datetime.now().strftime("%Y%m%d%H%M%S%f") |
|
41 | txtProfile = datetime.now().strftime("%Y%m%d%H%M%S%f") | |
42 |
new |
|
42 | newProfile = Profile(name=txtProfile) | |
43 |
new |
|
43 | newProfile.save() | |
44 |
|
44 | |||
45 | lsPatterns = None |
|
45 | lsPatterns = None | |
46 |
|
46 | |||
47 | return render_to_response('config/new.html', {'profile_list': profile_list, |
|
47 | return render_to_response('config/new.html', {'profile_list': profile_list, | |
48 |
|
|
48 | 'profile_name' : newProfile.name, | |
49 |
|
|
49 | 'profile_id' : newProfile.id, | |
50 |
|
|
50 | 'lsPatterns' : lsPatterns, | |
51 |
|
|
51 | 'range' : range(8), 'arrayUes' : arrayUes, | |
52 |
|
|
52 | }, context_instance=RequestContext(request)) | |
53 |
|
53 | |||
54 | def save(request): |
|
54 | def save(request): | |
55 |
|
55 |
@@ -14,8 +14,7 | |||||
14 | <title>{% block title %}JRO WEB APPS::::{% endblock %}</title> |
|
14 | <title>{% block title %}JRO WEB APPS::::{% endblock %}</title> | |
15 | <meta name="description" content="JRO WEB APPLICATIONS" /> |
|
15 | <meta name="description" content="JRO WEB APPLICATIONS" /> | |
16 | <meta name="author" content="Jose Antonio Sal y Rosas Celi" /> |
|
16 | <meta name="author" content="Jose Antonio Sal y Rosas Celi" /> | |
17 |
|
17 | <meta name="viewport" content="width=device-width; initial-scale=1.0" /> | ||
18 | {# <meta name="viewport" content="width=device-width; initial-scale=1.0" /> #} |
|
|||
19 | {% comment %} |
|
18 | {% comment %} | |
20 | <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references --> |
|
19 | <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references --> | |
21 | <link rel="shortcut icon" href="/favicon.ico" /> |
|
20 | <link rel="shortcut icon" href="/favicon.ico" /> |
General Comments 0
You need to be logged in to leave comments.
Login now