@@ -0,0 +1,10 | |||||
|
1 | {% extends "abscontrol/index.html" %} | |||
|
No newline at end of file | ||||
|
2 | {% block title %}ABS CONTROL:::::SENDING FILE{% endblock %} | |||
|
No newline at end of file | ||||
|
3 | ||||
|
No newline at end of file | ||||
|
4 | {% block maincolumn %} | |||
|
No newline at end of file | ||||
|
5 | <div id="maincolumn"> | |||
|
No newline at end of file | ||||
|
6 | <div class="divMessage"> | |||
|
No newline at end of file | ||||
|
7 | <label>{{ message }}</label> | |||
|
No newline at end of file | ||||
|
8 | </div> | |||
|
No newline at end of file | ||||
|
9 | </div> | |||
|
No newline at end of file | ||||
|
10 | {% endblock %} No newline at end of file |
@@ -1,7 +1,9 | |||||
1 | # Django settings for abs_webapp_dev project. No newline at end of file |
|
1 | # Django settings for abs_webapp_dev project. | |
2 |
|
2 | |||
No newline at end of file |
|
3 | import os, sys No newline at end of file | ||
3 | import os No newline at end of file |
|
|||
4 | PROJECT_DIR = os.path.split(os.path.dirname(__file__))[0] No newline at end of file |
|
4 | PROJECT_DIR = os.path.split(os.path.dirname(__file__))[0] | |
|
5 | API_DIR = "/home/dev/workspace/absclient" | |||
|
No newline at end of file | ||||
|
6 | sys.path.append(API_DIR) No newline at end of file | |||
5 | No newline at end of file |
|
7 | ||
6 | DEBUG = True No newline at end of file |
|
8 | DEBUG = True | |
7 | TEMPLATE_DEBUG = DEBUG No newline at end of file |
|
9 | TEMPLATE_DEBUG = DEBUG |
@@ -19,4 +19,5 | |||||
19 | url(r'^saveImport/$', 'saveImport'), No newline at end of file |
|
19 | url(r'^saveImport/$', 'saveImport'), | |
20 | 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'), | |
21 | url(r'^export/(?P<profile_id>\d+)/$', 'export'), No newline at end of file |
|
21 | url(r'^export/(?P<profile_id>\d+)/$', 'export'), | |
|
22 | url(r'^send/(?P<profile_id>\d+)/$', 'send'), No newline at end of file | |||
22 | ) No newline at end of file |
|
23 | ) |
@@ -7,7 +7,7 | |||||
7 | from abscontrol.models import Profile, Pattern, AntennaDown, AntennaUp No newline at end of file |
|
7 | from abscontrol.models import Profile, Pattern, AntennaDown, AntennaUp | |
8 | from util.readABSFile import readABSFile No newline at end of file |
|
8 | from util.readABSFile import readABSFile | |
9 | from util.saveABSFile import saveABSFile |
|
9 | from util.saveABSFile import saveABSFile | |
No newline at end of file |
|
10 | from scripts.sendFile import sendFile No newline at end of file | ||
10 | No newline at end of file |
|
|||
11 | No newline at end of file |
|
11 | ||
12 | txtAntenna = "[[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ No newline at end of file |
|
12 | txtAntenna = "[[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ | |
13 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ No newline at end of file |
|
13 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ |
@@ -27,4 +23,8 | |||||
27 | profile_id = $(this).attr("alt"); No newline at end of file |
|
23 | profile_id = $(this).attr("alt"); | |
28 | location.href="/abscontrol/export/" + profile_id + "/"; No newline at end of file |
|
24 | location.href="/abscontrol/export/" + profile_id + "/"; | |
29 | }); No newline at end of file |
|
25 | }); | |
|
26 | $('#lnkSendFile').click(function(){ | |||
|
No newline at end of file | ||||
|
27 | profile_id = $(this).attr("alt"); | |||
|
No newline at end of file | ||||
|
28 | location.href="/abscontrol/send/" + profile_id + "/"; No newline at end of file | |||
30 | }); No newline at end of file |
|
29 | }); | |
|
30 | }); No newline at end of file |
@@ -24,4 +24,8 | |||||
24 | profile_id = $(this).attr("alt"); No newline at end of file |
|
24 | profile_id = $(this).attr("alt"); | |
25 | location.href="/abscontrol/export/" + profile_id + "/"; No newline at end of file |
|
25 | location.href="/abscontrol/export/" + profile_id + "/"; | |
26 | }); No newline at end of file |
|
26 | }); | |
|
27 | $('#lnkSendFile').click(function(){ | |||
|
No newline at end of file | ||||
|
28 | profile_id = $(this).attr("alt"); | |||
|
No newline at end of file | ||||
|
29 | location.href="/abscontrol/send/" + profile_id + "/"; No newline at end of file | |||
27 | }); No newline at end of file |
|
30 | }); | |
|
31 | }); No newline at end of file |
@@ -45,7 +45,7 | |||||
45 | <li><a href="/abscontrol/import">Import</a></li> No newline at end of file |
|
45 | <li><a href="/abscontrol/import">Import</a></li> | |
46 | {% if objProfile %} No newline at end of file |
|
46 | {% if objProfile %} | |
47 | <li><a href="#" id="lnkExport" alt="{{ objProfile.id }}">Export</a></li> |
|
47 | <li><a href="#" id="lnkExport" alt="{{ objProfile.id }}">Export</a></li> | |
No newline at end of file |
|
48 | <li><a href="#" id="lnkSendFile" alt="{{ objProfile.id }}">Send</a></li> No newline at end of file | ||
48 | <li><a href="#">Apply</a></li> No newline at end of file |
|
|||
49 | {% endif %} No newline at end of file |
|
49 | {% endif %} | |
50 | </ul> No newline at end of file |
|
50 | </ul> | |
51 | </nav> No newline at end of file |
|
51 | </nav> |
General Comments 0
You need to be logged in to leave comments.
Login now