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