##// END OF EJS Templates
- Estandarizada la funcion de importar archivos ABS para utilizar el mismo formato de manejo de perfiles.
jsalyrosas -
r183:184
parent child
Show More
@@ -0,0 +1,23
1 {% extends "abscontrol/index.html" %}
No newline at end of file
2 {% block title %}ABS CONTROL:::::IMPORT PROFILE{% endblock %}
No newline at end of file
3 {% block scripting %}
No newline at end of file
4 <script src="/static/static/js/profiles.js"></script>
No newline at end of file
5 {% endblock %}
No newline at end of file
6 {% block mnu_profile %}
No newline at end of file
7 <nav class="MnuHorizontal" id="mnuProfiles">
No newline at end of file
8 <ul>
No newline at end of file
9 <li><a href="/abscontrol/new">New</a></li>
No newline at end of file
10 <li><a href="/abscontrol/import">Import</a></li>
No newline at end of file
11 </ul>
No newline at end of file
12 </nav>
No newline at end of file
13 {% endblock %}
No newline at end of file
14 {% block maincolumn %}
No newline at end of file
15 <div id="maincolumn">
No newline at end of file
16 <div id="divPattern">
No newline at end of file
17 <div class="divUes">
No newline at end of file
18 <label for="lblError">Error:</label>
No newline at end of file
19 <p>{{ txtError }}</p>
No newline at end of file
20 </div>
No newline at end of file
21 </div>
No newline at end of file
22 </div>
No newline at end of file
23 {% endblock %} No newline at end of file
@@ -17,8 +17,8
17 #url(r'^(?P<poll_id>\d+)/results/$', 'results'), No newline at end of file
17 #url(r'^(?P<poll_id>\d+)/results/$', 'results'),
18 #url(r'^(?P<poll_id>\d+)/vote/$', 'vote'), No newline at end of file
18 #url(r'^(?P<poll_id>\d+)/vote/$', 'vote'),
19 url(r'^import/$', 'importProfile'),
19 url(r'^import/$', 'importProfile'),
No newline at end of file
20 url(r'^upload/$', 'upload'),
20 url(r'^showImport/$', 'showImport'),
No newline at end of file
No newline at end of file
21 #url(r'^saveImport/$', 'saveImport'), No newline at end of file
21 url(r'^saveImport/$', 'saveImport'), No newline at end of file
22 url(r'^(?P<profile_id>\d+)/(?P<pattern_id>\d+)/overjro/(?P<antenna_id>\d+)/$', 'overJRO'), No newline at end of file
22 url(r'^(?P<profile_id>\d+)/(?P<pattern_id>\d+)/overjro/(?P<antenna_id>\d+)/$', 'overJRO'),
23 url(r'^export/(?P<profile_id>\d+)/$', 'export'), No newline at end of file
23 url(r'^export/(?P<profile_id>\d+)/$', 'export'),
24 url(r'^send/(?P<profile_id>\d+)/$', 'send'), No newline at end of file
24 url(r'^send/(?P<profile_id>\d+)/$', 'send'),
@@ -293,7 +293,7
293 profile_list = Profile.objects.filter(state=1) No newline at end of file
293 profile_list = Profile.objects.filter(state=1)
294 return render_to_response('abscontrol/import.html', {'profile_list': profile_list,}) No newline at end of file
294 return render_to_response('abscontrol/import.html', {'profile_list': profile_list,})
295
295
No newline at end of file
296 def upload(request): No newline at end of file
296 def showImport(request): No newline at end of file
297 profile_list = Profile.objects.filter(state=1) No newline at end of file
297 profile_list = Profile.objects.filter(state=1)
298 if request.method == 'POST': No newline at end of file
298 if request.method == 'POST':
299 txtFilename = request.FILES['txtFile'] No newline at end of file
299 txtFilename = request.FILES['txtFile']
@@ -11,7 +11,7
11 {% endblock %} No newline at end of file
11 {% endblock %}
12 {% block maincolumn %} No newline at end of file
12 {% block maincolumn %}
13 <div id="maincolumn">
13 <div id="maincolumn">
No newline at end of file
14 <form name="frmImport" id="frmImport" action="/abscontrol/upload/" method="post" enctype="multipart/form-data"> No newline at end of file
14 <form name="frmImport" id="frmImport" action="/abscontrol/showImport/" method="post" enctype="multipart/form-data"> No newline at end of file
15 <div id="divPattern"> No newline at end of file
15 <div id="divPattern">
16 <div class="divUes"> No newline at end of file
16 <div class="divUes">
17 <label for="lblFile">Choose File:</label> No newline at end of file
17 <label for="lblFile">Choose File:</label>
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now