##// END OF EJS Templates
- Corregido el bug cuando se agrega el nuevo perfil y agregada nuevos filtros a la plantilla administrador de la aplicacion.
jsalyrosas -
r189:190
parent child
Show More
@@ -1,42 +1,45
1 from abscontrol.models import Profile, Pattern, AntennaUp, AntennaDown No newline at end of file
1 from abscontrol.models import Profile, Pattern, AntennaUp, AntennaDown
2 from django.contrib import admin No newline at end of file
2 from django.contrib import admin
3 No newline at end of file
3
4 class AntennaUpInline(admin.StackedInline): No newline at end of file
4 class AntennaUpInline(admin.StackedInline):
5 model = AntennaUp No newline at end of file
5 model = AntennaUp
6 No newline at end of file
6
7 class AntennaDownInline(admin.StackedInline): No newline at end of file
7 class AntennaDownInline(admin.StackedInline):
8 model = AntennaDown No newline at end of file
8 model = AntennaDown
9 No newline at end of file
9
10 class PatternAdmin(admin.ModelAdmin): No newline at end of file
10 class PatternAdmin(admin.ModelAdmin):
11 fieldsets = [ No newline at end of file
11 fieldsets = [
12 (None, {'fields': ['value']}), No newline at end of file
12 (None, {'fields': ['value']}),
13 ('Date information', {'fields': ['date_create', 'date_modified'], 'classes': ['collapse']}), No newline at end of file
13 ('Date information', {'fields': ['date_create', 'date_modified'], 'classes': ['collapse']}),
14 ] No newline at end of file
14 ]
15 inlines = [AntennaUpInline] No newline at end of file
15 inlines = [AntennaUpInline]
16 inlines = [AntennaDownInline] No newline at end of file
16 inlines = [AntennaDownInline]
17 No newline at end of file
17
18 class PatternInline(admin.StackedInline): No newline at end of file
18 class PatternInline(admin.StackedInline):
19 model = Pattern No newline at end of file
19 model = Pattern
20 readonly_fields = ['date_create', 'date_modified', 'hits'] No newline at end of file
20 readonly_fields = ['date_create', 'date_modified', 'hits']
21 No newline at end of file
21
22 fieldsets = [ No newline at end of file
22 fieldsets = [
23 (None, {'fields': ['value']}), No newline at end of file
23 (None, {'fields': ['value']}),
24 ('Date information', {'fields': [('date_create', 'date_modified')], 'classes': ['collapse']}), No newline at end of file
24 ('Date information', {'fields': [('date_create', 'date_modified')], 'classes': ['collapse']}),
25 ('State', {'fields': ['hits', 'state'], 'classes': ['collapse', 'wide', 'extrapretty']}), No newline at end of file
25 ('State', {'fields': ['hits', 'state'], 'classes': ['collapse', 'wide', 'extrapretty']}),
26 ] No newline at end of file
26 ]
27 extra = 0 No newline at end of file
27 extra = 0
28 No newline at end of file
28
29 class ProfileAdmin(admin.ModelAdmin): No newline at end of file
29 class ProfileAdmin(admin.ModelAdmin):
30 list_display = ('name', 'date_create','hits','state')
No newline at end of file
31 list_filter = ['state','date_create','date_modified']
No newline at end of file
32 date_hierarchy = 'date_create' No newline at end of file
30 readonly_fields = ['date_create', 'date_modified','hits'] No newline at end of file
33 readonly_fields = ['date_create', 'date_modified','hits']
31 fieldsets = [ No newline at end of file
34 fieldsets = [
32 (None, {'fields': ['name']}), No newline at end of file
35 (None, {'fields': ['name']}),
33 ('Date information', {'fields': [('date_create', 'date_modified')], 'classes': ['collapse']}), No newline at end of file
36 ('Date information', {'fields': [('date_create', 'date_modified')], 'classes': ['collapse']}),
34 ('State', {'fields': ['hits', 'state'], 'classes': ['collapse']}), No newline at end of file
37 ('State', {'fields': ['hits', 'state'], 'classes': ['collapse']}),
35 ] No newline at end of file
38 ]
36 inlines = [PatternInline] No newline at end of file
39 inlines = [PatternInline]
37 No newline at end of file
40
38 No newline at end of file
41
39 admin.site.register(Profile, ProfileAdmin) No newline at end of file
42 admin.site.register(Profile, ProfileAdmin)
40 #admin.site.register(Pattern, PatternAdmin) No newline at end of file
43 #admin.site.register(Pattern, PatternAdmin)
41 #admin.site.register(AntennaUp) No newline at end of file
44 #admin.site.register(AntennaUp)
42 #admin.site.register(AntennaDown) No newline at end of file
45 #admin.site.register(AntennaDown)
@@ -1,25 +1,26
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'), No newline at end of file
8 url(r'^edit/(?P<profile_id>\d+)/$', 'edit'),
9 url(r'^update/(?P<profile_id>\d+)/$', 'update'), No newline at end of file
9 url(r'^update/(?P<profile_id>\d+)/$', 'update'),
10 url(r'^upgrade/(?P<profile_id>\d+)/$', 'upgrade'), No newline at end of file
10 url(r'^changeName/(?P<profile_id>\d+)/$', 'changeName'), No newline at end of file
11 url(r'^changeName/(?P<profile_id>\d+)/$', 'changeName'),
11 #url(r'^(?P<profile_id>\d+)/$', 'detail'), No newline at end of file
12 #url(r'^(?P<profile_id>\d+)/$', 'detail'),
12 url(r'^(?P<profile_id>\d+)/add/$', 'addPattern'), No newline at end of file
13 url(r'^(?P<profile_id>\d+)/add/$', 'addPattern'),
13 url(r'^(?P<profile_id>\d+)/save/$', 'savePattern'), No newline at end of file
14 url(r'^(?P<profile_id>\d+)/save/$', 'savePattern'),
14 url(r'^(?P<profile_id>\d+)/edit/(?P<pattern_id>\d+)/$', 'editPattern'), No newline at end of file
15 url(r'^(?P<profile_id>\d+)/edit/(?P<pattern_id>\d+)/$', 'editPattern'),
15 url(r'^(?P<profile_id>\d+)/view/(?P<pattern_id>\d+)/$', 'viewPattern'), No newline at end of file
16 url(r'^(?P<profile_id>\d+)/view/(?P<pattern_id>\d+)/$', 'viewPattern'),
16 url(r'^(?P<profile_id>\d+)/delete/(?P<pattern_id>\d+)/$', 'deletePattern'), No newline at end of file
17 url(r'^(?P<profile_id>\d+)/delete/(?P<pattern_id>\d+)/$', 'deletePattern'),
17 #url(r'^(?P<poll_id>\d+)/results/$', 'results'), No newline at end of file
18 #url(r'^(?P<poll_id>\d+)/results/$', 'results'),
18 #url(r'^(?P<poll_id>\d+)/vote/$', 'vote'), No newline at end of file
19 #url(r'^(?P<poll_id>\d+)/vote/$', 'vote'),
19 url(r'^import/$', 'importProfile'), No newline at end of file
20 url(r'^import/$', 'importProfile'),
20 url(r'^upload/$', 'upload'), No newline at end of file
21 url(r'^upload/$', 'upload'),
21 #url(r'^saveImport/$', 'saveImport'), No newline at end of file
22 #url(r'^saveImport/$', 'saveImport'),
22 url(r'^(?P<profile_id>\d+)/(?P<pattern_id>\d+)/overjro/(?P<antenna_id>\d+)/$', 'overJRO'), No newline at end of file
23 url(r'^(?P<profile_id>\d+)/(?P<pattern_id>\d+)/overjro/(?P<antenna_id>\d+)/$', 'overJRO'),
23 url(r'^export/(?P<profile_id>\d+)/$', 'export'), No newline at end of file
24 url(r'^export/(?P<profile_id>\d+)/$', 'export'),
24 url(r'^send/(?P<profile_id>\d+)/$', 'send'), No newline at end of file
25 url(r'^send/(?P<profile_id>\d+)/$', 'send'),
25 ) No newline at end of file
26 )
@@ -1,410 +1,430
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 'range' : range(8), No newline at end of file
84 'range' : range(8),
85 }) No newline at end of file
85 })
86 No newline at end of file
86
87 def save(request): No newline at end of file
87 def save(request):
88 No newline at end of file
88
89 txtProfile = request.POST["txtProfile"] No newline at end of file
89 txtProfile = request.POST["txtProfile"]
90 No newline at end of file
90
91 txtAntennaUp = request.POST["txtAntennaUp"] No newline at end of file
91 txtAntennaUp = request.POST["txtAntennaUp"]
92 txtTxUp = request.POST["txtTxUp"] No newline at end of file
92 txtTxUp = request.POST["txtTxUp"]
93 txtRxUp = request.POST["txtRxUp"] No newline at end of file
93 txtRxUp = request.POST["txtRxUp"]
94 txtUesUp = request.POST["txtUesUp"] No newline at end of file
94 txtUesUp = request.POST["txtUesUp"]
95 No newline at end of file
95
96 txtAntennaDown = request.POST["txtAntennaDown"] No newline at end of file
96 txtAntennaDown = request.POST["txtAntennaDown"]
97 txtTxDown = request.POST["txtTxDown"] No newline at end of file
97 txtTxDown = request.POST["txtTxDown"]
98 txtRxDown = request.POST["txtRxDown"] No newline at end of file
98 txtRxDown = request.POST["txtRxDown"]
99 txtUesDown = request.POST["txtUesDown"] No newline at end of file
99 txtUesDown = request.POST["txtUesDown"]
100 No newline at end of file
100
101 newprofile = Profile(name=txtProfile) No newline at end of file
101 newprofile = Profile(name=txtProfile)
102 newprofile.save() No newline at end of file
102 newprofile.save()
103 No newline at end of file
103
104 newpattern = newprofile.pattern_set.create(value=1) No newline at end of file
104 newpattern = newprofile.pattern_set.create(value=1)
105 newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) No newline at end of file
105 newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp)
106 newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) No newline at end of file
106 newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown)
107 No newline at end of file
107
108 newurl = '/abscontrol/view/%d' % newprofile.id No newline at end of file
108 newurl = '/abscontrol/view/%d' % newprofile.id
109 No newline at end of file
109
110 return redirect(newurl)
No newline at end of file
111
No newline at end of file
112 # Update temporal experiment
No newline at end of file
113 def upgrade(request, profile_id):
No newline at end of file
114 txtAntennaUp = request.POST["txtAntennaUp"]
No newline at end of file
115 txtTxUp = request.POST["txtTxUp"]
No newline at end of file
116 txtRxUp = request.POST["txtRxUp"]
No newline at end of file
117 txtUesUp = request.POST["txtUesUp"]
No newline at end of file
118
No newline at end of file
119 txtAntennaDown = request.POST["txtAntennaDown"]
No newline at end of file
120 txtTxDown = request.POST["txtTxDown"]
No newline at end of file
121 txtRxDown = request.POST["txtRxDown"]
No newline at end of file
122 txtUesDown = request.POST["txtUesDown"]
No newline at end of file
123
No newline at end of file
124 objProfile = Profile.objects.get(pk=profile_id)
No newline at end of file
125 newpattern = objProfile.pattern_set.create(value=1)
No newline at end of file
126 newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp)
No newline at end of file
127 newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown)
No newline at end of file
128
No newline at end of file
129 newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), newpattern.id) No newline at end of file
110 return redirect(newurl) No newline at end of file
130 return redirect(newurl)
111 No newline at end of file
131
112 def update(request, profile_id): No newline at end of file
132 def update(request, profile_id):
113 txtProfile = request.POST["txtProfile"] No newline at end of file
133 txtProfile = request.POST["txtProfile"]
114 No newline at end of file
134
115 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
135 objProfile = Profile.objects.get(pk=profile_id)
116 objProfile.name = txtProfile No newline at end of file
136 objProfile.name = txtProfile
117 objProfile.state = 1 No newline at end of file
137 objProfile.state = 1
118 objProfile.save() No newline at end of file
138 objProfile.save()
119 No newline at end of file
139
120 newurl = '/abscontrol/view/%d' % objProfile.id No newline at end of file
140 newurl = '/abscontrol/view/%d' % objProfile.id
121 return redirect(newurl) No newline at end of file
141 return redirect(newurl)
122 No newline at end of file
142
123 def changeName(request, profile_id): No newline at end of file
143 def changeName(request, profile_id):
124 profile_list = Profile.objects.filter(state=1) No newline at end of file
144 profile_list = Profile.objects.filter(state=1)
125 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
145 objProfile = Profile.objects.get(pk=profile_id)
126 lsPatterns = objProfile.pattern_set.all() No newline at end of file
146 lsPatterns = objProfile.pattern_set.all()
127 No newline at end of file
147
128 return render_to_response('abscontrol/changeName.html', {'profile_list': profile_list, No newline at end of file
148 return render_to_response('abscontrol/changeName.html', {'profile_list': profile_list,
129 'objProfile': objProfile, No newline at end of file
149 'objProfile': objProfile,
130 'lsPatterns' : lsPatterns, No newline at end of file
150 'lsPatterns' : lsPatterns,
131 }) No newline at end of file
151 })
132 No newline at end of file
152
133 def view(request, profile_id): No newline at end of file
153 def view(request, profile_id):
134 nextPattern = 0 No newline at end of file
154 nextPattern = 0
135 No newline at end of file
155
136 if request.method == 'GET' and 'pattern' in request.GET: No newline at end of file
156 if request.method == 'GET' and 'pattern' in request.GET:
137 pattern_value = request.GET["pattern"] No newline at end of file
157 pattern_value = request.GET["pattern"]
138 else: No newline at end of file
158 else:
139 pattern_value = 1 No newline at end of file
159 pattern_value = 1
140 No newline at end of file
160
141 profile_list = Profile.objects.filter(state=1) No newline at end of file
161 profile_list = Profile.objects.filter(state=1)
142 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
162 objProfile = Profile.objects.get(pk=profile_id)
143 No newline at end of file
163
144 lsPatterns = objProfile.pattern_set.all() No newline at end of file
164 lsPatterns = objProfile.pattern_set.all()
145 patternChoosen = objProfile.pattern_set.get(value=pattern_value) No newline at end of file
165 patternChoosen = objProfile.pattern_set.get(value=pattern_value)
146 objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file
166 objAntennaUp = patternChoosen.antennaup_set.get()
147 objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file
167 objAntennaDown = patternChoosen.antennadown_set.get()
148 No newline at end of file
168
149 if len(lsPatterns) > 1: No newline at end of file
169 if len(lsPatterns) > 1:
150 if pattern_value == 1: No newline at end of file
170 if pattern_value == 1:
151 nextValuePattern = pattern_value + 1 No newline at end of file
171 nextValuePattern = pattern_value + 1
152 nextPattern = objProfile.pattern_set.get(value=nextValuePattern) No newline at end of file
172 nextPattern = objProfile.pattern_set.get(value=nextValuePattern)
153 No newline at end of file
173
154 No newline at end of file
174
155 return render_to_response('abscontrol/view.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file
175 return render_to_response('abscontrol/view.html', {'objProfile': objProfile, 'profile_list': profile_list,
156 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file
176 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns,
157 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file
177 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown,
158 'nextPattern' : nextPattern, No newline at end of file
178 'nextPattern' : nextPattern,
159 }) No newline at end of file
179 })
160 No newline at end of file
180
161 def edit(request, profile_id): No newline at end of file
181 def edit(request, profile_id):
162 if request.method == 'GET' and 'pattern' in request.GET: No newline at end of file
182 if request.method == 'GET' and 'pattern' in request.GET:
163 pattern_value = request.GET["pattern"] No newline at end of file
183 pattern_value = request.GET["pattern"]
164 else: No newline at end of file
184 else:
165 pattern_value = 1 No newline at end of file
185 pattern_value = 1
166 No newline at end of file
186
167 profile_list = Profile.objects.filter(state=1) No newline at end of file
187 profile_list = Profile.objects.filter(state=1)
168 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
188 objProfile = Profile.objects.get(pk=profile_id)
169 No newline at end of file
189
170 lsPatterns = objProfile.pattern_set.all() No newline at end of file
190 lsPatterns = objProfile.pattern_set.all()
171 patternChoosen = objProfile.pattern_set.get(value=pattern_value) No newline at end of file
191 patternChoosen = objProfile.pattern_set.get(value=pattern_value)
172 objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file
192 objAntennaUp = patternChoosen.antennaup_set.get()
173 objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file
193 objAntennaDown = patternChoosen.antennadown_set.get()
174 No newline at end of file
194
175 return render_to_response('abscontrol/edit.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file
195 return render_to_response('abscontrol/edit.html', {'objProfile': objProfile, 'profile_list': profile_list,
176 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file
196 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns,
177 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file
197 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown,
178 }) No newline at end of file
198 })
179 No newline at end of file
199
180 def addPattern(request, profile_id): No newline at end of file
200 def addPattern(request, profile_id):
181 profile_list = Profile.objects.filter(state=1) No newline at end of file
201 profile_list = Profile.objects.filter(state=1)
182 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
202 objProfile = Profile.objects.get(pk=profile_id)
183 No newline at end of file
203
184 return render_to_response('abscontrol/addPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file
204 return render_to_response('abscontrol/addPattern.html', {'objProfile': objProfile, 'profile_list': profile_list,
185 'txtAntenna' : txtAntenna, 'txtUes' : txtUes, No newline at end of file
205 'txtAntenna' : txtAntenna, 'txtUes' : txtUes,
186 'txtTxUp' : txtTxUp, 'txtTxDown' : txtTxDown, No newline at end of file
206 'txtTxUp' : txtTxUp, 'txtTxDown' : txtTxDown,
187 'txtRxUp' : txtRxUp, 'txtRxDown' : txtRxDown, No newline at end of file
207 'txtRxUp' : txtRxUp, 'txtRxDown' : txtRxDown,
188 }) No newline at end of file
208 })
189 No newline at end of file
209
190 def editPattern(request, profile_id, pattern_id): No newline at end of file
210 def editPattern(request, profile_id, pattern_id):
191 profile_list = Profile.objects.filter(state=1) No newline at end of file
211 profile_list = Profile.objects.filter(state=1)
192 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
212 objProfile = Profile.objects.get(pk=profile_id)
193 lsPatterns = objProfile.pattern_set.all() No newline at end of file
213 lsPatterns = objProfile.pattern_set.all()
194 patternChoosen = Pattern.objects.get(pk=pattern_id) No newline at end of file
214 patternChoosen = Pattern.objects.get(pk=pattern_id)
195 objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file
215 objAntennaUp = patternChoosen.antennaup_set.get()
196 objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file
216 objAntennaDown = patternChoosen.antennadown_set.get()
197 No newline at end of file
217
198 return render_to_response('abscontrol/editPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file
218 return render_to_response('abscontrol/editPattern.html', {'objProfile': objProfile, 'profile_list': profile_list,
199 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file
219 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns,
200 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file
220 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown,
201 }) No newline at end of file
221 })
202 No newline at end of file
222
203 def savePattern(request, profile_id): No newline at end of file
223 def savePattern(request, profile_id):
204 pattern_id = 0 No newline at end of file
224 pattern_id = 0
205 method = "save" No newline at end of file
225 method = "save"
206 No newline at end of file
226
207 if 'pattern_id' in request.POST: No newline at end of file
227 if 'pattern_id' in request.POST:
208 pattern_id = request.POST["pattern_id"] No newline at end of file
228 pattern_id = request.POST["pattern_id"]
209 method = "update" No newline at end of file
229 method = "update"
210 No newline at end of file
230
211 maxValuePattern = 0 No newline at end of file
231 maxValuePattern = 0
212 txtAntennaUp = request.POST["txtAntennaUp"] No newline at end of file
232 txtAntennaUp = request.POST["txtAntennaUp"]
213 txtTxUp = request.POST["txtTxUp"] No newline at end of file
233 txtTxUp = request.POST["txtTxUp"]
214 txtRxUp = request.POST["txtRxUp"] No newline at end of file
234 txtRxUp = request.POST["txtRxUp"]
215 txtUesUp = request.POST["txtUesUp"] No newline at end of file
235 txtUesUp = request.POST["txtUesUp"]
216 No newline at end of file
236
217 txtAntennaDown = request.POST["txtAntennaDown"] No newline at end of file
237 txtAntennaDown = request.POST["txtAntennaDown"]
218 txtTxDown = request.POST["txtTxDown"] No newline at end of file
238 txtTxDown = request.POST["txtTxDown"]
219 txtRxDown = request.POST["txtRxDown"] No newline at end of file
239 txtRxDown = request.POST["txtRxDown"]
220 txtUesDown = request.POST["txtUesDown"] No newline at end of file
240 txtUesDown = request.POST["txtUesDown"]
221 No newline at end of file
241
222 mode = request.POST["mode"] No newline at end of file
242 mode = request.POST["mode"]
223 No newline at end of file
243
224 if method == "save": No newline at end of file
244 if method == "save":
225 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
245 objProfile = Profile.objects.get(pk=profile_id)
226 lsPatterns = objProfile.pattern_set.all() No newline at end of file
246 lsPatterns = objProfile.pattern_set.all()
227 if len(lsPatterns) > 0: No newline at end of file
247 if len(lsPatterns) > 0:
228 for element in lsPatterns: No newline at end of file
248 for element in lsPatterns:
229 if element.value > maxValuePattern: No newline at end of file
249 if element.value > maxValuePattern:
230 maxPattern = element.value No newline at end of file
250 maxPattern = element.value
231 else: No newline at end of file
251 else:
232 maxPattern = 0 No newline at end of file
252 maxPattern = 0
233 No newline at end of file
253
234 if maxPattern < 10 : No newline at end of file
254 if maxPattern < 10 :
235 newValuePattern = maxPattern + 1 No newline at end of file
255 newValuePattern = maxPattern + 1
236 newpattern = objProfile.pattern_set.create(value=newValuePattern) No newline at end of file
256 newpattern = objProfile.pattern_set.create(value=newValuePattern)
237 newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) No newline at end of file
257 newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp)
238 newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) No newline at end of file
258 newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown)
239 error = 0 No newline at end of file
259 error = 0
240 else: No newline at end of file
260 else:
241 error = 1 # Can not add more patterns No newline at end of file
261 error = 1 # Can not add more patterns
242 No newline at end of file
262
243 if mode == "e": No newline at end of file
263 if mode == "e":
244 newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), newpattern.id) No newline at end of file
264 newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), newpattern.id)
245 else: No newline at end of file
265 else:
246 newurl = '/abscontrol/%d/view/%d' % (int(profile_id), newpattern.id) No newline at end of file
266 newurl = '/abscontrol/%d/view/%d' % (int(profile_id), newpattern.id)
247 else: No newline at end of file
267 else:
248 txtAntennaUpId = request.POST["txtAntennaUpId"] No newline at end of file
268 txtAntennaUpId = request.POST["txtAntennaUpId"]
249 objAntennaUp = AntennaUp.objects.get(pk=txtAntennaUpId) No newline at end of file
269 objAntennaUp = AntennaUp.objects.get(pk=txtAntennaUpId)
250 objAntennaUp.value = txtAntennaUp No newline at end of file
270 objAntennaUp.value = txtAntennaUp
251 objAntennaUp.tx = txtTxUp No newline at end of file
271 objAntennaUp.tx = txtTxUp
252 objAntennaUp.rx = txtRxUp No newline at end of file
272 objAntennaUp.rx = txtRxUp
253 objAntennaUp.ues = txtUesUp No newline at end of file
273 objAntennaUp.ues = txtUesUp
254 objAntennaUp.save() No newline at end of file
274 objAntennaUp.save()
255 No newline at end of file
275
256 txtAntennaDownId = request.POST["txtAntennaDownId"] No newline at end of file
276 txtAntennaDownId = request.POST["txtAntennaDownId"]
257 objAntennaDown = AntennaDown.objects.get(pk=txtAntennaDownId) No newline at end of file
277 objAntennaDown = AntennaDown.objects.get(pk=txtAntennaDownId)
258 objAntennaDown.value = txtAntennaDown No newline at end of file
278 objAntennaDown.value = txtAntennaDown
259 objAntennaDown.tx = txtTxDown No newline at end of file
279 objAntennaDown.tx = txtTxDown
260 objAntennaDown.rx = txtRxDown No newline at end of file
280 objAntennaDown.rx = txtRxDown
261 objAntennaDown.ues = txtUesDown No newline at end of file
281 objAntennaDown.ues = txtUesDown
262 objAntennaDown.save() No newline at end of file
282 objAntennaDown.save()
263 No newline at end of file
283
264 if mode == "e": No newline at end of file
284 if mode == "e":
265 newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), int(pattern_id)) No newline at end of file
285 newurl = '/abscontrol/%d/edit/%d' % (int(profile_id), int(pattern_id))
266 else: No newline at end of file
286 else:
267 newurl = '/abscontrol/%d/view/%d' % (int(profile_id), int(pattern_id)) No newline at end of file
287 newurl = '/abscontrol/%d/view/%d' % (int(profile_id), int(pattern_id))
268 No newline at end of file
288
269 return redirect(newurl) No newline at end of file
289 return redirect(newurl)
270 No newline at end of file
290
271 def viewPattern(request, profile_id, pattern_id): No newline at end of file
291 def viewPattern(request, profile_id, pattern_id):
272 No newline at end of file
292
273 profile_list = Profile.objects.filter(state=1) No newline at end of file
293 profile_list = Profile.objects.filter(state=1)
274 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
294 objProfile = Profile.objects.get(pk=profile_id)
275 No newline at end of file
295
276 patternChoosen = Pattern.objects.get(pk=pattern_id) No newline at end of file
296 patternChoosen = Pattern.objects.get(pk=pattern_id)
277 No newline at end of file
297
278 objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file
298 objAntennaUp = patternChoosen.antennaup_set.get()
279 objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file
299 objAntennaDown = patternChoosen.antennadown_set.get()
280 No newline at end of file
300
281 lsPatterns = objProfile.pattern_set.all() No newline at end of file
301 lsPatterns = objProfile.pattern_set.all()
282 No newline at end of file
302
283 return render_to_response('abscontrol/viewPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file
303 return render_to_response('abscontrol/viewPattern.html', {'objProfile': objProfile, 'profile_list': profile_list,
284 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file
304 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns,
285 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, No newline at end of file
305 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown,
286 }) No newline at end of file
306 })
287 No newline at end of file
307
288 def deletePattern(request, profile_id, pattern_id): No newline at end of file
308 def deletePattern(request, profile_id, pattern_id):
289 newurl = '/abscontrol/edit/%d' % int(profile_id) No newline at end of file
309 newurl = '/abscontrol/edit/%d' % int(profile_id)
290 No newline at end of file
310
291 return redirect(newurl) No newline at end of file
311 return redirect(newurl)
292 No newline at end of file
312
293 def importProfile(request): No newline at end of file
313 def importProfile(request):
294 profile_list = Profile.objects.filter(state=1) No newline at end of file
314 profile_list = Profile.objects.filter(state=1)
295 return render_to_response('abscontrol/import.html', {'profile_list': profile_list,}) No newline at end of file
315 return render_to_response('abscontrol/import.html', {'profile_list': profile_list,})
296 No newline at end of file
316
297 def upload(request): No newline at end of file
317 def upload(request):
298 profile_list = Profile.objects.filter(state=1) No newline at end of file
318 profile_list = Profile.objects.filter(state=1)
299 if request.method == 'POST': No newline at end of file
319 if request.method == 'POST':
300 txtFilename = request.FILES['txtFile'] No newline at end of file
320 txtFilename = request.FILES['txtFile']
301 if txtFilename: No newline at end of file
321 if txtFilename:
302 destination = open('/tmp/'+txtFilename.name, 'wb+') No newline at end of file
322 destination = open('/tmp/'+txtFilename.name, 'wb+')
303 for chunk in txtFilename.chunks(): No newline at end of file
323 for chunk in txtFilename.chunks():
304 destination.write(chunk) No newline at end of file
324 destination.write(chunk)
305 destination.close() No newline at end of file
325 destination.close()
306 filename = '/tmp/'+txtFilename.name No newline at end of file
326 filename = '/tmp/'+txtFilename.name
307 readFile = readABSFile(filename) No newline at end of file
327 readFile = readABSFile(filename)
308 expName, num_patterns, patterns = readFile.getMetadata() No newline at end of file
328 expName, num_patterns, patterns = readFile.getMetadata()
309 No newline at end of file
329
310 if expName != "" and num_patterns > 0: No newline at end of file
330 if expName != "" and num_patterns > 0:
311 newprofile = Profile(name=expName) No newline at end of file
331 newprofile = Profile(name=expName)
312 newprofile.save() No newline at end of file
332 newprofile.save()
313 newprofile.state = 1 No newline at end of file
333 newprofile.state = 1
314 No newline at end of file
334
315 for element in patterns: No newline at end of file
335 for element in patterns:
316 newpattern = newprofile.pattern_set.create(value=element["number"]) No newline at end of file
336 newpattern = newprofile.pattern_set.create(value=element["number"])
317 newpattern.antennaup_set.create(value=element["up"]) No newline at end of file
337 newpattern.antennaup_set.create(value=element["up"])
318 newpattern.antennadown_set.create(value=element["down"]) No newline at end of file
338 newpattern.antennadown_set.create(value=element["down"])
319 No newline at end of file
339
320 newprofile.save() No newline at end of file
340 newprofile.save()
321 No newline at end of file
341
322 newurl = '/abscontrol/edit/%d' % int(newprofile.id) No newline at end of file
342 newurl = '/abscontrol/edit/%d' % int(newprofile.id)
323 return redirect(newurl) No newline at end of file
343 return redirect(newurl)
324 else: No newline at end of file
344 else:
325 txtError = "Experiment's name not found or the number of patterns is 0." No newline at end of file
345 txtError = "Experiment's name not found or the number of patterns is 0."
326 return render_to_response('abscontrol/error.html', {'profile_list': profile_list, No newline at end of file
346 return render_to_response('abscontrol/error.html', {'profile_list': profile_list,
327 'txtError' : txtError, }) No newline at end of file
347 'txtError' : txtError, })
328 else: No newline at end of file
348 else:
329 txtError = "No file." No newline at end of file
349 txtError = "No file."
330 No newline at end of file
350
331 return render_to_response('abscontrol/error.html', {'profile_list': profile_list, 'txtError' : txtError, }) No newline at end of file
351 return render_to_response('abscontrol/error.html', {'profile_list': profile_list, 'txtError' : txtError, })
332 No newline at end of file
352
333 def overJRO(request, profile_id, pattern_id, antenna_id): No newline at end of file
353 def overJRO(request, profile_id, pattern_id, antenna_id):
334 if request.GET["beam"] == "Up": No newline at end of file
354 if request.GET["beam"] == "Up":
335 objAntenna = AntennaUp.objects.get(pk=antenna_id) No newline at end of file
355 objAntenna = AntennaUp.objects.get(pk=antenna_id)
336 else: No newline at end of file
356 else:
337 objAntenna = AntennaDown.objects.get(pk=antenna_id) No newline at end of file
357 objAntenna = AntennaDown.objects.get(pk=antenna_id)
338 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
358 objProfile = Profile.objects.get(pk=profile_id)
339 exp_name = objProfile.name No newline at end of file
359 exp_name = objProfile.name
340 No newline at end of file
360
341 phase_tx = objAntenna.value No newline at end of file
361 phase_tx = objAntenna.value
342 gain_tx = objAntenna.tx No newline at end of file
362 gain_tx = objAntenna.tx
343 gain_rx = objAntenna.rx No newline at end of file
363 gain_rx = objAntenna.rx
344 ues_tx = objAntenna.ues No newline at end of file
364 ues_tx = objAntenna.ues
345 only_rx = objAntenna.only_rx No newline at end of file
365 only_rx = objAntenna.only_rx
346 No newline at end of file
366
347 return exp_name, phase_tx, gain_tx, gain_rx, ues_tx, only_rx No newline at end of file
367 return exp_name, phase_tx, gain_tx, gain_rx, ues_tx, only_rx
348 No newline at end of file
368
349 def export(request, profile_id): No newline at end of file
369 def export(request, profile_id):
350 listPatterns = [] No newline at end of file
370 listPatterns = []
351 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
371 objProfile = Profile.objects.get(pk=profile_id)
352 exp_name = objProfile.name No newline at end of file
372 exp_name = objProfile.name
353 lsPatterns = objProfile.pattern_set.all() No newline at end of file
373 lsPatterns = objProfile.pattern_set.all()
354 for element in lsPatterns: No newline at end of file
374 for element in lsPatterns:
355 objAntennaUp = element.antennaup_set.get() No newline at end of file
375 objAntennaUp = element.antennaup_set.get()
356 objAntennaDown = element.antennadown_set.get() No newline at end of file
376 objAntennaDown = element.antennadown_set.get()
357 dicPatterns = {"number" : element.value, "up" : objAntennaUp.value, "down" : objAntennaDown.value} No newline at end of file
377 dicPatterns = {"number" : element.value, "up" : objAntennaUp.value, "down" : objAntennaDown.value}
358 listPatterns.append(dicPatterns) No newline at end of file
378 listPatterns.append(dicPatterns)
359 No newline at end of file
379
360 absFile = saveABSFile() No newline at end of file
380 absFile = saveABSFile()
361 absFile.setParameters(settings.MEDIA_ROOT, exp_name, listPatterns) No newline at end of file
381 absFile.setParameters(settings.MEDIA_ROOT, exp_name, listPatterns)
362 filename, filesize = absFile.save() No newline at end of file
382 filename, filesize = absFile.save()
363 No newline at end of file
383
364 wrapper = FileWrapper( open( filename, "r" ) ) No newline at end of file
384 wrapper = FileWrapper( open( filename, "r" ) )
365 content_type = mimetypes.guess_type( filename )[0] No newline at end of file
385 content_type = mimetypes.guess_type( filename )[0]
366 No newline at end of file
386
367 response = HttpResponse(wrapper, content_type = content_type) No newline at end of file
387 response = HttpResponse(wrapper, content_type = content_type)
368 response['Content-Description'] = 'File Transfer' No newline at end of file
388 response['Content-Description'] = 'File Transfer'
369 response['Content-Disposition'] = 'attachment; filename=%s' % smart_str(filename) No newline at end of file
389 response['Content-Disposition'] = 'attachment; filename=%s' % smart_str(filename)
370 response['Content-Transfer-Encoding'] = 'binary' No newline at end of file
390 response['Content-Transfer-Encoding'] = 'binary'
371 response['Expires'] = '0' No newline at end of file
391 response['Expires'] = '0'
372 response['Cache-Control'] = 'must-revalidate' No newline at end of file
392 response['Cache-Control'] = 'must-revalidate'
373 response['Pragma'] = 'public' No newline at end of file
393 response['Pragma'] = 'public'
374 response['Content-Length'] = '%s' % str(filesize) No newline at end of file
394 response['Content-Length'] = '%s' % str(filesize)
375 response['X-Sendfile'] = '%s' % smart_str(filename) No newline at end of file
395 response['X-Sendfile'] = '%s' % smart_str(filename)
376 No newline at end of file
396
377 return response No newline at end of file
397 return response
378 No newline at end of file
398
379 def send(request, profile_id): No newline at end of file
399 def send(request, profile_id):
380 listPatterns = [] No newline at end of file
400 listPatterns = []
381 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
401 objProfile = Profile.objects.get(pk=profile_id)
382 exp_name = objProfile.name No newline at end of file
402 exp_name = objProfile.name
383 No newline at end of file
403
384 lsPatterns = objProfile.pattern_set.all() No newline at end of file
404 lsPatterns = objProfile.pattern_set.all()
385 for element in lsPatterns: No newline at end of file
405 for element in lsPatterns:
386 objAntennaUp = element.antennaup_set.get() No newline at end of file
406 objAntennaUp = element.antennaup_set.get()
387 objAntennaDown = element.antennadown_set.get() No newline at end of file
407 objAntennaDown = element.antennadown_set.get()
388 dicPatterns = {"number" : element.value, "up" : objAntennaUp.value, "down" : objAntennaDown.value} No newline at end of file
408 dicPatterns = {"number" : element.value, "up" : objAntennaUp.value, "down" : objAntennaDown.value}
389 listPatterns.append(dicPatterns) No newline at end of file
409 listPatterns.append(dicPatterns)
390 No newline at end of file
410
391 absFile = saveABSFile() No newline at end of file
411 absFile = saveABSFile()
392 absFile.setParameters(settings.MEDIA_ROOT, exp_name, listPatterns) No newline at end of file
412 absFile.setParameters(settings.MEDIA_ROOT, exp_name, listPatterns)
393 filename, filesize = absFile.save() No newline at end of file
413 filename, filesize = absFile.save()
394 No newline at end of file
414
395 apiclient = sendFile() No newline at end of file
415 apiclient = sendFile()
396 apiclient.execute(filename) No newline at end of file
416 apiclient.execute(filename)
397 output = apiclient.getOutput() No newline at end of file
417 output = apiclient.getOutput()
398 No newline at end of file
418
399 if output == "OK": No newline at end of file
419 if output == "OK":
400 message = "File sent successfully." No newline at end of file
420 message = "File sent successfully."
401 objProfile.hits += 1 No newline at end of file
421 objProfile.hits += 1
402 objProfile.save() No newline at end of file
422 objProfile.save()
403 else: No newline at end of file
423 else:
404 message = "Error sending file." No newline at end of file
424 message = "Error sending file."
405 No newline at end of file
425
406 profile_list = Profile.objects.all() No newline at end of file
426 profile_list = Profile.objects.all()
407 No newline at end of file
427
408 return render_to_response('abscontrol/sendFile.html', {'message': message, "profile_list" : profile_list, No newline at end of file
428 return render_to_response('abscontrol/sendFile.html', {'message': message, "profile_list" : profile_list,
409 'objProfile': objProfile, No newline at end of file
429 'objProfile': objProfile,
410 }) No newline at end of file
430 })
@@ -1,467 +1,467
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 { No newline at end of file
9 body {
10 padding: 0; No newline at end of file
10 padding: 0;
11 margin: 0; No newline at end of file
11 margin: 0;
12 font-size: 12px; } No newline at end of file
12 font-size: 12px; }
13 No newline at end of file
13
14 header { No newline at end of file
14 header {
15 width: 980px; No newline at end of file
15 width: 980px;
16 height: 50px; No newline at end of file
16 height: 50px;
17 text-align: center; No newline at end of file
17 text-align: center;
18 line-height: 50px; No newline at end of file
18 line-height: 50px;
19 border: 0px solid #fcc !important; } No newline at end of file
19 border: 0px solid #fcc !important; }
20 No newline at end of file
20
21 #schema { No newline at end of file
21 #schema {
22 margin: 0 auto; No newline at end of file
22 margin: 0 auto;
23 width: 980px; No newline at end of file
23 width: 980px;
24 padding: 10px 10px; No newline at end of file
24 padding: 10px 10px;
25 border: 0px solid #f00 !important; } No newline at end of file
25 border: 0px solid #f00 !important; }
26 No newline at end of file
26
27 #content { No newline at end of file
27 #content {
28 margin: 5px 0px; No newline at end of file
28 margin: 5px 0px;
29 border: 0px solid #1cc; } No newline at end of file
29 border: 0px solid #1cc; }
30 No newline at end of file
30
31 #topcolumn { No newline at end of file
31 #topcolumn {
32 float: left; No newline at end of file
32 float: left;
33 width: 980px; No newline at end of file
33 width: 980px;
34 height: 40px; No newline at end of file
34 height: 40px;
35 line-height: 35px; No newline at end of file
35 line-height: 35px;
36 margin: 2px 0px; No newline at end of file
36 margin: 2px 0px;
37 border: 1px solid #ddd !important; No newline at end of file
37 border: 1px solid #ddd !important;
38 box-shadow: 2px 2px 5px #888; } No newline at end of file
38 box-shadow: 2px 2px 5px #888; }
39 No newline at end of file
39
40 #maincolumn { No newline at end of file
40 #maincolumn {
41 float: left; No newline at end of file
41 float: left;
42 width: 980px; No newline at end of file
42 width: 980px;
43 margin: 2px 0px; No newline at end of file
43 margin: 2px 0px;
44 padding: 0px 0px; No newline at end of file
44 padding: 0px 0px;
45 border: 1px solid #ddd !important; No newline at end of file
45 border: 1px solid #ddd !important;
46 box-shadow: 2px 2px 5px #666; } No newline at end of file
46 box-shadow: 2px 2px 5px #666; }
47 No newline at end of file
47
48 footer { No newline at end of file
48 footer {
49 height: 30px; No newline at end of file
49 height: 30px;
50 line-height: 30px; No newline at end of file
50 line-height: 30px;
51 text-align: center; No newline at end of file
51 text-align: center;
52 margin: 0px 0px; No newline at end of file
52 margin: 0px 0px;
53 border: 0px solid #200 !important; No newline at end of file
53 border: 0px solid #200 !important;
54 box-shadow: 2px 2px 5px #888; } No newline at end of file
54 box-shadow: 2px 2px 5px #888; }
55 No newline at end of file
55
56 .cleardivs { No newline at end of file
56 .cleardivs {
57 clear: both; No newline at end of file
57 clear: both;
58 border: 0px solid #400; No newline at end of file
58 border: 0px solid #400;
59 height: 0px; } No newline at end of file
59 height: 0px; }
60 No newline at end of file
60
61 textarea { No newline at end of file
61 textarea {
62 resize: none; No newline at end of file
62 resize: none;
63 overflow: hidden; } No newline at end of file
63 overflow: hidden; }
64 No newline at end of file
64
65 /****************************************************************************************/ No newline at end of file
65 /****************************************************************************************/
66 /****** ESTILOS GENERALES *****************/ No newline at end of file
66 /****** ESTILOS GENERALES *****************/
67 /****************************************************************************************/ No newline at end of file
67 /****************************************************************************************/
68 .mnu { No newline at end of file
68 .mnu {
69 height: 22px; No newline at end of file
69 height: 22px;
70 border: 0px solid #c55 !important; } No newline at end of file
70 border: 0px solid #c55 !important; }
71 No newline at end of file
71
72 .mnu li { No newline at end of file
72 .mnu li {
73 display:inline; } No newline at end of file
73 display:inline; }
74 No newline at end of file
74
75 .MnuVertical, .MnuHorizontal { No newline at end of file
75 .MnuVertical, .MnuHorizontal {
76 font-family: 'Droid Sans', sans-serif; No newline at end of file
76 font-family: 'Droid Sans', sans-serif;
77 font-size: inherit; No newline at end of file
77 font-size: inherit;
78 font-style: normal; No newline at end of file
78 font-style: normal;
79 text-shadow: 2px 2px #eee; } No newline at end of file
79 text-shadow: 2px 2px #eee; }
80 No newline at end of file
80
81 .MnuHorizontal ul { No newline at end of file
81 .MnuHorizontal ul {
82 list-style: none; No newline at end of file
82 list-style: none;
83 list-style-type: none; No newline at end of file
83 list-style-type: none;
84 margin: 0; } No newline at end of file
84 margin: 0; }
85 No newline at end of file
85
86 /*.MnuHorizontal{ No newline at end of file
86 /*.MnuHorizontal{
87 display: -webkit-box; No newline at end of file
87 display: -webkit-box;
88 -webkit-box-orient:horizontal; } No newline at end of file
88 -webkit-box-orient:horizontal; }
89 No newline at end of file
89
90 .MnuHorizontal a{ No newline at end of file
90 .MnuHorizontal a{
91 display:block; No newline at end of file
91 display:block;
92 padding:10px; No newline at end of file
92 padding:10px;
93 -webkit-box-flex:1; No newline at end of file
93 -webkit-box-flex:1;
94 text-align:center; }*/ No newline at end of file
94 text-align:center; }*/
95 No newline at end of file
95
96 /****************************************************************************************/ No newline at end of file
96 /****************************************************************************************/
97 /****** MENU DE NAVEGACION DE PERFILES *************/ No newline at end of file
97 /****** MENU DE NAVEGACION DE PERFILES *************/
98 /****************************************************************************************/ No newline at end of file
98 /****************************************************************************************/
99 #infoProfiles { No newline at end of file
99 #infoProfiles {
100 float: left; No newline at end of file
100 float: left;
101 width: 300px; No newline at end of file
101 width: 300px;
102 margin: 0px; No newline at end of file
102 margin: 0px;
103 padding: 2px 0px; No newline at end of file
103 padding: 2px 0px;
104 border: 0px solid #1cc !important; } No newline at end of file
104 border: 0px solid #1cc !important; }
105 No newline at end of file
105
106 #infoProfiles label { No newline at end of file
106 #infoProfiles label {
107 padding: 10px 10px 10px 12px; No newline at end of file
107 padding: 10px 10px 10px 12px;
108 margin: 10px 0; } No newline at end of file
108 margin: 10px 0; }
109 No newline at end of file
109
110 #infoProfiles select { No newline at end of file
110 #infoProfiles select {
111 padding: 4px 0px; margin: 0; No newline at end of file
111 padding: 4px 0px; margin: 0;
112 font-family: 'Droid Sans', sans-serif; No newline at end of file
112 font-family: 'Droid Sans', sans-serif;
113 font-size: 12px; No newline at end of file
113 font-size: 12px;
114 letter-spacing: 0.029em; No newline at end of file
114 letter-spacing: 0.029em;
115 width: 200px; } No newline at end of file
115 width: 200px; }
116 No newline at end of file
116
117 #mnuProfiles { No newline at end of file
117 #mnuProfiles {
118 margin: 0; No newline at end of file
118 margin: 0;
119 float: right; No newline at end of file
119 float: right;
120 padding: 2px 10px; No newline at end of file
120 padding: 2px 10px;
121 border: 0px solid #1494F6 !important; } No newline at end of file
121 border: 0px solid #1494F6 !important; }
122 No newline at end of file
122
123 #mnuProfiles ul { No newline at end of file
123 #mnuProfiles ul {
124 list-style: none; No newline at end of file
124 list-style: none;
125 list-style-type: none; No newline at end of file
125 list-style-type: none;
126 margin: 0; No newline at end of file
126 margin: 0;
127 padding-left: 20px; No newline at end of file
127 padding-left: 20px;
128 border: 0px solid #f00 !important; } No newline at end of file
128 border: 0px solid #f00 !important; }
129 No newline at end of file
129
130 #mnuProfiles li { No newline at end of file
130 #mnuProfiles li {
131 width: 80px; No newline at end of file
131 width: 80px;
132 float: left; No newline at end of file
132 float: left;
133 padding: 2px; No newline at end of file
133 padding: 2px;
134 border: 0px solid #c55 !important; } No newline at end of file
134 border: 0px solid #c55 !important; }
135 No newline at end of file
135
136 #mnuProfiles a { No newline at end of file
136 #mnuProfiles a {
137 font-weight: normal; No newline at end of file
137 font-weight: normal;
138 color: #1494F6; No newline at end of file
138 color: #1494F6;
139 display: block; No newline at end of file
139 display: block;
140 text-align: center; No newline at end of file
140 text-align: center;
141 border-bottom: 1px solid #1494F6 !important; No newline at end of file
141 border-bottom: 1px solid #1494F6 !important;
142 text-decoration: none; No newline at end of file
142 text-decoration: none;
143 padding: 0px 4px; No newline at end of file
143 padding: 0px 4px;
144 line-height: 18px; No newline at end of file
144 line-height: 18px;
145 margin: 6px; } No newline at end of file
145 margin: 6px; }
146 No newline at end of file
146
147 /****************************************************************************************/ No newline at end of file
147 /****************************************************************************************/
148 /******** FORMULARIO DE PERFILES *************************************/ No newline at end of file
148 /******** FORMULARIO DE PERFILES *************************************/
149 /****************************************************************************************/ No newline at end of file
149 /****************************************************************************************/
150 #divProfile { No newline at end of file
150 #divProfile {
151 margin: 10px 0px; No newline at end of file
151 margin: 10px 0px;
152 padding: 10px 10px; No newline at end of file
152 padding: 10px 10px;
153 width: 500px; No newline at end of file
153 width: 500px;
154 border: 0px solid #dff !important; } No newline at end of file
154 border: 0px solid #dff !important; }
155 No newline at end of file
155
156 #divPattern textarea,input[type=text],label,input[type=file],input[type=button],input[type=submit] { No newline at end of file
156 #divPattern textarea,input[type=text],label,input[type=file],input[type=button],input[type=submit] {
157 font-family: 'Open Sans', sans-serif; No newline at end of file
157 font-family: 'Open Sans', sans-serif;
158 font-size: inherit; } No newline at end of file
158 font-size: inherit; }
159 No newline at end of file
159
160 .antenna, .NewAntenna { No newline at end of file
160 .antenna, .NewAntenna {
161 box-shadow: 1px 1px 2px #666; No newline at end of file
161 box-shadow: 1px 1px 2px #666;
162 padding: 5px; No newline at end of file
162 padding: 5px;
163 margin: 10px auto; No newline at end of file
163 margin: 10px auto;
164 width: 520px; No newline at end of file
164 width: 520px;
165 display: block; No newline at end of file
165 display: block;
166 border: 0px solid #fee !important; } No newline at end of file
166 border: 0px solid #fee !important; }
167 No newline at end of file
167
168 .antenna { No newline at end of file
168 .antenna {
169 width: 520px; } No newline at end of file
169 width: 520px; }
170 No newline at end of file
170
171 .NewAntenna { No newline at end of file
171 .NewAntenna {
172 width: 620px; } No newline at end of file
172 width: 620px; }
173 No newline at end of file
173
174 .flsAntenna, .NewFlsAntenna { No newline at end of file
174 .flsAntenna, .NewFlsAntenna {
175 margin: 0; No newline at end of file
175 margin: 0;
176 padding: 0px; No newline at end of file
176 padding: 0px;
177 border: 1px solid #fee !important; No newline at end of file
177 border: 1px solid #fee !important;
178 width: 510px; } No newline at end of file
178 width: 510px; }
179 No newline at end of file
179
180 .flsAntenna { No newline at end of file
180 .flsAntenna {
181 width: 510px; } No newline at end of file
181 width: 510px; }
182 No newline at end of file
182
183 .NewFlsAntenna { No newline at end of file
183 .NewFlsAntenna {
184 width: 610px; } No newline at end of file
184 width: 610px; }
185 No newline at end of file
185
186 .legendAntenna { No newline at end of file
186 .legendAntenna {
187 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
187 font-family: 'Roboto Condensed', sans-serif;
188 font-size: inherit; No newline at end of file
188 font-size: inherit;
189 text-align: center; No newline at end of file
189 text-align: center;
190 margin-left: 10px; } No newline at end of file
190 margin-left: 10px; }
191 No newline at end of file
191
192 .infoAntenna {
192 .infoAntenna {
No newline at end of file
193 width: 500px; No newline at end of file
193 width: 480px; No newline at end of file
194 float: left; No newline at end of file
194 float: left;
195 border: 0px solid #f00 !important; } No newline at end of file
195 border: 0px solid #f00 !important; }
196 No newline at end of file
196
197 .overJRO { No newline at end of file
197 .overJRO {
198 width: 250px; No newline at end of file
198 width: 250px;
199 float: left; No newline at end of file
199 float: left;
200 margin: 0px 5px; No newline at end of file
200 margin: 0px 5px;
201 border: 0px solid #1cc !important; } No newline at end of file
201 border: 0px solid #1cc !important; }
202 No newline at end of file
202
203 .divAntenna { No newline at end of file
203 .divAntenna {
204 width: 220px; No newline at end of file
204 width: 220px;
205 float: left; No newline at end of file
205 float: left;
206 margin: 10px; No newline at end of file
206 margin: 10px;
207 border: 0px solid #fcc !important; } No newline at end of file
207 border: 0px solid #fcc !important; }
208 No newline at end of file
208
209 .NewDivAntenna { No newline at end of file
209 .NewDivAntenna {
210 width: 290px; No newline at end of file
210 width: 290px;
211 float: left; No newline at end of file
211 float: left;
212 margin: 10px; No newline at end of file
212 margin: 10px;
213 border: 0px solid #fcc !important; } No newline at end of file
213 border: 0px solid #fcc !important; }
214 No newline at end of file
214
215 .titleField { No newline at end of file
215 .titleField {
216 display: block; No newline at end of file
216 display: block;
217 text-align: center; } No newline at end of file
217 text-align: center; }
218 No newline at end of file
218
219 .txtAntenna, .view-textAntenna { No newline at end of file
219 .txtAntenna, .view-textAntenna {
220 width: 175px; No newline at end of file
220 width: 175px;
221 max-width: 180px; No newline at end of file
221 max-width: 180px;
222 height: 160px; No newline at end of file
222 height: 160px;
223 max-height: 165px; No newline at end of file
223 max-height: 165px;
224 background: #fdfdfb; No newline at end of file
224 background: #fdfdfb;
225 border: 2px solid #eee !important; No newline at end of file
225 border: 2px solid #eee !important;
226 text-align: justify; No newline at end of file
226 text-align: justify;
227 margin: 0 auto; No newline at end of file
227 margin: 0 auto;
228 line-height: 20px; } No newline at end of file
228 line-height: 20px; }
229 No newline at end of file
229
230 .txtAntenna { No newline at end of file
230 .txtAntenna {
231 padding: 4px; No newline at end of file
231 padding: 4px;
232 } No newline at end of file
232 }
233 No newline at end of file
233
234 .view-textAntenna { No newline at end of file
234 .view-textAntenna {
235 padding: 2px; No newline at end of file
235 padding: 2px;
236 font-family: "Ubuntu"; No newline at end of file
236 font-family: "Ubuntu";
237 font-size: inherit; } No newline at end of file
237 font-size: inherit; }
238 No newline at end of file
238
239 .boxAntenna { No newline at end of file
239 .boxAntenna {
240 width: 280px; No newline at end of file
240 width: 280px;
241 border: 2px solid #eee !important; No newline at end of file
241 border: 2px solid #eee !important;
242 text-align: center; No newline at end of file
242 text-align: center;
243 display: block; No newline at end of file
243 display: block;
244 float: left; No newline at end of file
244 float: left;
245 margin: 0; No newline at end of file
245 margin: 0;
246 padding: 0; } No newline at end of file
246 padding: 0; }
247 No newline at end of file
247
248 .lineInputs { No newline at end of file
248 .lineInputs {
249 width: 262px; No newline at end of file
249 width: 262px;
250 text-align: center; No newline at end of file
250 text-align: center;
251 line-height: 18px; No newline at end of file
251 line-height: 18px;
252 padding: 0; No newline at end of file
252 padding: 0;
253 height: 20px; No newline at end of file
253 height: 20px;
254 margin: 0 auto; No newline at end of file
254 margin: 0 auto;
255 display: block; No newline at end of file
255 display: block;
256 border: 0px solid #1cc !important; } No newline at end of file
256 border: 0px solid #1cc !important; }
257 No newline at end of file
257
258 .lineInputs label { No newline at end of file
258 .lineInputs label {
259 float: left; No newline at end of file
259 float: left;
260 margin: 0px 2px; No newline at end of file
260 margin: 0px 2px;
261 border: 0px solid #bbb !important; } No newline at end of file
261 border: 0px solid #bbb !important; }
262 No newline at end of file
262
263 .divValuesAntenna { No newline at end of file
263 .divValuesAntenna {
264 width: 230px; No newline at end of file
264 width: 230px;
265 border: 0px solid #bbb !important; No newline at end of file
265 border: 0px solid #bbb !important;
266 float: left; No newline at end of file
266 float: left;
267 display: block; No newline at end of file
267 display: block;
268 margin: 0 auto; } No newline at end of file
268 margin: 0 auto; }
269 No newline at end of file
269
270 .divValuesAntenna input[type=text] { No newline at end of file
270 .divValuesAntenna input[type=text] {
271 width: 18px; No newline at end of file
271 width: 18px;
272 border: 0px; No newline at end of file
272 border: 0px;
273 border-bottom: 1px solid #666 !important; No newline at end of file
273 border-bottom: 1px solid #666 !important;
274 line-height: 20px; } No newline at end of file
274 line-height: 20px; }
275 No newline at end of file
275
276 .lblSign { No newline at end of file
276 .lblSign {
277 width: 8px; No newline at end of file
277 width: 8px;
278 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
278 font-family: 'Roboto Condensed', sans-serif;
279 font-size: 1.1em; No newline at end of file
279 font-size: 1.1em;
280 color: #666; } No newline at end of file
280 color: #666; }
281 No newline at end of file
281
282 #lblSignLeft, #lblSignRight { No newline at end of file
282 #lblSignLeft, #lblSignRight {
283 margin: 0; No newline at end of file
283 margin: 0;
284 line-height: 18px; No newline at end of file
284 line-height: 18px;
285 height: 20px; No newline at end of file
285 height: 20px;
286 float: left; No newline at end of file
286 float: left;
287 padding: 0; } No newline at end of file
287 padding: 0; }
288 No newline at end of file
288
289 .divTx { No newline at end of file
289 .divTx {
290 display: block; No newline at end of file
290 display: block;
291 float: left; No newline at end of file
291 float: left;
292 margin: 10px; No newline at end of file
292 margin: 10px;
293 border: 0px solid #f00 !important; } No newline at end of file
293 border: 0px solid #f00 !important; }
294 No newline at end of file
294
295 .divTx label { No newline at end of file
295 .divTx label {
296 display: block; } No newline at end of file
296 display: block; }
297 No newline at end of file
297
298 .divTx textarea { No newline at end of file
298 .divTx textarea {
299 width: 100px; No newline at end of file
299 width: 100px;
300 max-width: 100px; No newline at end of file
300 max-width: 100px;
301 height: 160px; No newline at end of file
301 height: 160px;
302 max-height: 165px; No newline at end of file
302 max-height: 165px;
303 text-align: justify; No newline at end of file
303 text-align: justify;
304 border: 2px solid #eee !important; No newline at end of file
304 border: 2px solid #eee !important;
305 font-family: "Ubuntu"; No newline at end of file
305 font-family: "Ubuntu";
306 font-size: inherit; No newline at end of file
306 font-size: inherit;
307 line-height: 20px; } No newline at end of file
307 line-height: 20px; }
308 No newline at end of file
308
309 .divTx p { No newline at end of file
309 .divTx p {
310 width: 100px; No newline at end of file
310 width: 100px;
311 max-width: 105px; No newline at end of file
311 max-width: 105px;
312 height: 160px; No newline at end of file
312 height: 160px;
313 max-height: 165px; No newline at end of file
313 max-height: 165px;
314 background: #fdfdfb; No newline at end of file
314 background: #fdfdfb;
315 padding: 2px; No newline at end of file
315 padding: 2px;
316 border: 1px solid #eee !important; No newline at end of file
316 border: 1px solid #eee !important;
317 font-family: 'Ubuntu', sans-serif; No newline at end of file
317 font-family: 'Ubuntu', sans-serif;
318 font-size: inherit; No newline at end of file
318 font-size: inherit;
319 text-align: justify; No newline at end of file
319 text-align: justify;
320 margin: 0 auto; No newline at end of file
320 margin: 0 auto;
321 line-height: 20px; } No newline at end of file
321 line-height: 20px; }
322 No newline at end of file
322
323 .divUes { No newline at end of file
323 .divUes {
324 display: block; No newline at end of file
324 display: block;
325 margin: 10px; } No newline at end of file
325 margin: 10px; }
326 No newline at end of file
326
327 .divUes input[type=text] { No newline at end of file
327 .divUes input[type=text] {
328 width: 240px; No newline at end of file
328 width: 240px;
329 max-width: 240px; No newline at end of file
329 max-width: 240px;
330 font-family: 'Ubuntu', sans-serif; No newline at end of file
330 font-family: 'Ubuntu', sans-serif;
331 font-size: inherit; } No newline at end of file
331 font-size: inherit; }
332 No newline at end of file
332
333 .overJRO img { No newline at end of file
333 .overJRO img {
334 width: 400px; No newline at end of file
334 width: 400px;
335 height: 200px; No newline at end of file
335 height: 200px;
336 text-align: center; No newline at end of file
336 text-align: center;
337 vertical-align: middle; No newline at end of file
337 vertical-align: middle;
338 margin: 40px 5px 5px 5px; No newline at end of file
338 margin: 40px 5px 5px 5px;
339 display: block; No newline at end of file
339 display: block;
340 background: #fdfdfb; No newline at end of file
340 background: #fdfdfb;
341 border: 1px solid #eee !important; } No newline at end of file
341 border: 1px solid #eee !important; }
342 No newline at end of file
342
343 .overJRO a { No newline at end of file
343 .overJRO a {
344 text-align: center; No newline at end of file
344 text-align: center;
345 margin: 0 auto; No newline at end of file
345 margin: 0 auto;
346 display: block; } No newline at end of file
346 display: block; }
347 No newline at end of file
347
348 /****************************************************************************************/ No newline at end of file
348 /****************************************************************************************/
349 /****** MENU DE NAVEGACION DE PATRONES **********************************/ No newline at end of file
349 /****** MENU DE NAVEGACION DE PATRONES **********************************/
350 /****************************************************************************************/ No newline at end of file
350 /****************************************************************************************/
351 #divMnuPattern { No newline at end of file
351 #divMnuPattern {
352 width: 280px; No newline at end of file
352 width: 280px;
353 height: 25px; No newline at end of file
353 height: 25px;
354 display: block; No newline at end of file
354 display: block;
355 float: right; No newline at end of file
355 float: right;
356 margin: 5px 40px 5px 0px; No newline at end of file
356 margin: 5px 40px 5px 0px;
357 border: 0px solid #1cc !important; } No newline at end of file
357 border: 0px solid #1cc !important; }
358 No newline at end of file
358
359 #divMnuPattern li { No newline at end of file
359 #divMnuPattern li {
360 float: right; No newline at end of file
360 float: right;
361 display: block; No newline at end of file
361 display: block;
362 width: 60px; No newline at end of file
362 width: 60px;
363 border: 0px solid #2cc !important; } No newline at end of file
363 border: 0px solid #2cc !important; }
364 No newline at end of file
364
365 #divMnuPattern a { No newline at end of file
365 #divMnuPattern a {
366 display: block; No newline at end of file
366 display: block;
367 line-height: 22px; No newline at end of file
367 line-height: 22px;
368 text-decoration: none; No newline at end of file
368 text-decoration: none;
369 padding: 0px 5px; No newline at end of file
369 padding: 0px 5px;
370 margin: 0px 2px; No newline at end of file
370 margin: 0px 2px;
371 text-align: center; No newline at end of file
371 text-align: center;
372 color: #1494F6; No newline at end of file
372 color: #1494F6;
373 border-bottom: 1px solid #1494F6 !important; } No newline at end of file
373 border-bottom: 1px solid #1494F6 !important; }
374 No newline at end of file
374
375 #infoPattern { No newline at end of file
375 #infoPattern {
376 display: block; No newline at end of file
376 display: block;
377 margin: 0px 25px; No newline at end of file
377 margin: 0px 25px;
378 border: 0px solid #1494f6 !important; } No newline at end of file
378 border: 0px solid #1494f6 !important; }
379 No newline at end of file
379
380 #navPatterns { No newline at end of file
380 #navPatterns {
381 margin: 0 auto; No newline at end of file
381 margin: 0 auto;
382 width: 700px; No newline at end of file
382 width: 700px;
383 height: 30px; No newline at end of file
383 height: 30px;
384 border: 0px solid #d00 !important; No newline at end of file
384 border: 0px solid #d00 !important;
385 font-family: 'Ubuntu', sans-serif; No newline at end of file
385 font-family: 'Ubuntu', sans-serif;
386 font-size: 14px; No newline at end of file
386 font-size: 14px;
387 padding: 5px 0px; } No newline at end of file
387 padding: 5px 0px; }
388 No newline at end of file
388
389 #navPatternList { No newline at end of file
389 #navPatternList {
390 margin: 0 auto; No newline at end of file
390 margin: 0 auto;
391 border: 0px solid #ecc !important; } No newline at end of file
391 border: 0px solid #ecc !important; }
392 No newline at end of file
392
393 #navPatternList ul { No newline at end of file
393 #navPatternList ul {
394 list-style: none; No newline at end of file
394 list-style: none;
395 list-style-type: none; No newline at end of file
395 list-style-type: none;
396 margin: 0; } No newline at end of file
396 margin: 0; }
397 No newline at end of file
397
398 #navPatternList ul li { No newline at end of file
398 #navPatternList ul li {
399 float: left; No newline at end of file
399 float: left;
400 width: 50px; No newline at end of file
400 width: 50px;
401 border: 1px solid #eee !important; } No newline at end of file
401 border: 1px solid #eee !important; }
402 No newline at end of file
402
403 #navPatternList a { No newline at end of file
403 #navPatternList a {
404 width: 50px; No newline at end of file
404 width: 50px;
405 display: block; No newline at end of file
405 display: block;
406 text-align: center; No newline at end of file
406 text-align: center;
407 line-height: 30px; No newline at end of file
407 line-height: 30px;
408 padding: 1px 0px; No newline at end of file
408 padding: 1px 0px;
409 border: 0px solid #1cc !important; } No newline at end of file
409 border: 0px solid #1cc !important; }
410 No newline at end of file
410
411 .lnkPattern { No newline at end of file
411 .lnkPattern {
412 background-color: #ccc !important; No newline at end of file
412 background-color: #ccc !important;
413 color: #eee; } No newline at end of file
413 color: #eee; }
414 No newline at end of file
414
415 .lnkPatternSelected { No newline at end of file
415 .lnkPatternSelected {
416 background-color: #2cc !important; No newline at end of file
416 background-color: #2cc !important;
417 color: #fff; } No newline at end of file
417 color: #fff; }
418 No newline at end of file
418
419 .divListofPatterns { No newline at end of file
419 .divListofPatterns {
420 width: 650px; No newline at end of file
420 width: 650px;
421 display: block; No newline at end of file
421 display: block;
422 border: 1px solid #1cc !important; No newline at end of file
422 border: 1px solid #1cc !important;
423 margin: 0 auto; } No newline at end of file
423 margin: 0 auto; }
424 No newline at end of file
424
425 .divPattern { No newline at end of file
425 .divPattern {
426 width: 600px; No newline at end of file
426 width: 600px;
427 display: block; No newline at end of file
427 display: block;
428 border: 1px solid #f00 !important; No newline at end of file
428 border: 1px solid #f00 !important;
429 margin: 2px auto; } No newline at end of file
429 margin: 2px auto; }
430 No newline at end of file
430
431 /****************************************************************************************/ No newline at end of file
431 /****************************************************************************************/
432 /****** HEADER *************/ No newline at end of file
432 /****** HEADER *************/
433 /****************************************************************************************/ No newline at end of file
433 /****************************************************************************************/
434 header nav { No newline at end of file
434 header nav {
435 width: 960px; No newline at end of file
435 width: 960px;
436 margin: 0 auto; No newline at end of file
436 margin: 0 auto;
437 height: 100%; No newline at end of file
437 height: 100%;
438 border: 0px solid #1cc !important; } No newline at end of file
438 border: 0px solid #1cc !important; }
439 No newline at end of file
439
440 header nav a { No newline at end of file
440 header nav a {
441 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
441 font-family: 'Roboto Condensed', sans-serif;
442 font-size: 1.98em; No newline at end of file
442 font-size: 1.98em;
443 text-transform: uppercase; No newline at end of file
443 text-transform: uppercase;
444 width: 232px; No newline at end of file
444 width: 232px;
445 padding: 2px; No newline at end of file
445 padding: 2px;
446 text-align: center; No newline at end of file
446 text-align: center;
447 border: 1px solid #ddd !important; No newline at end of file
447 border: 1px solid #ddd !important;
448 box-shadow: 1px 1px 2px #ddd; No newline at end of file
448 box-shadow: 1px 1px 2px #ddd;
449 display: block; No newline at end of file
449 display: block;
450 float: left; No newline at end of file
450 float: left;
451 height: 45px; No newline at end of file
451 height: 45px;
452 text-decoration: none; No newline at end of file
452 text-decoration: none;
453 background: #eee; No newline at end of file
453 background: #eee;
454 line-height: 45px; No newline at end of file
454 line-height: 45px;
455 color: #15425d; No newline at end of file
455 color: #15425d;
456 margin: 0px 1px; } No newline at end of file
456 margin: 0px 1px; }
457 No newline at end of file
457
458 header nav a.selected { No newline at end of file
458 header nav a.selected {
459 background: #666; No newline at end of file
459 background: #666;
460 color: #fff; } No newline at end of file
460 color: #fff; }
461 No newline at end of file
461
462 /****************************************************************************************/ No newline at end of file
462 /****************************************************************************************/
463 /****** FOOTER *************/ No newline at end of file
463 /****** FOOTER *************/
464 /****************************************************************************************/ No newline at end of file
464 /****************************************************************************************/
465 footer p { No newline at end of file
465 footer p {
466 font-family: 'Roboto Condensed', sans-serif; No newline at end of file
466 font-family: 'Roboto Condensed', sans-serif;
467 font-size: 0.98em; } No newline at end of file
467 font-size: 0.98em; }
@@ -1,38 +1,73
1 /** No newline at end of file
1 /**
2 * @author Jose Antonio Sal y Rosas Celi No newline at end of file
2 * @author Jose Antonio Sal y Rosas Celi
3 * @contact: jose.salyrosas@jro.igp.gob.pe, arturo.jasyrc@gmail.com No newline at end of file
3 * @contact: jose.salyrosas@jro.igp.gob.pe, arturo.jasyrc@gmail.com
4 */ No newline at end of file
4 */
5 No newline at end of file
5
6 $(document).on('ready',function(){ No newline at end of file
6 $(document).on('ready',function(){
7 $('#listProfiles').change(function() { No newline at end of file
7 $('#listProfiles').change(function() {
8 if($(this).val() != -1){ No newline at end of file
8 if($(this).val() != -1){
9 location.href = "/abscontrol/view/" + $(this).val(); No newline at end of file
9 location.href = "/abscontrol/view/" + $(this).val();
10 } No newline at end of file
10 }
11 }); No newline at end of file
11 });
12 $('#lnkAdd').click(function() { No newline at end of file
12 $('#lnkAdd').click(function() {
13 profile_id = $("#profile_id").val(); No newline at end of file
13 profile_id = $("#profile_id").val();
14 location.href = "/abscontrol/" + profile_id + "/add/"; No newline at end of file
14 location.href = "/abscontrol/" + profile_id + "/add/";
15 }); No newline at end of file
15 });
16 $('#lnkSave').click(function() { No newline at end of file
16 $('#lnkSave').click(function() {
17 $('#frmPattern').submit();
No newline at end of file
18 });
No newline at end of file
19 $('#lnkSavePattern').click(function() {
No newline at end of file
20 valueAntennaUp = "";
No newline at end of file
21 valueAntennaDown = "";
No newline at end of file
22 for(i=0; i<=7; i++){
No newline at end of file
23 if(i == 0){
No newline at end of file
24 valueAntennaUp += "[";
No newline at end of file
25 valueAntennaDown += "[";
No newline at end of file
26 }else{
No newline at end of file
27 valueAntennaUp += ",";
No newline at end of file
28 valueAntennaDown += ",";
No newline at end of file
29 }
No newline at end of file
30 for(j=0; j<=7; j++){
No newline at end of file
31 if(j == 0){
No newline at end of file
32 valueAntennaUp += "[";
No newline at end of file
33 valueAntennaDown += "[";
No newline at end of file
34 }
No newline at end of file
35 valueAntennaUp += $("input[id=txtUnitAntennaUp_"+i+"_"+j+"]").val();
No newline at end of file
36 valueAntennaDown += $("input[id=txtUnitAntennaDown_"+i+"_"+j+"]").val();
No newline at end of file
37 if(j != 7){
No newline at end of file
38 valueAntennaUp += ",";
No newline at end of file
39 valueAntennaDown += ",";
No newline at end of file
40 }else{
No newline at end of file
41 valueAntennaUp += "]";
No newline at end of file
42 valueAntennaDown += "]";
No newline at end of file
43 }
No newline at end of file
44 }
No newline at end of file
45 if(i == 7){
No newline at end of file
46 valueAntennaUp += "]";
No newline at end of file
47 valueAntennaDown += "]";
No newline at end of file
48 }
No newline at end of file
49 }
No newline at end of file
50 $('input[name=txtAntennaUp]').attr("value",valueAntennaUp);
No newline at end of file
51 $('input[name=txtAntennaDown]').attr("value",valueAntennaDown); No newline at end of file
17 $('#frmPattern').submit(); No newline at end of file
52 $('#frmPattern').submit();
18 }); No newline at end of file
53 });
19 $('#lnkCancel').click(function() { No newline at end of file
54 $('#lnkCancel').click(function() {
20 if ($("#pattern_id").val() == 0){ No newline at end of file
55 if ($("#pattern_id").val() == 0){
21 location.href = "/abscontrol/edit/" + $("#profile_id").val(); No newline at end of file
56 location.href = "/abscontrol/edit/" + $("#profile_id").val();
22 }else{ No newline at end of file
57 }else{
23 //location.href="/abscontrol/" + $("#profile_id").val() + "/view/" + $("#pattern_id").val(); No newline at end of file
58 //location.href="/abscontrol/" + $("#profile_id").val() + "/view/" + $("#pattern_id").val();
24 location.href = "/abscontrol/edit/" + $("#profile_id").val(); No newline at end of file
59 location.href = "/abscontrol/edit/" + $("#profile_id").val();
25 } No newline at end of file
60 }
26 }); No newline at end of file
61 });
27 $('#lnkExport').click(function(){ No newline at end of file
62 $('#lnkExport').click(function(){
28 profile_id = $(this).attr("alt"); No newline at end of file
63 profile_id = $(this).attr("alt");
29 location.href = "/abscontrol/export/" + profile_id + "/"; No newline at end of file
64 location.href = "/abscontrol/export/" + profile_id + "/";
30 }); No newline at end of file
65 });
31 $('#lnkSendFile').click(function(){ No newline at end of file
66 $('#lnkSendFile').click(function(){
32 profile_id = $(this).attr("alt"); No newline at end of file
67 profile_id = $(this).attr("alt");
33 location.href = "/abscontrol/send/" + profile_id + "/"; No newline at end of file
68 location.href = "/abscontrol/send/" + profile_id + "/";
34 }); No newline at end of file
69 });
35 $('#lnkUpdateProfile').click(function(){ No newline at end of file
70 $('#lnkUpdateProfile').click(function(){
36 $('#frmProfile').submit(); No newline at end of file
71 $('#frmProfile').submit();
37 }); No newline at end of file
72 });
38 }); No newline at end of file
73 });
@@ -1,91 +1,109
1 {% extends "abscontrol/index.html" %} No newline at end of file
1 {% extends "abscontrol/index.html" %}
2 {% block title %}ABS CONTROL:::::NEW PROFILE{% endblock %} No newline at end of file
2 {% block title %}ABS CONTROL:::::NEW PROFILE{% 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 maincolumn%} No newline at end of file
6 {% block maincolumn%}
7 <div id="maincolumn">
7 <div id="maincolumn">
No newline at end of file
8 <!-- <form action="/abscontrol/{{ profile_id }}/save/" method="post" id="frmPattern"> -->
8 <form action="/abscontrol/{{ profile_id }}/save/" method="post" id="frmPattern"> No newline at end of file
No newline at end of file
9 <form action="/abscontrol/upgrade/{{ profile_id }}/" method="post" id="frmPattern"> No newline at end of file
9 <div id="divProfile"> No newline at end of file
10 <div id="divProfile">
10 <label for="lblName">Profile: {{ profile_name }}</label> No newline at end of file
11 <label for="lblName">Profile: {{ profile_name }}</label>
11 </div> No newline at end of file
12 </div>
12 {% block mnuPattern %} No newline at end of file
13 {% block mnuPattern %}
13 <div class="divMenu" id="divMnuPattern"> No newline at end of file
14 <div class="divMenu" id="divMnuPattern">
14 <nav class="MnuHorizontal"> No newline at end of file
15 <nav class="MnuHorizontal">
15 <ul class="mnu" id="mnuPattern">
16 <ul class="mnu" id="mnuPattern">
No newline at end of file
17 <li><a href="#" id="lnkSavePattern">Save</a></li> No newline at end of file
16 <li><a href="#" id="lnkSave">Save</a></li> No newline at end of file
17 </ul> No newline at end of file
18 </ul>
18 </nav> No newline at end of file
19 </nav>
19 </div> No newline at end of file
20 </div>
20 <div class="cleardivs"></div> No newline at end of file
21 <div class="cleardivs"></div>
21 {% endblock %} No newline at end of file
22 {% endblock %}
22 <div id="divPattern"> No newline at end of file
23 <div id="divPattern">
23 <div id="antennaUp" class="NewAntenna"> No newline at end of file
24 <div id="antennaUp" class="NewAntenna">
24 <fieldset class="NewFlsAntenna"> No newline at end of file
25 <fieldset class="NewFlsAntenna">
25 <legend class="legendAntenna">UP</legend> No newline at end of file
26 <legend class="legendAntenna">UP</legend>
26 <div class="NewDivAntenna"> No newline at end of file
27 <div class="NewDivAntenna">
27 <label for="lblAntenna" class="titleField">Antenna</label> No newline at end of file
28 <label for="lblAntenna" class="titleField">Antenna</label>
28 <div class="boxAntenna" id="divtxtAntenna"> No newline at end of file
29 <div class="boxAntenna" id="divtxtAntenna">
29 {% for i in range %} No newline at end of file
30 {% for i in range %}
30 <div class="lineInputs"> No newline at end of file
31 <div class="lineInputs">
31 {% if i == 0 %}<label for="lblSignLeft" class="lblSign" id="lblSignLeft">[</label>{% endif %} No newline at end of file
32 {% if i == 0 %}<label for="lblSignLeft" class="lblSign" id="lblSignLeft">[</label>{% endif %}
32 <label for="lblSign" class="lblSign">[</label> No newline at end of file
33 <label for="lblSign" class="lblSign">[</label>
33 <div class="divValuesAntenna"> No newline at end of file
34 <div class="divValuesAntenna">
34 {% for j in range %}
35 {% for j in range %}
No newline at end of file
36 <input type="text" name="txtUnitAntennaUp" class="txtUnitAntenna" id="txtUnitAntennaUp_{{ i }}_{{ j }}" value="0.5" /> No newline at end of file
35 <input type="text" name="txtUnitAntenna" class="txtUnitAntenna" value="0.5" /> No newline at end of file
36 {% if j != 7 %},{% endif %} No newline at end of file
37 {% if j != 7 %},{% endif %}
37 {% endfor %} No newline at end of file
38 {% endfor %}
38 </div> No newline at end of file
39 </div>
39 <label for="lblSign" class="lblSign">]</label> No newline at end of file
40 <label for="lblSign" class="lblSign">]</label>
40 {% if i == 7 %}<label for="lblSignRight" class="lblSign" id="lblSignRight">]</label>{% endif %} No newline at end of file
41 {% if i == 7 %}<label for="lblSignRight" class="lblSign" id="lblSignRight">]</label>{% endif %}
41 </div> No newline at end of file
42 </div>
42 {% endfor %} No newline at end of file
43 {% endfor %}
43 </div> No newline at end of file
44 </div>
44 </div> No newline at end of file
45 </div>
45 <div class="divTx"> No newline at end of file
46 <div class="divTx">
46 <label for="lblTx" class="titleField">Tx</label> No newline at end of file
47 <label for="lblTx" class="titleField">Tx</label>
47 <textarea name="txtTxUp" class="txtTR" cols="18" rows="8">{{ txtTxUp }}</textarea> No newline at end of file
48 <textarea name="txtTxUp" class="txtTR" cols="18" rows="8">{{ txtTxUp }}</textarea>
48 </div> No newline at end of file
49 </div>
49 <div class="divTx"> No newline at end of file
50 <div class="divTx">
50 <label for="lblRx" class="titleField" >Rx</label> No newline at end of file
51 <label for="lblRx" class="titleField" >Rx</label>
51 <textarea name="txtRxUp" class="txtTR" cols="18" rows="8">{{ txtRxUp }}</textarea> No newline at end of file
52 <textarea name="txtRxUp" class="txtTR" cols="18" rows="8">{{ txtRxUp }}</textarea>
52 </div> No newline at end of file
53 </div>
53 <div class="cleardivs"></div> No newline at end of file
54 <div class="cleardivs"></div>
54 <div class="divUes"> No newline at end of file
55 <div class="divUes">
55 <label for="lblUes">Ues:</label> No newline at end of file
56 <label for="lblUes">Ues:</label>
56 <input type="text" name="txtUesUp" value="{{ txtUes }}" /> No newline at end of file
57 <input type="text" name="txtUesUp" value="{{ txtUes }}" />
57 <input type="checkbox" name="chkOnlyRxUp" value="" /> No newline at end of file
58 <input type="checkbox" name="chkOnlyRxUp" value="" />
58 <label for="lblOnlyRx">Only RX</label> No newline at end of file
59 <label for="lblOnlyRx">Only RX</label>
59 </div> No newline at end of file
60 </div>
60 </fieldset> No newline at end of file
61 </fieldset>
62 <input type="hidden" name="txtAntennaUp" value="" /> No newline at end of file
61 </div> No newline at end of file
63 </div>
62 No newline at end of file
64
63 <div id="antennaDown" class="NewAntenna"> No newline at end of file
65 <div id="antennaDown" class="NewAntenna">
64 <fieldset class="NewFlsAntenna"> No newline at end of file
66 <fieldset class="NewFlsAntenna">
65 <legend class="legendAntenna">DOWN</legend>
67 <legend class="legendAntenna">DOWN</legend>
No newline at end of file
68 <div class="NewDivAntenna">
66 <div class="divAntenna">
No newline at end of file
No newline at end of file
69 <label for="lblAntenna" class="titleField">Antenna</label>
67 <label for="lblAntenna">Antenna</label>
No newline at end of file
No newline at end of file
70 <div class="boxAntenna" id="divtxtAntenna">
68 <textarea name="txtAntennaDown" class="txtAntenna" cols="38" rows="8">{{ txtAntenna }}</textarea> No newline at end of file
No newline at end of file
71 {% for i in range %}
No newline at end of file
72 <div class="lineInputs">
No newline at end of file
73 {% if i == 0 %}<label for="lblSignLeft" class="lblSign" id="lblSignLeft">[</label>{% endif %}
No newline at end of file
74 <label for="lblSign" class="lblSign">[</label>
No newline at end of file
75 <div class="divValuesAntenna">
No newline at end of file
76 {% for j in range %}
No newline at end of file
77 <input type="text" name="txtUnitAntennaDown" class="txtUnitAntenna" id="txtUnitAntennaDown_{{ i }}_{{ j }}" value="0.5" />
No newline at end of file
78 {% if j != 7 %},{% endif %}
No newline at end of file
79 {% endfor %}
No newline at end of file
80 </div>
No newline at end of file
81 <label for="lblSign" class="lblSign">]</label>
No newline at end of file
82 {% if i == 7 %}<label for="lblSignRight" class="lblSign" id="lblSignRight">]</label>{% endif %}
No newline at end of file
83 </div>
No newline at end of file
84 {% endfor %}
No newline at end of file
85 </div> No newline at end of file
69 </div> No newline at end of file
86 </div>
70 <div class="divTx"> No newline at end of file
87 <div class="divTx">
71 <label for="lblTx">Tx</label> No newline at end of file
88 <label for="lblTx">Tx</label>
72 <textarea name="txtTxDown" class="txtTR" cols="15" rows="8">{{ txtTxDown }}</textarea> No newline at end of file
89 <textarea name="txtTxDown" class="txtTR" cols="15" rows="8">{{ txtTxDown }}</textarea>
73 </div> No newline at end of file
90 </div>
74 <div class="divTx"> No newline at end of file
91 <div class="divTx">
75 <label for="lblRx">Rx</label> No newline at end of file
92 <label for="lblRx">Rx</label>
76 <textarea name="txtRxDown" class="txtTR" cols="15" rows="8">{{ txtRxDown }}</textarea> No newline at end of file
93 <textarea name="txtRxDown" class="txtTR" cols="15" rows="8">{{ txtRxDown }}</textarea>
77 </div> No newline at end of file
94 </div>
78 <div class="cleardivs"></div> No newline at end of file
95 <div class="cleardivs"></div>
79 <div class="divUes"> No newline at end of file
96 <div class="divUes">
80 <label for="lblUes">Ues:</label> No newline at end of file
97 <label for="lblUes">Ues:</label>
81 <input type="text" name="txtUesDown" value="{{ txtUes }}" /> No newline at end of file
98 <input type="text" name="txtUesDown" value="{{ txtUes }}" />
82 <input type="checkbox" name="chkOnlyRxDown" value="" /> No newline at end of file
99 <input type="checkbox" name="chkOnlyRxDown" value="" />
83 <label for="lblOnlyRx">Only RX</label> No newline at end of file
100 <label for="lblOnlyRx">Only RX</label>
84 </div> No newline at end of file
101 </div>
85 </fieldset> No newline at end of file
102 </fieldset>
103 <input type="hidden" name="txtAntennaDown" value="" /> No newline at end of file
86 </div> No newline at end of file
104 </div>
87 </div> No newline at end of file
105 </div>
88 <input type="hidden" name="mode" value="e"> No newline at end of file
106 <input type="hidden" name="mode" value="e">
89 </form> No newline at end of file
107 </form>
90 </div> No newline at end of file
108 </div>
91 {% endblock %} No newline at end of file
109 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now