##// END OF EJS Templates
- Correcion de bugs.
jsalyrosas -
r211:212
parent child
Show More
@@ -121,7 +121,7
121 ) No newline at end of file
121 )
122 No newline at end of file
122
123 TEMPLATE_CONTEXT_PROCESSORS = (
123 TEMPLATE_CONTEXT_PROCESSORS = (
No newline at end of file
124 #'django.core.context_processors.debug', No newline at end of file
124 'django.core.context_processors.debug', No newline at end of file
125 'django.core.context_processors.media', No newline at end of file
125 'django.core.context_processors.media',
126 'django.core.context_processors.static', No newline at end of file
126 'django.core.context_processors.static',
127 'django.contrib.auth.context_processors.auth', No newline at end of file
127 'django.contrib.auth.context_processors.auth',
@@ -6,7 +6,7
6 {% endblock %} No newline at end of file
6 {% endblock %}
7 {% block maincolumn%} No newline at end of file
7 {% block maincolumn%}
8 <div id="maincolumn">
8 <div id="maincolumn">
No newline at end of file
9 <form action="{% url 'abscontrol.views.upgrade' profile_id %}" method="post" id="frmPattern"> No newline at end of file
9 <form action="{% url abscontrol.views.upgrade profile_id %}" method="post" id="frmPattern"> No newline at end of file
10 {% csrf_token %} No newline at end of file
10 {% csrf_token %}
11 <div id="divProfile"> No newline at end of file
11 <div id="divProfile">
12 <label for="lblName">Profile:</label> No newline at end of file
12 <label for="lblName">Profile:</label>
@@ -2,12 +2,12
2 No newline at end of file
2
3 urlpatterns = patterns('abscontrol.views', No newline at end of file
3 urlpatterns = patterns('abscontrol.views',
4 url(r'^$', 'index'),
4 url(r'^$', 'index'),
No newline at end of file
5 url(r'^new/$', 'new', name="new"),
5 url(r'^new/$', 'new'),
No newline at end of file
No newline at end of file
6 url(r'^save/$', 'save', name="save"),
6 url(r'^save/$', 'save'),
No newline at end of file
No newline at end of file
7 url(r'^view/(?P<profile_id>\d+)/$', 'view', name="view"),
7 url(r'^view/(?P<profile_id>\d+)/$', 'view'),
No newline at end of file
No newline at end of file
8 url(r'^edit/(?P<profile_id>\d+)/$', 'edit', name="edit"),
8 url(r'^edit/(?P<profile_id>\d+)/$', 'edit'),
No newline at end of file
No newline at end of file
9 url(r'^update/(?P<profile_id>\d+)/$', 'update', name="update"),
9 url(r'^update/(?P<profile_id>\d+)/$', 'update'),
No newline at end of file
No newline at end of file
10 url(r'^upgrade/(?P<profile_id>\d+)/$', 'upgrade', name="upgrade"), No newline at end of file
10 url(r'^upgrade/(?P<profile_id>\d+)/$', 'upgrade'), No newline at end of file
11 url(r'^changeName/(?P<profile_id>\d+)/$', 'changeName'), No newline at end of file
11 url(r'^changeName/(?P<profile_id>\d+)/$', 'changeName'),
12 #url(r'^(?P<profile_id>\d+)/$', 'detail'), No newline at end of file
12 #url(r'^(?P<profile_id>\d+)/$', 'detail'),
13 url(r'^(?P<profile_id>\d+)/add/$', 'addPattern'), No newline at end of file
13 url(r'^(?P<profile_id>\d+)/add/$', 'addPattern'),
@@ -39,14 +39,14
39 def new(request): No newline at end of file
39 def new(request):
40 profile_list = Profile.objects.filter(state=1) No newline at end of file
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")
No newline at end of file
42 newProfile = Profile(name=txtProfile)
42 newprofile = Profile(name=txtProfile)
No newline at end of file
No newline at end of file
43 newProfile.save() No newline at end of file
43 newprofile.save() No newline at end of file
44 No newline at end of file
44
45 lsPatterns = None No newline at end of file
45 lsPatterns = None
46 No newline at end of file
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,
No newline at end of file
48 'profile_name' : newProfile.name,
48 'profile_name' : newprofile.name,
No newline at end of file
No newline at end of file
49 'profile_id' : newProfile.id, No newline at end of file
49 'profile_id' : newprofile.id, No newline at end of file
50 'lsPatterns' : lsPatterns, No newline at end of file
50 'lsPatterns' : lsPatterns,
51 'range' : range(8), 'arrayUes' : arrayUes, No newline at end of file
51 'range' : range(8), 'arrayUes' : arrayUes,
52 }, context_instance=RequestContext(request)) No newline at end of file
52 }, context_instance=RequestContext(request))
@@ -14,8 +14,7
14 <title>{% block title %}JRO WEB APPS::::{% endblock %}</title> No newline at end of file
14 <title>{% block title %}JRO WEB APPS::::{% endblock %}</title>
15 <meta name="description" content="JRO WEB APPLICATIONS" /> No newline at end of file
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" />
No newline at end of file
17 <meta name="viewport" content="width=device-width; initial-scale=1.0" /> No newline at end of file
17
No newline at end of file
18 {# <meta name="viewport" content="width=device-width; initial-scale=1.0" /> #} No newline at end of file
19 {% comment %} No newline at end of file
18 {% comment %}
20 <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references --> No newline at end of file
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" /> No newline at end of file
20 <link rel="shortcut icon" href="/favicon.ico" />
General Comments 0
You need to be logged in to leave comments. Login now