##// END OF EJS Templates
- Almacenados los datos del archivo ABS despues de ser importado.
jsalyrosas -
r155:156
parent child
Show More
@@ -0,0 +1,56
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="MnuVertical" 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="#" id="lnkSaveImport">Save</a></li>
No newline at end of file
11 <li><a href="/abscontrol/import">Import</a></li>
No newline at end of file
12 <li><a href="#">Export</a></li>
No newline at end of file
13 <li><a href="#">Apply</a></li>
No newline at end of file
14 </ul>
No newline at end of file
15 </nav>
No newline at end of file
16 {% endblock %}
No newline at end of file
17 {% block maincolumn %}
No newline at end of file
18 <div id="maincolumn">
No newline at end of file
19 <div id="divPattern">
No newline at end of file
20 <div class="divUes">
No newline at end of file
21 <label for="lblFile">File: {{ txtFilename }}</label>
No newline at end of file
22 </div>
No newline at end of file
23 <form action="/abscontrol/saveImport/" id="frmImportProfile" method="post">
No newline at end of file
24 <div class="divUes">
No newline at end of file
25 <label for="lblExperiment">Experiment: </label>
No newline at end of file
26 <input type="text" name="txtProfile" value="{{ expName }}">
No newline at end of file
27 <br />
No newline at end of file
28 <label for="lblNumber">Number of patterns: {{ num_patterns }}</label>
No newline at end of file
29 <input type="hidden" name="txtNumPatterns" value="{{ num_patterns }}" />
No newline at end of file
30 </div>
No newline at end of file
31 {% if patterns %}
No newline at end of file
32 <div class="divListofPatterns">
No newline at end of file
33 {% for element in patterns %}
No newline at end of file
34 <div class="divPattern">
No newline at end of file
35 <div>
No newline at end of file
36 <label for="lblNumber">Pattern: {{ element.number }}</label>
No newline at end of file
37 <input type="hidden" name="txtNumberPattern{{ element.number }}" value="{{ element.number }}" />
No newline at end of file
38 </div>
No newline at end of file
39 <div class="divAntenna">
No newline at end of file
40 <label for="lblAntennaUp">Antenna Up:</label>
No newline at end of file
41 <textarea name="txtAntennaUp{{ element.number }}" class="txtAntenna" cols="38" rows="8">{{ element.up }}</textarea>
No newline at end of file
42 </div>
No newline at end of file
43 <div class="divAntenna">
No newline at end of file
44 <label for="lblAntennaDown">Antenna Down:</label>
No newline at end of file
45 <textarea name="txtAntennaDown{{ element.number }}" class="txtAntenna" cols="38" rows="8">{{ element.down }}</textarea>
No newline at end of file
46 </div>
No newline at end of file
47 <div class="cleardivs"></div>
No newline at end of file
48 </div>
No newline at end of file
49 <div class="cleardivs"></div>
No newline at end of file
50 {% endfor %}
No newline at end of file
51 </div>
No newline at end of file
52 {% endif %}
No newline at end of file
53 </form>
No newline at end of file
54 </div>
No newline at end of file
55 </div>
No newline at end of file
56 {% endblock %} No newline at end of file
@@ -0,0 +1,45
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
No newline at end of file
4 {% block mnu_profile %}
No newline at end of file
5 <nav class="MnuVertical" id="mnuProfiles">
No newline at end of file
6 <ul>
No newline at end of file
7 <li><a href="/abscontrol/new">New</a></li>
No newline at end of file
8 <li><a href="#">Save</a></li>
No newline at end of file
9 <li><a href="/abscontrol/import">Import</a></li>
No newline at end of file
10 <li><a href="#">Export</a></li>
No newline at end of file
11 <li><a href="#">Apply</a></li>
No newline at end of file
12 </ul>
No newline at end of file
13 </nav>
No newline at end of file
14 {% endblock %}
No newline at end of file
15 {% block maincolumn %}
No newline at end of file
16 <div id="maincolumn">
No newline at end of file
17 <div id="divPattern">
No newline at end of file
18 <div class="divUes">
No newline at end of file
19 <label for="lblExperiment">Experiment: {{ expName }}</label><br />
No newline at end of file
20 <label for="lblNumber">Number of patterns: {{ num_patterns }}</label>
No newline at end of file
21 </div>
No newline at end of file
22 {% if patterns %}
No newline at end of file
23 <div class="divListofPatterns">
No newline at end of file
24 {% for element in patterns %}
No newline at end of file
25 <div class="divPattern">
No newline at end of file
26 <div>
No newline at end of file
27 <label for="lblNumber">Pattern: {{ element.number }}</label>
No newline at end of file
28 </div>
No newline at end of file
29 <div class="divAntenna">
No newline at end of file
30 <label for="lblAntennaUp">Antenna Up:</label>
No newline at end of file
31 <p>{{ element.up }}</p>
No newline at end of file
32 </div>
No newline at end of file
33 <div class="divAntenna">
No newline at end of file
34 <label for="lblAntennaDown">Antenna Down:</label>
No newline at end of file
35 <p>{{ element.down }}</p>
No newline at end of file
36 </div>
No newline at end of file
37 <div class="cleardivs"></div>
No newline at end of file
38 </div>
No newline at end of file
39 <div class="cleardivs"></div>
No newline at end of file
40 {% endfor %}
No newline at end of file
41 </div>
No newline at end of file
42 {% endif %}
No newline at end of file
43 </div>
No newline at end of file
44 </div>
No newline at end of file
45 {% endblock %} No newline at end of file
@@ -15,6 +15,7
15 #url(r'^(?P<poll_id>\d+)/results/$', 'results'), No newline at end of file
15 #url(r'^(?P<poll_id>\d+)/results/$', 'results'),
16 #url(r'^(?P<poll_id>\d+)/vote/$', 'vote'), No newline at end of file
16 #url(r'^(?P<poll_id>\d+)/vote/$', 'vote'),
17 url(r'^import/$', 'importProfile'), No newline at end of file
17 url(r'^import/$', 'importProfile'),
18 url(r'^showImport/$', 'showImport'), No newline at end of file
18 url(r'^saveImport/$', 'saveImport'), No newline at end of file
19 url(r'^saveImport/$', 'saveImport'),
19 url(r'^(?P<profile_id>\d+)/(?P<pattern_id>\d+)/overjro/(?P<antenna_id>\d+)/$', 'overJRO'), No newline at end of file
20 url(r'^(?P<profile_id>\d+)/(?P<pattern_id>\d+)/overjro/(?P<antenna_id>\d+)/$', 'overJRO'),
20 ) No newline at end of file
21 )
@@ -238,10 +238,10
238 return redirect(newurl) No newline at end of file
238 return redirect(newurl)
239 No newline at end of file
239
240 def importProfile(request):
240 def importProfile(request):
No newline at end of file
241 profile_list = Profile.objects.all()
241
No newline at end of file
No newline at end of file
242 return render_to_response('abscontrol/import.html', {'profile_list': profile_list,})
242 return render_to_response('abscontrol/import.html', { })
No newline at end of file
No newline at end of file
243
243
No newline at end of file
No newline at end of file
244 def showImport(request): No newline at end of file
244 def saveImport(request): No newline at end of file
245 if request.method == 'POST': No newline at end of file
245 if request.method == 'POST':
246 txtFilename = request.FILES['txtFile'] No newline at end of file
246 txtFilename = request.FILES['txtFile']
247 if txtFilename: No newline at end of file
247 if txtFilename:
@@ -17,4 +17,7
17 url = "/abscontrol/"+profile_id+"/"+pattern_id+"/overjro/"+field_value+"/?beam="+field_Id; No newline at end of file
17 url = "/abscontrol/"+profile_id+"/"+pattern_id+"/overjro/"+field_value+"/?beam="+field_Id;
18 alert(url); No newline at end of file
18 alert(url);
19 }); No newline at end of file
19 });
20 $('#lnkSaveImport').click(function(){
No newline at end of file
21 $('#frmImportProfile').submit(); No newline at end of file
20 }); No newline at end of file
22 });
23 }); No newline at end of file
@@ -1,9 +1,9
1 {% extends "abscontrol/index.html" %} No newline at end of file
1 {% extends "abscontrol/index.html" %}
2 {% block title %}ABS CONTROL:::::IMPORT PROFILE{% endblock %} No newline at end of file
2 {% block title %}ABS CONTROL:::::IMPORT PROFILE{% endblock %}
3
3
No newline at end of file
4 {% block maincolumn %}
4 {% block content %}
No newline at end of file
No newline at end of file
5 <div id="maincolumn">
5 <div id="content">
No newline at end of file
No newline at end of file
6 <form action="/abscontrol/showImport/" method="post" enctype="multipart/form-data"> No newline at end of file
6 <form action="/abscontrol/saveImport/" method="post" enctype="multipart/form-data"> No newline at end of file
7 <div id="divPattern"> No newline at end of file
7 <div id="divPattern">
8 <div class="divUes"> No newline at end of file
8 <div class="divUes">
9 <label for="lblFile">Choose File:</label> No newline at end of file
9 <label for="lblFile">Choose File:</label>
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