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