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