@@ -1,401 +1,401 | |||
|
1 | 1 | from django.shortcuts import render_to_response, redirect No newline at end of file |
|
2 | 2 | from django.http import HttpResponse No newline at end of file |
|
3 | 3 | from django.conf import settings No newline at end of file |
|
4 | 4 | from django.utils.encoding import smart_str No newline at end of file |
|
5 | 5 | from django.core.servers.basehttp import FileWrapper No newline at end of file |
|
6 | 6 | import mimetypes No newline at end of file |
|
7 | 7 | No newline at end of file |
|
8 | 8 | from datetime import datetime No newline at end of file |
|
9 | 9 | No newline at end of file |
|
10 | 10 | from abscontrol.models import Profile, Pattern, AntennaDown, AntennaUp No newline at end of file |
|
11 | 11 | No newline at end of file |
|
12 | 12 | from util.readABSFile import readABSFile No newline at end of file |
|
13 | 13 | from util.saveABSFile import saveABSFile No newline at end of file |
|
14 | 14 | from scripts.sendFile import sendFile No newline at end of file |
|
15 | 15 | No newline at end of file |
|
16 | 16 | txtAntenna = "[[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ No newline at end of file |
|
17 | 17 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ No newline at end of file |
|
18 | 18 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ No newline at end of file |
|
19 | 19 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ No newline at end of file |
|
20 | 20 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ No newline at end of file |
|
21 | 21 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ No newline at end of file |
|
22 | 22 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ No newline at end of file |
|
23 | 23 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]]" No newline at end of file |
|
24 | 24 | No newline at end of file |
|
25 | 25 | txtTxUp = "[[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
26 | 26 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
27 | 27 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
28 | 28 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
29 | 29 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
30 | 30 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
31 | 31 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
32 | 32 | "[1,1,1,1,1,1,1,1]]" No newline at end of file |
|
33 | 33 | No newline at end of file |
|
34 | 34 | txtTxDown = "[[1,1,1,1,0,0,0,0]," \ No newline at end of file |
|
35 | 35 | "[1,1,1,1,0,0,0,0]," \ No newline at end of file |
|
36 | 36 | "[1,1,1,1,0,0,0,0]," \ No newline at end of file |
|
37 | 37 | "[1,1,1,1,0,0,0,0]," \ No newline at end of file |
|
38 | 38 | "[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
39 | 39 | "[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
40 | 40 | "[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
41 | 41 | "[0,0,0,0,1,1,1,1]]" No newline at end of file |
|
42 | 42 | No newline at end of file |
|
43 | 43 | txtRxUp = "[[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
44 | 44 | "[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
45 | 45 | "[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
46 | 46 | "[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
47 | 47 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
48 | 48 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
49 | 49 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
50 | 50 | "[1,1,1,1,1,1,1,1]]" No newline at end of file |
|
51 | 51 | No newline at end of file |
|
52 | 52 | txtRxDown = "[[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
53 | 53 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
54 | 54 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
55 | 55 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
56 | 56 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
57 | 57 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
58 | 58 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
59 | 59 | "[1,1,1,1,1,1,1,1]]" No newline at end of file |
|
60 | 60 | No newline at end of file |
|
61 | 61 | txtUes = "[0.533333,0.00000,1.06667,0.00000]" No newline at end of file |
|
62 | 62 | No newline at end of file |
|
63 | 63 | def index(request): No newline at end of file |
|
64 | 64 | #latest_poll_list = profileAntenna.objects.all().order_by('-pub_date')[:5] No newline at end of file |
|
65 | 65 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
66 | 66 | return render_to_response('abscontrol/index.html', {'profile_list': profile_list}) No newline at end of file |
|
67 | 67 | No newline at end of file |
|
68 | 68 | def new(request): No newline at end of file |
|
69 | 69 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
70 | 70 | txtProfile = datetime.now().strftime("%Y%m%d%H%M%S%f") No newline at end of file |
|
71 | 71 | newprofile = Profile(name=txtProfile) No newline at end of file |
|
72 | 72 | newprofile.save() No newline at end of file |
|
73 | 73 | No newline at end of file |
|
74 | 74 | lsPatterns = None No newline at end of file |
|
75 | 75 | No newline at end of file |
|
76 | 76 | return render_to_response('abscontrol/new.html', {'profile_list': profile_list, No newline at end of file |
|
77 | 77 | 'txtAntenna' : txtAntenna, No newline at end of file |
|
78 | 78 | 'profile_name' : newprofile.name, No newline at end of file |
|
79 | 79 | 'profile_id' : newprofile.id, No newline at end of file |
|
80 | 80 | 'lsPatterns' : lsPatterns, No newline at end of file |
|
81 | 81 | 'txtUes' : txtUes, 'txtTxUp' : txtTxUp, No newline at end of file |
|
82 | 82 | 'txtTxDown' : txtTxDown, 'txtRxUp' : txtRxUp, No newline at end of file |
|
83 | 83 | 'txtRxDown' : txtRxDown, No newline at end of file |
|
84 | 84 | }) No newline at end of file |
|
85 | 85 | No newline at end of file |
|
86 | 86 | def save(request): No newline at end of file |
|
87 | 87 | No newline at end of file |
|
88 | 88 | txtProfile = request.POST["txtProfile"] No newline at end of file |
|
89 | 89 | No newline at end of file |
|
90 | 90 | txtAntennaUp = request.POST["txtAntennaUp"] No newline at end of file |
|
91 | 91 | txtTxUp = request.POST["txtTxUp"] No newline at end of file |
|
92 | 92 | txtRxUp = request.POST["txtRxUp"] No newline at end of file |
|
93 | 93 | txtUesUp = request.POST["txtUesUp"] No newline at end of file |
|
94 | 94 | No newline at end of file |
|
95 | 95 | txtAntennaDown = request.POST["txtAntennaDown"] No newline at end of file |
|
96 | 96 | txtTxDown = request.POST["txtTxDown"] No newline at end of file |
|
97 | 97 | txtRxDown = request.POST["txtRxDown"] No newline at end of file |
|
98 | 98 | txtUesDown = request.POST["txtUesDown"] No newline at end of file |
|
99 | 99 | No newline at end of file |
|
100 | 100 | newprofile = Profile(name=txtProfile) No newline at end of file |
|
101 | 101 | newprofile.save() No newline at end of file |
|
102 | 102 | No newline at end of file |
|
103 | 103 | newpattern = newprofile.pattern_set.create(value=1) No newline at end of file |
|
104 | 104 | newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) No newline at end of file |
|
105 | 105 | newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) No newline at end of file |
|
106 | 106 | No newline at end of file |
|
107 | 107 | newurl = '/abscontrol/view/%d' % newprofile.id No newline at end of file |
|
108 | 108 | No newline at end of file |
|
109 | 109 | return redirect(newurl) No newline at end of file |
|
110 | 110 | No newline at end of file |
|
111 | 111 | def view(request, profile_id): No newline at end of file |
|
112 | 112 | nextPattern = 0 No newline at end of file |
|
113 | 113 | No newline at end of file |
|
114 | 114 | if request.method == 'GET' and 'pattern' in request.GET: No newline at end of file |
|
115 | 115 | pattern_value = request.GET["pattern"] No newline at end of file |
|
116 | 116 | else: No newline at end of file |
|
117 | 117 | pattern_value = 1 No newline at end of file |
|
118 | 118 | No newline at end of file |
|
119 | 119 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
120 | 120 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
121 | 121 | No newline at end of file |
|
122 | 122 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
123 | 123 | patternChoosen = objProfile.pattern_set.get(value=pattern_value) No newline at end of file |
|
124 | 124 | objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file |
|
125 | 125 | objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file |
|
126 | 126 | No newline at end of file |
|
127 | 127 | if len(lsPatterns) > 1: No newline at end of file |
|
128 | 128 | if pattern_value == 1: No newline at end of file |
|
129 | 129 | nextValuePattern = pattern_value + 1 No newline at end of file |
|
130 | 130 | nextPattern = objProfile.pattern_set.get(value=nextValuePattern) No newline at end of file |
|
131 | 131 | No newline at end of file |
|
132 | 132 | No newline at end of file |
|
133 | 133 | return render_to_response('abscontrol/view.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file |
|
134 | 134 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file |
|
135 | 135 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file |
|
136 | 136 | 'nextPattern' : nextPattern, No newline at end of file |
|
137 | 137 | }) No newline at end of file |
|
138 | 138 | No newline at end of file |
|
139 | 139 | def edit(request, profile_id): No newline at end of file |
|
140 | 140 | if request.method == 'GET' and 'pattern' in request.GET: No newline at end of file |
|
141 | 141 | pattern_value = request.GET["pattern"] No newline at end of file |
|
142 | 142 | else: No newline at end of file |
|
143 | 143 | pattern_value = 1 No newline at end of file |
|
144 | 144 | No newline at end of file |
|
145 | 145 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
146 | 146 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
147 | 147 | No newline at end of file |
|
148 | 148 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
149 | 149 | patternChoosen = objProfile.pattern_set.get(value=pattern_value) No newline at end of file |
|
150 | 150 | objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file |
|
151 | 151 | objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file |
|
152 | 152 | No newline at end of file |
|
153 | 153 | return render_to_response('abscontrol/edit.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file |
|
154 | 154 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file |
|
155 | 155 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file |
|
156 | 156 | }) No newline at end of file |
|
157 | 157 | No newline at end of file |
|
158 | 158 | def addPattern(request, profile_id): No newline at end of file |
|
159 | 159 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
160 | 160 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
161 | 161 | No newline at end of file |
|
162 | 162 | return render_to_response('abscontrol/addPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file |
|
163 | 163 | 'txtAntenna' : txtAntenna, 'txtUes' : txtUes, No newline at end of file |
|
164 | 164 | 'txtTxUp' : txtTxUp, 'txtTxDown' : txtTxDown, No newline at end of file |
|
165 | 165 | 'txtRxUp' : txtRxUp, 'txtRxDown' : txtRxDown, No newline at end of file |
|
166 | 166 | }) No newline at end of file |
|
167 | 167 | No newline at end of file |
|
168 | 168 | def editPattern(request, profile_id, pattern_id): No newline at end of file |
|
169 | 169 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
170 | 170 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
171 | 171 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
172 | 172 | patternChoosen = Pattern.objects.get(pk=pattern_id) No newline at end of file |
|
173 | 173 | objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file |
|
174 | 174 | objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file |
|
175 | 175 | No newline at end of file |
|
176 | 176 | return render_to_response('abscontrol/editPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file |
|
177 | 177 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file |
|
178 | 178 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file |
|
179 | 179 | }) No newline at end of file |
|
180 | 180 | No newline at end of file |
|
181 | 181 | def savePattern(request, profile_id): No newline at end of file |
|
182 | 182 | pattern_id = 0 No newline at end of file |
|
183 | 183 | method = "save" No newline at end of file |
|
184 | 184 | No newline at end of file |
|
185 | 185 | if 'pattern_id' in request.POST: No newline at end of file |
|
186 | 186 | pattern_id = request.POST["pattern_id"] No newline at end of file |
|
187 | 187 | method = "update" No newline at end of file |
|
188 | 188 | No newline at end of file |
|
189 | 189 | maxValuePattern = 0 No newline at end of file |
|
190 | 190 | txtAntennaUp = request.POST["txtAntennaUp"] No newline at end of file |
|
191 | 191 | txtTxUp = request.POST["txtTxUp"] No newline at end of file |
|
192 | 192 | txtRxUp = request.POST["txtRxUp"] No newline at end of file |
|
193 | 193 | txtUesUp = request.POST["txtUesUp"] No newline at end of file |
|
194 | 194 | No newline at end of file |
|
195 | 195 | txtAntennaDown = request.POST["txtAntennaDown"] No newline at end of file |
|
196 | 196 | txtTxDown = request.POST["txtTxDown"] No newline at end of file |
|
197 | 197 | txtRxDown = request.POST["txtRxDown"] No newline at end of file |
|
198 | 198 | txtUesDown = request.POST["txtUesDown"] No newline at end of file |
|
199 | 199 | No newline at end of file |
|
200 | 200 | mode = request.POST["mode"] No newline at end of file |
|
201 | 201 | No newline at end of file |
|
202 | 202 | if method == "save": No newline at end of file |
|
203 | 203 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
204 | 204 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
205 | 205 | if len(lsPatterns) > 0: No newline at end of file |
|
206 | 206 | for element in lsPatterns: No newline at end of file |
|
207 | 207 | if element.value > maxValuePattern: No newline at end of file |
|
208 | 208 | maxPattern = element.value No newline at end of file |
|
209 | 209 | else: No newline at end of file |
|
210 | 210 | maxPattern = 0 No newline at end of file |
|
211 | 211 | No newline at end of file |
|
212 | 212 | if maxPattern < 10 : No newline at end of file |
|
213 | 213 | newValuePattern = maxPattern + 1 No newline at end of file |
|
214 | 214 | newpattern = objProfile.pattern_set.create(value=newValuePattern) No newline at end of file |
|
215 | 215 | newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) No newline at end of file |
|
216 | 216 | newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) No newline at end of file |
|
217 | 217 | error = 0 No newline at end of file |
|
218 | 218 | else: No newline at end of file |
|
219 | 219 | error = 1 # Can not add more patterns No newline at end of file |
|
220 | 220 | No newline at end of file |
|
221 | 221 | if mode == "e": No newline at end of file |
|
222 | 222 | newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), newpattern.id) No newline at end of file |
|
223 | 223 | else: No newline at end of file |
|
224 | 224 | newurl = '/abscontrol/%d/view/%d' % (int(profile_id), newpattern.id) No newline at end of file |
|
225 | 225 | else: No newline at end of file |
|
226 | 226 | txtAntennaUpId = request.POST["txtAntennaUpId"] No newline at end of file |
|
227 | 227 | objAntennaUp = AntennaUp.objects.get(pk=txtAntennaUpId) No newline at end of file |
|
228 | 228 | objAntennaUp.value = txtAntennaUp No newline at end of file |
|
229 | 229 | objAntennaUp.tx = txtTxUp No newline at end of file |
|
230 | 230 | objAntennaUp.rx = txtRxUp No newline at end of file |
|
231 | 231 | objAntennaUp.ues = txtUesUp No newline at end of file |
|
232 | 232 | objAntennaUp.save() No newline at end of file |
|
233 | 233 | No newline at end of file |
|
234 | 234 | txtAntennaDownId = request.POST["txtAntennaDownId"] No newline at end of file |
|
235 | 235 | objAntennaDown = AntennaDown.objects.get(pk=txtAntennaDownId) No newline at end of file |
|
236 | 236 | objAntennaDown.value = txtAntennaDown No newline at end of file |
|
237 | 237 | objAntennaDown.tx = txtTxDown No newline at end of file |
|
238 | 238 | objAntennaDown.rx = txtRxDown No newline at end of file |
|
239 | 239 | objAntennaDown.ues = txtUesDown No newline at end of file |
|
240 | 240 | objAntennaDown.save() No newline at end of file |
|
241 | 241 | No newline at end of file |
|
242 | 242 | if mode == "e": No newline at end of file |
|
243 | 243 | newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), int(pattern_id)) No newline at end of file |
|
244 | 244 | else: No newline at end of file |
|
245 | 245 | newurl = '/abscontrol/%d/view/%d' % (int(profile_id), int(pattern_id)) No newline at end of file |
|
246 | 246 | No newline at end of file |
|
247 | 247 | return redirect(newurl) No newline at end of file |
|
248 | 248 | No newline at end of file |
|
249 | 249 | def viewPattern(request, profile_id, pattern_id): No newline at end of file |
|
250 | 250 | No newline at end of file |
|
251 | 251 | profile_list = Profile.objects.filter(state=1) No newline at end of file |
|
252 | 252 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
253 | 253 | No newline at end of file |
|
254 | 254 | patternChoosen = Pattern.objects.get(pk=pattern_id) No newline at end of file |
|
255 | 255 | No newline at end of file |
|
256 | 256 | objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file |
|
257 | 257 | objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file |
|
258 | 258 | No newline at end of file |
|
259 | 259 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
260 | 260 | No newline at end of file |
|
261 | 261 | return render_to_response('abscontrol/viewPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file |
|
262 | 262 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file |
|
263 | 263 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file |
|
264 | 264 | }) No newline at end of file |
|
265 | 265 | No newline at end of file |
|
266 | 266 | def deletePattern(request, profile_id, pattern_id): No newline at end of file |
|
267 | 267 | newurl = '/abscontrol/edit/%d' % int(profile_id) No newline at end of file |
|
268 | 268 | No newline at end of file |
|
269 | 269 | return redirect(newurl) No newline at end of file |
|
270 | 270 | No newline at end of file |
|
271 | 271 | def importProfile(request): |
|
272 | No newline at end of file | |
|
272 | profile_list = Profile.objects.all() No newline at end of file | |
|
273 | 273 | return render_to_response('abscontrol/import.html', {'profile_list': profile_list,}) No newline at end of file |
|
274 | 274 | No newline at end of file |
|
275 | 275 | def showImport(request): No newline at end of file |
|
276 | 276 | if request.method == 'POST': No newline at end of file |
|
277 | 277 | txtFilename = request.FILES['txtFile'] No newline at end of file |
|
278 | 278 | if txtFilename: No newline at end of file |
|
279 | 279 | destination = open('/tmp/'+txtFilename.name, 'wb+') No newline at end of file |
|
280 | 280 | for chunk in txtFilename.chunks(): No newline at end of file |
|
281 | 281 | destination.write(chunk) No newline at end of file |
|
282 | 282 | destination.close() No newline at end of file |
|
283 | 283 | filename = '/tmp/'+txtFilename.name No newline at end of file |
|
284 | 284 | readFile = readABSFile(filename) No newline at end of file |
|
285 | 285 | expName, num_patterns, patterns = readFile.getMetadata() No newline at end of file |
|
286 | 286 | else: No newline at end of file |
|
287 | 287 | txtFilename = "Error" No newline at end of file |
|
288 | 288 | #content = "Error" No newline at end of file |
|
289 | 289 | expName = "" No newline at end of file |
|
290 | 290 | num_patterns = 0 No newline at end of file |
|
291 | 291 | No newline at end of file |
|
292 | 292 | return render_to_response('abscontrol/upload-edit.html', {'txtFilename': txtFilename, 'patterns' : patterns, No newline at end of file |
|
293 | 293 | 'expName' : expName, 'num_patterns' : num_patterns, No newline at end of file |
|
294 | 294 | }) No newline at end of file |
|
295 | 295 | No newline at end of file |
|
296 | 296 | def saveImport(request): No newline at end of file |
|
297 | 297 | patterns = [] No newline at end of file |
|
298 | 298 | No newline at end of file |
|
299 | 299 | expName = request.POST["txtProfile"] No newline at end of file |
|
300 | 300 | num_patterns = int(request.POST["txtNumPatterns"]) No newline at end of file |
|
301 | 301 | No newline at end of file |
|
302 | 302 | newprofile = Profile(name=expName) No newline at end of file |
|
303 | 303 | newprofile.save() No newline at end of file |
|
304 | 304 | No newline at end of file |
|
305 | 305 | for i in range(0,num_patterns): No newline at end of file |
|
306 | 306 | number = request.POST["txtNumberPattern"+str(i+1)] No newline at end of file |
|
307 | 307 | txtAntennaUp = request.POST["txtAntennaUp"+str(i+1)] No newline at end of file |
|
308 | 308 | txtAntennaDown = request.POST["txtAntennaDown"+str(i+1)] No newline at end of file |
|
309 | 309 | dicPattern = {"number" : number, "up" : txtAntennaUp, "down" : txtAntennaDown} No newline at end of file |
|
310 | 310 | patterns.append(dicPattern) No newline at end of file |
|
311 | 311 | newpattern = newprofile.pattern_set.create(value=number) No newline at end of file |
|
312 | 312 | newpattern.antennaup_set.create(value=txtAntennaUp) No newline at end of file |
|
313 | 313 | newpattern.antennadown_set.create(value=txtAntennaDown) No newline at end of file |
|
314 | 314 | No newline at end of file |
|
315 | 315 | newurl = '/abscontrol/view/%d' % newprofile.id No newline at end of file |
|
316 | 316 | No newline at end of file |
|
317 | 317 | return redirect(newurl) No newline at end of file |
|
318 | 318 | ''' No newline at end of file |
|
319 | 319 | return render_to_response('abscontrol/upload-view.html', {'expName' : expName, 'patterns' : patterns, No newline at end of file |
|
320 | 320 | 'num_patterns' : num_patterns, No newline at end of file |
|
321 | 321 | }) No newline at end of file |
|
322 | 322 | ''' No newline at end of file |
|
323 | 323 | No newline at end of file |
|
324 | 324 | def overJRO(request, profile_id, pattern_id, antenna_id): No newline at end of file |
|
325 | 325 | if request.GET["beam"] == "Up": No newline at end of file |
|
326 | 326 | objAntenna = AntennaUp.objects.get(pk=antenna_id) No newline at end of file |
|
327 | 327 | else: No newline at end of file |
|
328 | 328 | objAntenna = AntennaDown.objects.get(pk=antenna_id) No newline at end of file |
|
329 | 329 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
330 | 330 | exp_name = objProfile.name No newline at end of file |
|
331 | 331 | No newline at end of file |
|
332 | 332 | phase_tx = objAntenna.value No newline at end of file |
|
333 | 333 | gain_tx = objAntenna.tx No newline at end of file |
|
334 | 334 | gain_rx = objAntenna.rx No newline at end of file |
|
335 | 335 | ues_tx = objAntenna.ues No newline at end of file |
|
336 | 336 | only_rx = objAntenna.only_rx No newline at end of file |
|
337 | 337 | No newline at end of file |
|
338 | 338 | return exp_name, phase_tx, gain_tx, gain_rx, ues_tx, only_rx No newline at end of file |
|
339 | 339 | No newline at end of file |
|
340 | 340 | def export(request, profile_id): No newline at end of file |
|
341 | 341 | listPatterns = [] No newline at end of file |
|
342 | 342 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
343 | 343 | exp_name = objProfile.name No newline at end of file |
|
344 | 344 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
345 | 345 | for element in lsPatterns: No newline at end of file |
|
346 | 346 | objAntennaUp = element.antennaup_set.get() No newline at end of file |
|
347 | 347 | objAntennaDown = element.antennadown_set.get() No newline at end of file |
|
348 | 348 | dicPatterns = {"number" : element.value, "up" : objAntennaUp.value, "down" : objAntennaDown.value} No newline at end of file |
|
349 | 349 | listPatterns.append(dicPatterns) No newline at end of file |
|
350 | 350 | No newline at end of file |
|
351 | 351 | absFile = saveABSFile() No newline at end of file |
|
352 | 352 | absFile.setParameters(settings.MEDIA_ROOT, exp_name, listPatterns) No newline at end of file |
|
353 | 353 | filename, filesize = absFile.save() No newline at end of file |
|
354 | 354 | No newline at end of file |
|
355 | 355 | wrapper = FileWrapper( open( filename, "r" ) ) No newline at end of file |
|
356 | 356 | content_type = mimetypes.guess_type( filename )[0] No newline at end of file |
|
357 | 357 | No newline at end of file |
|
358 | 358 | response = HttpResponse(wrapper, content_type = content_type) No newline at end of file |
|
359 | 359 | response['Content-Description'] = 'File Transfer' No newline at end of file |
|
360 | 360 | response['Content-Disposition'] = 'attachment; filename=%s' % smart_str(filename) No newline at end of file |
|
361 | 361 | response['Content-Transfer-Encoding'] = 'binary' No newline at end of file |
|
362 | 362 | response['Expires'] = '0' No newline at end of file |
|
363 | 363 | response['Cache-Control'] = 'must-revalidate' No newline at end of file |
|
364 | 364 | response['Pragma'] = 'public' No newline at end of file |
|
365 | 365 | response['Content-Length'] = '%s' % str(filesize) No newline at end of file |
|
366 | 366 | response['X-Sendfile'] = '%s' % smart_str(filename) No newline at end of file |
|
367 | 367 | No newline at end of file |
|
368 | 368 | return response No newline at end of file |
|
369 | 369 | No newline at end of file |
|
370 | 370 | def send(request, profile_id): No newline at end of file |
|
371 | 371 | listPatterns = [] No newline at end of file |
|
372 | 372 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
373 | 373 | exp_name = objProfile.name No newline at end of file |
|
374 | 374 | No newline at end of file |
|
375 | 375 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
376 | 376 | for element in lsPatterns: No newline at end of file |
|
377 | 377 | objAntennaUp = element.antennaup_set.get() No newline at end of file |
|
378 | 378 | objAntennaDown = element.antennadown_set.get() No newline at end of file |
|
379 | 379 | dicPatterns = {"number" : element.value, "up" : objAntennaUp.value, "down" : objAntennaDown.value} No newline at end of file |
|
380 | 380 | listPatterns.append(dicPatterns) No newline at end of file |
|
381 | 381 | No newline at end of file |
|
382 | 382 | absFile = saveABSFile() No newline at end of file |
|
383 | 383 | absFile.setParameters(settings.MEDIA_ROOT, exp_name, listPatterns) No newline at end of file |
|
384 | 384 | filename, filesize = absFile.save() No newline at end of file |
|
385 | 385 | No newline at end of file |
|
386 | 386 | apiclient = sendFile() No newline at end of file |
|
387 | 387 | apiclient.execute(filename) No newline at end of file |
|
388 | 388 | output = apiclient.getOutput() No newline at end of file |
|
389 | 389 | No newline at end of file |
|
390 | 390 | if output == "OK": No newline at end of file |
|
391 | 391 | message = "File sent successfully." No newline at end of file |
|
392 | 392 | objProfile.hits += 1 No newline at end of file |
|
393 | 393 | objProfile.save() No newline at end of file |
|
394 | 394 | else: No newline at end of file |
|
395 | 395 | message = "Error sending file." No newline at end of file |
|
396 | 396 | No newline at end of file |
|
397 | 397 | profile_list = Profile.objects.all() No newline at end of file |
|
398 | 398 | No newline at end of file |
|
399 | 399 | return render_to_response('abscontrol/sendFile.html', {'message': message, "profile_list" : profile_list, No newline at end of file |
|
400 | 400 | 'objProfile': objProfile, No newline at end of file |
|
401 | 401 | }) No newline at end of file |
@@ -1,97 +1,99 | |||
|
1 | 1 | /* No newline at end of file |
|
2 | 2 | * font-family: 'Droid Sans', sans-serif; No newline at end of file |
|
3 | 3 | * font-family: 'Ubuntu', sans-serif; No newline at end of file |
|
4 | 4 | * font-family: 'Open Sans', sans-serif; No newline at end of file |
|
5 | 5 | * font-family: 'Open Sans Condensed', sans-serif; No newline at end of file |
|
6 | 6 | * font-family: 'Roboto Condensed', sans-serif; No newline at end of file |
|
7 | 7 | */ No newline at end of file |
|
8 | 8 | No newline at end of file |
|
9 | 9 | body { font-size: 12px; } No newline at end of file |
|
10 | 10 | header {border: 1px solid #fcc; font-size: 2em; height: 50px; text-align: center; line-height: 50px} No newline at end of file |
|
11 | 11 | #schema {margin: 0 auto; width: 980px; border: 1px solid #f00 !important; padding: 10px 10px 10px 10px} |
|
12 | No newline at end of file | |
|
12 | #content {border: 1px solid #1cc; margin-top: 5px; margin-bottom: 5px} | |
|
No newline at end of file | ||
|
13 | No newline at end of file | |
|
13 | #content #leftcolumn {float: left;border: 2px solid #f00 !important; width: 160px; } | |
|
No newline at end of file | ||
|
14 | No newline at end of file | |
|
14 | #content #maincolumn {float: left; border: 1px solid #000 !important; width: 780px; margin: 0; padding: 0px 10px } No newline at end of file | |
|
No newline at end of file | ||
|
15 | #content #maincolumn {float: left; border: 0px solid #000 !important; width: 980px; margin: 2px 0px; padding: 0px 0px; | |
|
No newline at end of file | ||
|
16 | box-shadow: 2px 2px 5px #666;} No newline at end of file | |
|
15 | 17 | footer {border: 1px solid #200; font-size: 0.9em; height: 30px; text-align: center; line-height: 20px} No newline at end of file |
|
16 | 18 | No newline at end of file |
|
17 | 19 | .cleardivs {clear: both; border: 0px solid #400; height: 0px} No newline at end of file |
|
18 | 20 | /****************************************************************************************/ No newline at end of file |
|
19 | 21 | /****** ESTILOS GENERALES *****************/ No newline at end of file |
|
20 | 22 | /****************************************************************************************/ No newline at end of file |
|
21 | 23 | .mnu{ height: 22px; border: 0px solid #c55 !important;} No newline at end of file |
|
22 | 24 | .mnu li{ display:inline;} No newline at end of file |
|
23 | 25 | .MnuVertical, .MnuHorizontal { font-family: 'Droid Sans', sans-serif; font-size: 1.2em; font-style: italic; text-shadow: 2px 2px #eee} No newline at end of file |
|
24 | 26 | .MnuHorizontal ul{ list-style: none; list-style-type: none; margin: 0;} No newline at end of file |
|
25 | 27 | No newline at end of file |
|
26 | 28 | /*.MnuHorizontal{ display: -webkit-box; -webkit-box-orient:horizontal;}*/ No newline at end of file |
|
27 | 29 | /*.MnuHorizontal a{ display:block; padding:10px; -webkit-box-flex:1; text-align:center; }*/ No newline at end of file |
|
28 | 30 | No newline at end of file |
|
29 | 31 | /****************************************************************************************/ No newline at end of file |
|
30 | 32 | /****** MENU DE NAVEGACION DE PERFILES **********************************/ No newline at end of file |
|
31 | 33 | /****************************************************************************************/ |
|
34 | No newline at end of file | |
|
32 | #content #infoProfiles {border: 1px solid #1cc !important; width: 100%; margin: 0px; padding-top: 2px; padding-bottom: 2px} | |
|
No newline at end of file | ||
|
35 | No newline at end of file | |
|
33 | .lblInfo {line-height: 20px; padding: 10px 10px 10px 12px; margin: 10px 0} | |
|
No newline at end of file | ||
|
36 | No newline at end of file | |
|
34 | #infoProfiles select {padding-left: 0px; line-height: 25px;margin-left: 12px; font-family: 'Droid Sans', sans-serif; | |
|
No newline at end of file | ||
|
37 | No newline at end of file | |
|
35 | font-size: 11px; letter-spacing: 0.029em;} | |
|
No newline at end of file | ||
|
38 | No newline at end of file | |
|
36 | #content nav {border: 0px solid #c55 !important; margin: 0px;} | |
|
No newline at end of file | ||
|
39 | No newline at end of file | |
|
37 | ||
|
No newline at end of file | ||
|
38 | #leftcolumn #mnuProfiles{ margin: 5px 0px; border: 0px solid #1494F6 !important; } No newline at end of file | |
|
39 | 40 | #mnuProfiles ul{list-style: none; list-style-type: none; margin: 0; padding-left: 20px; border: 0px solid #f00 !important} |
|
41 | No newline at end of file | |
|
40 | #mnuProfiles li{ width: 80px; padding: 2px; border: 0px solid #c55 !important; line-height: 22px} | |
|
No newline at end of file | ||
|
42 | No newline at end of file | |
|
41 | #mnuProfiles a{ font-weight: normal; color: #1494F6; display: block; border: 0px solid #1cc !important; text-align: left} No newline at end of file | |
|
42 | 43 | No newline at end of file |
|
43 | 44 | /****************************************************************************************/ No newline at end of file |
|
44 | 45 | /******** FORMULARIO DE PERFILES *************************************/ No newline at end of file |
|
45 | 46 | /****************************************************************************************/ |
|
47 | No newline at end of file | |
|
46 | #divProfile { border: 0px solid #dff; margin: 10px 0px; padding: 10px 10px; width: 500px } | |
|
No newline at end of file | ||
|
48 | No newline at end of file | |
|
47 | .flsAntenna { margin: 0; width: 750px; padding: 5px } No newline at end of file | |
|
48 | 49 | #divPattern textarea,input[type=text],label{ font-family: "Open Sans"; font-size: inherit; } No newline at end of file |
|
49 | 50 | #divPattern textarea {resize: none; overflow: hidden} |
|
51 | No newline at end of file | |
|
50 | .antenna{ border: 1px solid #1494F6 !important; padding: 5px} No newline at end of file | |
|
51 | 52 | .infoAntenna{ border: 0px solid #f00 !important; width: 480px; float: left} No newline at end of file |
|
52 | 53 | .overJRO{ border: 0px solid #1cc !important; width: 250px; float: left; margin: 0px 5px} No newline at end of file |
|
53 | 54 | .divAntenna { float: left; margin: 10px; border: 0px solid #fcc !important; width: 190px } No newline at end of file |
|
54 | 55 | .divAntenna label{ display: block } No newline at end of file |
|
55 | 56 | .txtAntenna { width: 175px; max-width: 180px; height: 160px; max-height: 165px; background: #fdfdfb; padding: 4px; No newline at end of file |
|
56 | 57 | border: 2px solid #eee !important; /*font-family: "Ubuntu"; font-size: inherit;*/ No newline at end of file |
|
57 | 58 | text-align: justify; margin: 0 auto; line-height: 20px} No newline at end of file |
|
58 | 59 | .divAntenna p{ width: 175px; max-width: 180px; height: 160px; max-height: 165px; background: #fdfdfb; padding: 2px; No newline at end of file |
|
59 | 60 | border: 1px solid #eee !important; font-family: "Ubuntu"; font-size: inherit; No newline at end of file |
|
60 | 61 | text-align: justify; margin: 0 auto; line-height: 20px} No newline at end of file |
|
61 | 62 | No newline at end of file |
|
62 | 63 | .divTx { display: block; float: left; margin: 10px; height: 150px } No newline at end of file |
|
63 | 64 | .divTx label{ display: block } No newline at end of file |
|
64 | 65 | .divTx textarea{ width: 135px; max-width: 135px; height: 135px; max-height: 140px; text-align: justify } No newline at end of file |
|
65 | 66 | .divTx p{ width: 100px; max-width: 105px; height: 160px; max-height: 165px; background: #fdfdfb; padding: 2px; No newline at end of file |
|
66 | 67 | border: 1px solid #eee !important; font-family: "Ubuntu"; font-size: inherit; No newline at end of file |
|
67 | 68 | text-align: justify; margin: 0 auto; line-height: 20px;} No newline at end of file |
|
68 | 69 | No newline at end of file |
|
69 | 70 | .divUes { display: block; margin: 10px} No newline at end of file |
|
70 | 71 | .divUes input[type=text] { width: 240px; max-width: 240px; font-family: "Ubuntu"; font-size: inherit;} No newline at end of file |
|
71 | 72 | |
|
73 | No newline at end of file | |
|
72 | .overJRO img{width: 200; height: 145px; text-align: center; vertical-align: middle; margin: 25px 5px 5px 5px; No newline at end of file | |
|
73 | 74 | display: block; background: #fdfdfb; border: 1px solid #eee !important;} No newline at end of file |
|
74 | 75 | .overJRO a{ text-align: center; margin: 0 auto; display: block} No newline at end of file |
|
75 | 76 | No newline at end of file |
|
76 | 77 | /****************************************************************************************/ No newline at end of file |
|
77 | 78 | /****** MENU DE NAVEGACION DE PATRONES **********************************/ No newline at end of file |
|
78 | 79 | /****************************************************************************************/ |
|
80 | No newline at end of file | |
|
79 | #divMnuPattern{ width: 280px; height: 25px; display: block; border: 0px solid #1cc !important; float: left; margin-left: 500px} | |
|
No newline at end of file | ||
|
81 | No newline at end of file | |
|
80 | #divMnuPattern li{ float: left; display: block; width: 60px; border: 0px solid #2cc !important} No newline at end of file | |
|
No newline at end of file | ||
|
82 | #divMnuPattern li{ float: right; display: block; width: 60px; border: 0px solid #2cc !important} No newline at end of file | |
|
81 | 83 | #divMnuPattern a{ display: block; line-height: 22px; text-decoration: none; padding: 0px 5px; No newline at end of file |
|
82 | 84 | border-bottom: 1px solid #1494F6 !important; margin: 0px 2px; text-align: center; color: #1494F6 No newline at end of file |
|
83 | 85 | } |
|
86 | No newline at end of file | |
|
84 | #infoPattern{ display: block; border: 1px solid #1494f6 !important, margin: 5px 2px; } No newline at end of file | |
|
85 | 87 | |
|
88 | No newline at end of file | |
|
86 | #navPatterns{ margin: 5px auto; border: 0px solid #d00 !important; width: 700px; height: 30px; | |
|
No newline at end of file | ||
|
89 | No newline at end of file | |
|
87 | font-family: 'Ubuntu', sans-serif; font-size: 14px; padding: 10px 0px} | |
|
No newline at end of file | ||
|
90 | No newline at end of file | |
|
88 | #navPatternList{ margin: 0px auto; border: 1px solid #ecc !important} No newline at end of file | |
|
89 | 91 | #navPatternList ul{ list-style: none; list-style-type: none; margin: 0;} No newline at end of file |
|
90 | 92 | #navPatternList ul li{ float: left; width: 50px; border: 1px solid #eee !important; } No newline at end of file |
|
91 | 93 | #navPatternList a{ width: 50px; border: 0px solid #1cc !important; display: block; text-align: center; line-height: 30px; padding: 1px 0px} No newline at end of file |
|
92 | 94 | .lnkPattern{ background-color: #ccc !important; color: #eee;} No newline at end of file |
|
93 | 95 | .lnkPatternSelected{ background-color: #2cc !important; color: #fff;} No newline at end of file |
|
94 | 96 | No newline at end of file |
|
95 | 97 | .divListofPatterns{ width: 650px; display: block; border: 1px solid #1cc !important; margin: 0 auto} No newline at end of file |
|
96 | 98 | .divPattern{ width: 600px; display: block; border: 1px solid #f00 !important; margin: 2px auto; } No newline at end of file |
|
97 | 99 | No newline at end of file |
@@ -1,109 +1,110 | |||
|
1 | 1 | {% extends "abscontrol/index.html" %} No newline at end of file |
|
2 | 2 | {% block title %}ABS CONTROL:::PROFILE:::{{ objProfile.name }}{% endblock %} No newline at end of file |
|
3 | 3 | {% block scripting %} No newline at end of file |
|
4 | 4 | <script src="/static/static/js/patterns.js"></script> No newline at end of file |
|
5 | 5 | {% endblock %} No newline at end of file |
|
6 | 6 | {% block mnu_profile %} No newline at end of file |
|
7 | 7 | <nav class="MnuVertical" id="mnuProfiles"> No newline at end of file |
|
8 | 8 | <ul> No newline at end of file |
|
9 | 9 | <li><a href="/abscontrol/new">New</a></li> No newline at end of file |
|
10 | 10 | <li><a href="#">Save</a></li> No newline at end of file |
|
11 | 11 | <li><a href="#">Save as</a></li> No newline at end of file |
|
12 | 12 | <li><a href="/abscontrol/import">Import</a></li> No newline at end of file |
|
13 | 13 | {% if objProfile %} No newline at end of file |
|
14 | 14 | <li><a href="#" id="lnkExport" alt="{{ objProfile.id }}">Export</a></li> No newline at end of file |
|
15 | 15 | {% endif %} No newline at end of file |
|
16 | 16 | </ul> No newline at end of file |
|
17 | 17 | </nav> No newline at end of file |
|
18 | 18 | {% endblock %} No newline at end of file |
|
19 | 19 | {% block maincolumn%} No newline at end of file |
|
20 | 20 | <div id="maincolumn"> No newline at end of file |
|
21 | 21 | <div id="divProfile"> No newline at end of file |
|
22 | 22 | <label for="lblName">Profile:</label> No newline at end of file |
|
23 | 23 | <label for="lblProfile">{{ objProfile.name }}</label> No newline at end of file |
|
24 | 24 | </div> |
|
No newline at end of file | ||
|
25 | <div id="divPattern"> | |
|
No newline at end of file | ||
|
26 | {% block mnuPattern %} | |
|
No newline at end of file | ||
|
27 | <div class="divMenu" id="divMnuPattern"> | |
|
No newline at end of file | ||
|
28 | <nav class="MnuHorizontal"> | |
|
No newline at end of file | ||
|
29 | <ul class="mnu" id="mnuPattern"> | |
|
No newline at end of file | ||
|
30 | {% if lsPatterns|length < 10 %} | |
|
No newline at end of file | ||
|
31 | <li><a href="/abscontrol/{{ objProfile.id }}/add">Add</a></li> | |
|
No newline at end of file | ||
|
32 | {% endif %} | |
|
No newline at end of file | ||
|
33 | <li><a href="#" class="" id="lnkSave">Save</a></li> | |
|
No newline at end of file | ||
|
34 | {% if lsPatterns|length > 1 %} | |
|
No newline at end of file | ||
|
35 | <li><a href="/abscontrol/{{ objProfile.id }}/delete/{{ patternChoosen.id }}">Delete</a></li> | |
|
No newline at end of file | ||
|
36 | {% endif %} | |
|
No newline at end of file | ||
|
37 | </ul> | |
|
No newline at end of file | ||
|
38 | </nav> | |
|
No newline at end of file | ||
|
39 | </div> | |
|
No newline at end of file | ||
|
40 | <div class="cleardivs"></div> | |
|
No newline at end of file | ||
|
41 | {% endblock %} | |
|
No newline at end of file | ||
|
42 | {% block pattern %} | |
|
No newline at end of file | ||
|
43 | <div id="infoPattern"> No newline at end of file | |
|
44 | 25 |
|
|
45 | 26 |
|
|
46 | 27 |
|
|
47 | 28 |
|
|
48 | 29 |
|
|
49 | 30 |
|
|
50 | 31 |
|
|
51 | 32 |
|
|
52 | 33 |
|
|
53 | 34 |
|
|
54 | 35 |
|
|
55 | 36 |
|
|
56 | 37 |
|
|
57 | 38 |
|
|
58 | 39 |
|
|
40 | <div id="divPattern"> | |
|
No newline at end of file | ||
|
41 | {% block mnuPattern %} | |
|
No newline at end of file | ||
|
42 | <div class="divMenu" id="divMnuPattern"> | |
|
No newline at end of file | ||
|
43 | <nav class="MnuHorizontal"> | |
|
No newline at end of file | ||
|
44 | <ul class="mnu" id="mnuPattern"> | |
|
No newline at end of file | ||
|
45 | {% if lsPatterns|length > 1 %} | |
|
No newline at end of file | ||
|
46 | <li><a href="/abscontrol/{{ objProfile.id }}/delete/{{ patternChoosen.id }}">Delete</a></li> | |
|
No newline at end of file | ||
|
47 | {% endif %} | |
|
No newline at end of file | ||
|
48 | <li><a href="#" class="" id="lnkSave">Save</a></li> | |
|
No newline at end of file | ||
|
49 | {% if lsPatterns|length < 10 %} | |
|
No newline at end of file | ||
|
50 | <li><a href="/abscontrol/{{ objProfile.id }}/add">Add</a></li> | |
|
No newline at end of file | ||
|
51 | {% endif %} | |
|
No newline at end of file | ||
|
52 | </ul> | |
|
No newline at end of file | ||
|
53 | </nav> | |
|
No newline at end of file | ||
|
54 | </div> | |
|
No newline at end of file | ||
|
55 | <div class="cleardivs"></div> | |
|
No newline at end of file | ||
|
56 | {% endblock %} | |
|
No newline at end of file | ||
|
57 | {% block pattern %} | |
|
No newline at end of file | ||
|
58 | <div id="infoPattern"> | |
|
No newline at end of file | ||
|
59 | No newline at end of file | |
|
59 | 60 | <div id="antennaUp"> No newline at end of file |
|
60 | 61 | <fieldset class="flsAntenna"> No newline at end of file |
|
61 | 62 | <legend>UP</legend> No newline at end of file |
|
62 | 63 | <div class="divAntenna"> No newline at end of file |
|
63 | 64 | <label for="lblAntenna">Antenna</label> No newline at end of file |
|
64 | 65 | <textarea name="txtAntennaUp" class="txtAntenna" cols="38" rows="8">{{ antennaUp.value }}</textarea> No newline at end of file |
|
65 | 66 | </div> No newline at end of file |
|
66 | 67 | <div class="divTx"> No newline at end of file |
|
67 | 68 | <label for="lblTx">Tx</label> No newline at end of file |
|
68 | 69 | <textarea name="txtTxUp" class="txtTR" cols="20" rows="8">{{ antennaUp.tx }}</textarea> No newline at end of file |
|
69 | 70 | </div> No newline at end of file |
|
70 | 71 | <div class="divTx"> No newline at end of file |
|
71 | 72 | <label for="lblRx">Rx</label> No newline at end of file |
|
72 | 73 | <textarea name="txtRxUp" class="txtTR" cols="20" rows="8">{{ antennaUp.rx }}</textarea> No newline at end of file |
|
73 | 74 | </div> No newline at end of file |
|
74 | 75 | <div class="cleardivs"></div> No newline at end of file |
|
75 | 76 | <div class="divUes"> No newline at end of file |
|
76 | 77 | <label for="lblUes">Ues:</label> No newline at end of file |
|
77 | 78 | <input type="text" name="txtUesUp" value="{{ antennaUp.ues }}" /> No newline at end of file |
|
78 | 79 | </div> No newline at end of file |
|
79 | 80 | <input type="hidden" name="txtAntennaUpId" value="{{ antennaUp.id }}" /> No newline at end of file |
|
80 | 81 | </fieldset> No newline at end of file |
|
81 | 82 | </div> No newline at end of file |
|
82 | 83 | <div id="antennaDown"> No newline at end of file |
|
83 | 84 | <fieldset class="flsAntenna"> No newline at end of file |
|
84 | 85 | <legend>DOWN</legend> No newline at end of file |
|
85 | 86 | <div class="divAntenna"> No newline at end of file |
|
86 | 87 | <label for="lblAntenna">Antenna</label> No newline at end of file |
|
87 | 88 | <textarea name="txtAntennaDown" class="txtAntenna" cols="38" rows="8">{{ antennaDown.value }}</textarea> No newline at end of file |
|
88 | 89 | </div> No newline at end of file |
|
89 | 90 | <div class="divTx"> No newline at end of file |
|
90 | 91 | <label for="lblTx">Tx</label> No newline at end of file |
|
91 | 92 | <textarea name="txtTxDown" class="txtTR" cols="20" rows="8">{{ antennaDown.tx }}</textarea> No newline at end of file |
|
92 | 93 | </div> No newline at end of file |
|
93 | 94 | <div class="divTx"> No newline at end of file |
|
94 | 95 | <label for="lblRx">Rx</label> No newline at end of file |
|
95 | 96 | <textarea name="txtRxDown" class="txtTR" cols="20" rows="8">{{ antennaDown.rx }}</textarea> No newline at end of file |
|
96 | 97 | </div> No newline at end of file |
|
97 | 98 | <div class="cleardivs"></div> No newline at end of file |
|
98 | 99 | <div class="divUes"> No newline at end of file |
|
99 | 100 | <label for="lblUes">Ues:</label> No newline at end of file |
|
100 | 101 | <input type="text" name="txtUesDown" value="{{ antennaDown.ues }}" /> No newline at end of file |
|
101 | 102 | </div> No newline at end of file |
|
102 | 103 | <input type="hidden" name="txtAntennaDownId" value="{{ antennaDown.id }}" /> No newline at end of file |
|
103 | 104 | </fieldset> No newline at end of file |
|
104 | 105 | </div> No newline at end of file |
|
105 | 106 | </div> No newline at end of file |
|
106 | 107 | {% endblock %} No newline at end of file |
|
107 | 108 | </div> No newline at end of file |
|
108 | 109 | </div> No newline at end of file |
|
109 | 110 | {% endblock %} No newline at end of file |
@@ -1,85 +1,71 | |||
|
1 | 1 | {% extends "abscontrol/edit.html" %} No newline at end of file |
|
2 | 2 | No newline at end of file |
|
3 | 3 | {% block mnuPattern %} No newline at end of file |
|
4 | 4 | <div class="divMenu" id="divMnuPattern"> No newline at end of file |
|
5 | 5 | <nav class="MnuHorizontal"> No newline at end of file |
|
6 | 6 | <ul class="mnu" id="mnuPattern"> No newline at end of file |
|
7 | <li><a href="#" id="lnkCancel">Delete</a></li> | |
|
No newline at end of file | ||
|
8 | <li><a href="#" id="lnkSave">Save</a></li> No newline at end of file | |
|
7 | 9 | {% if lsPatterns|length < 10 %} No newline at end of file |
|
8 | 10 | <li><a href="#" id="lnkAdd">Add</a></li> No newline at end of file |
|
9 | 11 | {% endif %} |
|
No newline at end of file | ||
|
10 | <li><a href="#" id="lnkSave">Save</a></li> | |
|
No newline at end of file | ||
|
11 | <li><a href="#" id="lnkCancel">Delete</a></li> No newline at end of file | |
|
12 | 12 | </ul> No newline at end of file |
|
13 | 13 | </nav> No newline at end of file |
|
14 | 14 | </div> No newline at end of file |
|
15 | 15 | <div class="cleardivs"></div> No newline at end of file |
|
16 | 16 | {% endblock %} No newline at end of file |
|
17 | 17 | {% block pattern %} No newline at end of file |
|
18 | 18 | <div id="infoPattern"> |
|
No newline at end of file | ||
|
19 | <div id="navPatterns"> | |
|
No newline at end of file | ||
|
20 | <nav class="" id="navPatternList"> | |
|
No newline at end of file | ||
|
21 | <ul> | |
|
No newline at end of file | ||
|
22 | {% for element in lsPatterns %} | |
|
No newline at end of file | ||
|
23 | {% if patternChoosen.id == element.id %} | |
|
No newline at end of file | ||
|
24 | <li><a href="/abscontrol/{{ objProfile.id }}/edit/{{ element.id }}" class="lnkPatternSelected">{{ element.value }}</a></li> | |
|
No newline at end of file | ||
|
25 | {% else %} | |
|
No newline at end of file | ||
|
26 | <li><a href="/abscontrol/{{ objProfile.id }}/edit/{{ element.id }}" class="lnkPattern">{{ element.value }}</a></li> | |
|
No newline at end of file | ||
|
27 | {% endif %} | |
|
No newline at end of file | ||
|
28 | {% endfor %} | |
|
No newline at end of file | ||
|
29 | </ul> | |
|
No newline at end of file | ||
|
30 | </nav> | |
|
No newline at end of file | ||
|
31 | </div> | |
|
No newline at end of file | ||
|
32 | <div class="cleardivs"></div> No newline at end of file | |
|
33 | 19 | <form action="/abscontrol/{{ objProfile.id }}/save/" id="frmPattern" method="post"> No newline at end of file |
|
34 | 20 | <div id="antennaUp"> No newline at end of file |
|
35 | 21 | <fieldset class="flsAntenna"> No newline at end of file |
|
36 | 22 | <legend>UP</legend> No newline at end of file |
|
37 | 23 | <div class="divAntenna"> No newline at end of file |
|
38 | 24 | <label for="lblAntenna">Antenna</label> No newline at end of file |
|
39 | 25 | <textarea name="txtAntennaUp" class="txtAntenna" cols="38" rows="8">{{ antennaUp.value }}</textarea> No newline at end of file |
|
40 | 26 | </div> No newline at end of file |
|
41 | 27 | <div class="divTx"> No newline at end of file |
|
42 | 28 | <label for="lblTx">Tx</label> No newline at end of file |
|
43 | 29 | <textarea name="txtTxUp" class="txtTR" cols="20" rows="8">{{ antennaUp.tx }}</textarea> No newline at end of file |
|
44 | 30 | </div> No newline at end of file |
|
45 | 31 | <div class="divTx"> No newline at end of file |
|
46 | 32 | <label for="lblRx">Rx</label> No newline at end of file |
|
47 | 33 | <textarea name="txtRxUp" class="txtTR" cols="20" rows="8">{{ antennaUp.rx }}</textarea> No newline at end of file |
|
48 | 34 | </div> No newline at end of file |
|
49 | 35 | <div class="cleardivs"></div> No newline at end of file |
|
50 | 36 | <div class="divUes"> No newline at end of file |
|
51 | 37 | <label for="lblUes">Ues:</label> No newline at end of file |
|
52 | 38 | <input type="text" name="txtUesUp" value="{{ antennaUp.ues }}" /> No newline at end of file |
|
53 | 39 | </div> No newline at end of file |
|
54 | 40 | <input type="hidden" name="txtAntennaUpId" value="{{ antennaUp.id }}" /> No newline at end of file |
|
55 | 41 | </fieldset> No newline at end of file |
|
56 | 42 | </div> No newline at end of file |
|
57 | 43 | <div id="antennaDown"> No newline at end of file |
|
58 | 44 | <fieldset class="flsAntenna"> No newline at end of file |
|
59 | 45 | <legend>DOWN</legend> No newline at end of file |
|
60 | 46 | <div class="divAntenna"> No newline at end of file |
|
61 | 47 | <label for="lblAntenna">Antenna</label> No newline at end of file |
|
62 | 48 | <textarea name="txtAntennaDown" class="txtAntenna" cols="38" rows="8">{{ antennaDown.value }}</textarea> No newline at end of file |
|
63 | 49 | </div> No newline at end of file |
|
64 | 50 | <div class="divTx"> No newline at end of file |
|
65 | 51 | <label for="lblTx">Tx</label> No newline at end of file |
|
66 | 52 | <textarea name="txtTxDown" class="txtTR" cols="20" rows="8">{{ antennaDown.tx }}</textarea> No newline at end of file |
|
67 | 53 | </div> No newline at end of file |
|
68 | 54 | <div class="divTx"> No newline at end of file |
|
69 | 55 | <label for="lblRx">Rx</label> No newline at end of file |
|
70 | 56 | <textarea name="txtRxDown" class="txtTR" cols="20" rows="8">{{ antennaDown.rx }}</textarea> No newline at end of file |
|
71 | 57 | </div> No newline at end of file |
|
72 | 58 | <div class="cleardivs"></div> No newline at end of file |
|
73 | 59 | <div class="divUes"> No newline at end of file |
|
74 | 60 | <label for="lblUes">Ues:</label> No newline at end of file |
|
75 | 61 | <input type="text" name="txtUesDown" value="{{ antennaDown.ues }}" /> No newline at end of file |
|
76 | 62 | </div> No newline at end of file |
|
77 | 63 | <input type="hidden" name="txtAntennaDownId" value="{{ antennaDown.id }}" /> No newline at end of file |
|
78 | 64 | </fieldset> No newline at end of file |
|
79 | 65 | </div> No newline at end of file |
|
80 | 66 | <input type="hidden" name="pattern_id" id="pattern_id" value="{{ patternChoosen.id }}" /> No newline at end of file |
|
81 | 67 | <input type="hidden" name="profile_id" id="profile_id" value="{{ objProfile.id }}" /> No newline at end of file |
|
82 | 68 | <input type="hidden" name="mode" value="e"> No newline at end of file |
|
83 | 69 | </form> No newline at end of file |
|
84 | 70 | </div> No newline at end of file |
|
85 | 71 | {% endblock %} No newline at end of file |
@@ -1,62 +1,66 | |||
|
1 | 1 | {% extends "base.html" %} No newline at end of file |
|
2 | 2 | No newline at end of file |
|
3 | 3 | {% block title %}ABS CONTROL:::::{% endblock %} No newline at end of file |
|
4 | 4 | {% block scripting %} No newline at end of file |
|
5 | 5 | {% if profile_list %} No newline at end of file |
|
6 | 6 | <script src="/static/static/js/profiles.js"></script> No newline at end of file |
|
7 | 7 | {% endif %} No newline at end of file |
|
8 | 8 | {% endblock %} No newline at end of file |
|
9 | 9 | {% block content %} No newline at end of file |
|
10 | 10 | <div id="content"> |
|
11 | No newline at end of file | |
|
11 | {% block leftcolumn %} | |
|
No newline at end of file | ||
|
12 | No newline at end of file | |
|
12 | <div id="leftcolumn"> No newline at end of file | |
|
13 | 13 | <div id="lsProfiles"> No newline at end of file |
|
14 | 14 | <div id="infoProfiles"> |
|
15 | No newline at end of file | |
|
15 | <label for="lblProfile" class="lblInfo">Profiles:</label><br /> No newline at end of file | |
|
16 | 16 | {% if profile_list %} No newline at end of file |
|
17 | 17 | <select name="lsProfiles" id="listProfiles"> No newline at end of file |
|
18 | 18 | <option value="-1">Choose ...</option> No newline at end of file |
|
19 | 19 | {% for entry in profile_list %} No newline at end of file |
|
20 | 20 | {% if objProfile %} No newline at end of file |
|
21 | 21 | {% if objProfile.id == entry.id %} No newline at end of file |
|
22 | 22 | <option value="{{ entry.id }}" selected>{{ entry.name }}</option> No newline at end of file |
|
23 | 23 | {% else %} No newline at end of file |
|
24 | 24 | <option value="{{ entry.id }}">{{ entry.name }}</option> No newline at end of file |
|
25 | 25 | {% endif %} No newline at end of file |
|
26 | 26 | {% else %} No newline at end of file |
|
27 | 27 | <option value="{{ entry.id }}">{{ entry.name }}</option> No newline at end of file |
|
28 | 28 | {% endif %} No newline at end of file |
|
29 | 29 | {% endfor %} No newline at end of file |
|
30 | 30 | </select> No newline at end of file |
|
31 | 31 | {% else %} No newline at end of file |
|
32 | 32 | <label for="lblMessage" class="lblInfo">No profiles.</label> No newline at end of file |
|
33 | 33 | {% endif %} No newline at end of file |
|
34 | 34 | </div> No newline at end of file |
|
35 | 35 | </div> No newline at end of file |
|
36 | 36 | {% block mnu_profile %} |
|
37 | No newline at end of file | |
|
37 | <nav class="MnuVertical" id="mnuProfiles"> No newline at end of file | |
|
No newline at end of file | ||
|
38 | <nav class="MnuVertical" id="navProfiles"> No newline at end of file | |
|
38 | 39 | <ul> No newline at end of file |
|
39 | 40 | <li><a href="/abscontrol/new">New</a></li> No newline at end of file |
|
40 | 41 | {% if objProfile %} No newline at end of file |
|
41 | 42 | <li><a href="/abscontrol/edit/{{ objProfile.id }}">Edit</a></li> No newline at end of file |
|
42 | 43 | <li><a href="#">Save</a></li> No newline at end of file |
|
43 | 44 | {% endif %} No newline at end of file |
|
44 | 45 | <li><a href="#">Save as</a></li> No newline at end of file |
|
45 | 46 | <li><a href="/abscontrol/import">Import</a></li> No newline at end of file |
|
46 | 47 | {% if objProfile %} No newline at end of file |
|
47 | 48 | <li><a href="#" id="lnkExport" alt="{{ objProfile.id }}">Export</a></li> No newline at end of file |
|
48 | 49 | <li><a href="#" id="lnkSendFile" alt="{{ objProfile.id }}">Send</a></li> No newline at end of file |
|
49 | 50 | {% endif %} No newline at end of file |
|
50 | 51 | </ul> No newline at end of file |
|
52 | <div class="cleardivs"></div> No newline at end of file | |
|
51 | 53 | </nav> No newline at end of file |
|
54 | </div> No newline at end of file | |
|
52 | 55 | {% endblock %} No newline at end of file |
|
56 | <div class="cleardivs"></div> No newline at end of file | |
|
53 | 57 | </div> No newline at end of file |
|
54 | 58 | {% endblock %} No newline at end of file |
|
55 | 59 | {% block maincolumn %} No newline at end of file |
|
56 | 60 | <div id="maincolumn"> No newline at end of file |
|
57 | 61 | No newline at end of file |
|
58 | 62 | </div> No newline at end of file |
|
59 | 63 | {% endblock %} No newline at end of file |
|
60 | 64 | <div class="cleardivs"></div> No newline at end of file |
|
61 | 65 | </div> No newline at end of file |
|
62 | 66 | {% endblock %} No newline at end of file |
@@ -1,130 +1,133 | |||
|
1 | 1 | {% extends "abscontrol/index.html" %} No newline at end of file |
|
2 | 2 | {% block title %}ABS CONTROL:::PROFILE:::{{ objProfile.name }}{% endblock %} No newline at end of file |
|
3 | 3 | No newline at end of file |
|
4 | 4 | {% block mnu_profile %} No newline at end of file |
|
5 | 5 | <nav class="MnuVertical" id="mnuProfiles"> No newline at end of file |
|
6 | 6 | <ul> No newline at end of file |
|
7 | 7 | <li><a href="/abscontrol/new">New</a></li> No newline at end of file |
|
8 | 8 | {% if patternChoosen %} No newline at end of file |
|
9 | 9 | <li><a href="/abscontrol/{{ objProfile.id }}/edit/{{ patternChoosen.id }}">Edit</a></li> No newline at end of file |
|
10 | 10 | {% else %} No newline at end of file |
|
11 | 11 | <li><a href="/abscontrol/edit/{{ objProfile.id }}">Edit</a></li> No newline at end of file |
|
12 | 12 | {% endif %} No newline at end of file |
|
13 | 13 | <li><a href="#">Save as</a></li> No newline at end of file |
|
14 | 14 | <li><a href="/abscontrol/import">Import</a></li> No newline at end of file |
|
15 | 15 | <li><a href="#" id="lnkExport" alt="{{ objProfile.id }}">Export</a></li> No newline at end of file |
|
16 | 16 | <li><a href="#" id="lnkSendFile" alt="{{ objProfile.id }}">Send</a></li> No newline at end of file |
|
17 | 17 | </ul> No newline at end of file |
|
18 | 18 | </nav> No newline at end of file |
|
19 | 19 | {% endblock %} No newline at end of file |
|
20 | 20 | {% block maincolumn%} No newline at end of file |
|
21 | 21 | <div id="maincolumn"> No newline at end of file |
|
22 | 22 | <div id="divProfile"> No newline at end of file |
|
23 | 23 | <label for="lblName">Profile:</label> No newline at end of file |
|
24 | 24 | <label for="lblProfile">{{ objProfile.name }}</label> No newline at end of file |
|
25 | 25 | </div> |
|
No newline at end of file | ||
|
26 | <div id="divPattern"> | |
|
No newline at end of file | ||
|
27 | {% block mnuPattern %} | |
|
No newline at end of file | ||
|
28 | <div class="divMenu" id="divMnuPattern"> | |
|
No newline at end of file | ||
|
29 | <nav class="MnuHorizontal"> | |
|
No newline at end of file | ||
|
30 | <ul class="mnu" id="mnuPattern"> | |
|
No newline at end of file | ||
|
31 | <li><a href="#">Apply</a></li> | |
|
No newline at end of file | ||
|
32 | </ul> | |
|
No newline at end of file | ||
|
33 | </nav> | |
|
No newline at end of file | ||
|
34 | </div> | |
|
No newline at end of file | ||
|
35 | <div class="cleardivs"></div> | |
|
No newline at end of file | ||
|
36 | {% endblock %} | |
|
No newline at end of file | ||
|
37 | <div id="infoPattern"> No newline at end of file | |
|
38 | 26 |
|
|
39 | 27 |
|
|
40 | 28 |
|
|
41 | 29 |
|
|
42 | 30 |
|
|
43 | 31 |
|
|
44 | 32 |
|
|
45 | 33 |
|
|
46 | 34 |
|
|
47 | 35 |
|
|
48 | 36 |
|
|
49 | 37 |
|
|
38 | <div class="cleardivs"></div> No newline at end of file | |
|
50 | 39 |
|
|
51 | 40 |
|
|
52 | 41 |
|
|
42 | {% block mnuPattern %} | |
|
No newline at end of file | ||
|
43 | <div class="divMenu" id="divMnuPattern"> | |
|
No newline at end of file | ||
|
44 | <nav class="MnuHorizontal"> | |
|
No newline at end of file | ||
|
45 | <ul class="mnu" id="mnuPattern"> | |
|
No newline at end of file | ||
|
46 | <li><a href="#">Apply</a></li> | |
|
No newline at end of file | ||
|
47 | </ul> | |
|
No newline at end of file | ||
|
48 | </nav> | |
|
No newline at end of file | ||
|
49 | </div> | |
|
No newline at end of file | ||
|
50 | <div class="cleardivs"></div> | |
|
No newline at end of file | ||
|
51 | {% endblock %} | |
|
No newline at end of file | ||
|
52 | <div id="divPattern"> | |
|
No newline at end of file | ||
|
53 | <div id="infoPattern"> No newline at end of file | |
|
53 | 54 | <div id="antennaUp" class="antenna"> No newline at end of file |
|
54 | 55 | <fieldset class="flsAntenna"> No newline at end of file |
|
55 | 56 | <legend>UP</legend> No newline at end of file |
|
56 | 57 | <div class="infoAntenna"> No newline at end of file |
|
57 | 58 | <div class="divAntenna"> No newline at end of file |
|
58 | 59 | <label for="lblAntenna">Antenna</label> No newline at end of file |
|
59 | 60 | <p>{{ antennaUp.value }}</p> No newline at end of file |
|
60 | 61 | </div> No newline at end of file |
|
61 | 62 | <div class="divTx"> No newline at end of file |
|
62 | 63 | <label for="lblTx">Tx</label> No newline at end of file |
|
63 | 64 | <p>{{ antennaUp.tx }}</p> No newline at end of file |
|
64 | 65 | </div> No newline at end of file |
|
65 | 66 | <div class="divTx"> No newline at end of file |
|
66 | 67 | <label for="lblRx">Rx</label> No newline at end of file |
|
67 | 68 | <p>{{ antennaUp.rx }}</p> No newline at end of file |
|
68 | 69 | </div> No newline at end of file |
|
69 | 70 | <div class="cleardivs"></div> No newline at end of file |
|
70 | 71 | <div class="divUes"> No newline at end of file |
|
71 | 72 | <label for="lblUes">Ues:</label> No newline at end of file |
|
72 | 73 | <label for="lblAntennaUpUes">{{ antennaUp.ues }}</label> No newline at end of file |
|
73 | 74 | {% if antennaUp.only_rx == 0 %} No newline at end of file |
|
74 | 75 | <input type="checkbox" name="chkOnlyRxUp" value="" /> No newline at end of file |
|
75 | 76 | {% else %} No newline at end of file |
|
76 | 77 | <input type="checkbox" name="chkOnlyRxUp" value="" checked="checked"/> No newline at end of file |
|
77 | 78 | {% endif %} No newline at end of file |
|
78 | 79 | <label for="lblOnlyRx">Only RX</label> No newline at end of file |
|
79 | 80 | </div> No newline at end of file |
|
80 | 81 | </div> No newline at end of file |
|
82 | </fieldset> | |
|
No newline at end of file | ||
|
83 | </div> No newline at end of file | |
|
81 | 84 |
|
|
82 | 85 |
|
|
83 | 86 |
|
|
84 | 87 |
|
|
85 | 88 |
|
|
89 | No newline at end of file | |
|
86 | </fieldset> | |
|
No newline at end of file | ||
|
87 | </div> No newline at end of file | |
|
88 | 90 | <div id="antennaDown" class="antenna"> No newline at end of file |
|
89 | 91 | <fieldset class="flsAntenna"> No newline at end of file |
|
90 | 92 | <legend>DOWN</legend> No newline at end of file |
|
91 | 93 | <div class="infoAntenna"> No newline at end of file |
|
92 | 94 | <div class="divAntenna"> No newline at end of file |
|
93 | 95 | <label for="lblAntenna">Antenna</label> No newline at end of file |
|
94 | 96 | <p>{{ antennaDown.value }}</p> No newline at end of file |
|
95 | 97 | </div> No newline at end of file |
|
96 | 98 | <div class="divTx"> No newline at end of file |
|
97 | 99 | <label for="lblTx">Tx</label> No newline at end of file |
|
98 | 100 | <p>{{ antennaDown.tx }}</p> No newline at end of file |
|
99 | 101 | </div> No newline at end of file |
|
100 | 102 | <div class="divTx"> No newline at end of file |
|
101 | 103 | <label for="lblRx">Rx</label> No newline at end of file |
|
102 | 104 | <p>{{ antennaDown.rx }}</p> No newline at end of file |
|
103 | 105 | </div> No newline at end of file |
|
104 | 106 | <div class="cleardivs"></div> No newline at end of file |
|
105 | 107 | <div class="divUes"> No newline at end of file |
|
106 | 108 | <label for="lblUes">Ues:</label> No newline at end of file |
|
107 | 109 | <label for="lblAntennaDownUes">{{ antennaDown.ues }}</label> No newline at end of file |
|
108 | 110 | {% if antennaDown.only_rx == 0 %} No newline at end of file |
|
109 | 111 | <input type="checkbox" name="chkOnlyRxDown" value="" /> No newline at end of file |
|
110 | 112 | {% else %} No newline at end of file |
|
111 | 113 | <input type="checkbox" name="chkOnlyRxDown" value="" checked="checked"/> No newline at end of file |
|
112 | 114 | {% endif %} No newline at end of file |
|
113 | 115 | <label for="lblOnlyRx">Only RX</label> No newline at end of file |
|
114 | 116 | </div> No newline at end of file |
|
115 | 117 | </div> No newline at end of file |
|
118 | ||
|
No newline at end of file | ||
|
119 | </fieldset> | |
|
No newline at end of file | ||
|
120 | </div> No newline at end of file | |
|
116 | 121 |
|
|
117 | 122 |
|
|
118 | 123 |
|
|
119 | 124 |
|
|
120 | 125 |
|
|
No newline at end of file | ||
|
121 | </fieldset> | |
|
No newline at end of file | ||
|
122 | </div> No newline at end of file | |
|
123 | 126 | </div> No newline at end of file |
|
124 | 127 | <input type="hidden" name="txtAntennaUpId" value="{{ antennaUp.id }}"/> No newline at end of file |
|
125 | 128 | <input type="hidden" name="txtAntennaDownId" value="{{ antennaDown.id }}"/> No newline at end of file |
|
126 | 129 | <input type="hidden" name="txtPatternId" value="{{ patternChoosen.id }}"/> No newline at end of file |
|
127 | 130 | <input type="hidden" name="txtProfileId" value="{{ objProfile.id }}"/> No newline at end of file |
|
128 | 131 | </div> No newline at end of file |
|
129 | 132 | </div> No newline at end of file |
|
130 | 133 | {% endblock %} No newline at end of file |
@@ -1,53 +1,48 | |||
|
1 | 1 | {% load static %} No newline at end of file |
|
2 | 2 | <!DOCTYPE html> No newline at end of file |
|
3 | 3 | <html lang="en"> No newline at end of file |
|
4 | 4 | <head> No newline at end of file |
|
5 | 5 | <meta charset="utf-8" /> No newline at end of file |
|
6 | 6 | {% comment %} No newline at end of file |
|
7 | 7 | <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame No newline at end of file |
|
8 | 8 | Remove this if you use the .htaccess --> No newline at end of file |
|
9 | 9 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> No newline at end of file |
|
10 | 10 | {% endcomment %} No newline at end of file |
|
11 | 11 | <link href='http://fonts.googleapis.com/css?family=Droid+Sans|Ubuntu:400,500,300italic|Open+Sans:400,300,600|Open+Sans+Condensed:300,700|Roboto+Condensed:400,300' rel='stylesheet' type='text/css'> No newline at end of file |
|
12 | 12 | <link rel="stylesheet" href="{% static 'static/css/style.css' %}" type="text/css" /> No newline at end of file |
|
13 | 13 | <script src="{% static 'static/js/jquery-1.9.1.min.js' %}"></script> No newline at end of file |
|
14 | 14 | {% block scripting %}{% endblock %} No newline at end of file |
|
15 | 15 | <title>{% block title %}JRO WEB APPS::::{% endblock %}</title> No newline at end of file |
|
16 | 16 | <meta name="description" content="JRO WEB APPLICATIONS" /> No newline at end of file |
|
17 | 17 | <meta name="author" content="Jose Antonio Sal y Rosas Celi" /> No newline at end of file |
|
18 | 18 | No newline at end of file |
|
19 | 19 | {# <meta name="viewport" content="width=device-width; initial-scale=1.0" /> #} No newline at end of file |
|
20 | 20 | {% comment %} No newline at end of file |
|
21 | 21 | <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references --> No newline at end of file |
|
22 | 22 | <link rel="shortcut icon" href="/favicon.ico" /> No newline at end of file |
|
23 | 23 | <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> No newline at end of file |
|
24 | 24 | {% endcomment %} No newline at end of file |
|
25 | 25 | </head> No newline at end of file |
|
26 | 26 | <body> No newline at end of file |
|
27 | 27 | <div id="schema"> No newline at end of file |
|
28 | 28 | <header> No newline at end of file |
|
29 | 29 | {% block header %} No newline at end of file |
|
30 | 30 | <nav> |
|
31 | No newline at end of file | |
|
31 | <a href="/abscontrol">ABS</a> | No newline at end of file | |
|
32 | 32 | <a href="#">CR</a> | No newline at end of file |
|
33 | 33 | <a href="#">DDS</a> | No newline at end of file |
|
34 | 34 | <a href="#">JARS</a> No newline at end of file |
|
35 | 35 | </nav> No newline at end of file |
|
36 | 36 | {% endblock %} No newline at end of file |
|
37 | 37 | </header> No newline at end of file |
|
38 | 38 | {% block content %} |
|
39 | No newline at end of file | |
|
39 | <div id="content"> | |
|
No newline at end of file | ||
|
40 | <nav> | |
|
No newline at end of file | ||
|
41 | <p><a href="/">Home</a></p> | |
|
No newline at end of file | ||
|
42 | <p><a href="/contact">Contact</a></p> | |
|
No newline at end of file | ||
|
43 | </nav> | |
|
No newline at end of file | ||
|
44 | </div> No newline at end of file | |
|
45 | 40 | {% endblock %} No newline at end of file |
|
46 | 41 | <footer> No newline at end of file |
|
47 | 42 | {% block footer %} No newline at end of file |
|
48 | 43 | <p>© Copyright by Jicamarca Radio Observatory</p> No newline at end of file |
|
49 | 44 | {% endblock %} No newline at end of file |
|
50 | 45 | </footer> No newline at end of file |
|
51 | 46 | </div> No newline at end of file |
|
52 | 47 | </body> No newline at end of file |
|
53 | 48 | </html> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now