@@ -8,7 +8,55 | |||||
8 | No newline at end of file |
|
8 | ||
9 | def new(request): No newline at end of file |
|
9 | def new(request): | |
10 | profile_list = Profile.objects.all() |
|
10 | profile_list = Profile.objects.all() | |
No newline at end of file |
|
11 | txtAntenna = "[[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ | ||
11 | return render_to_response('abscontrol/new.html', {'profile_list': profile_list}) No newline at end of file |
|
No newline at end of file | ||
|
12 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ | |||
|
No newline at end of file | ||||
|
13 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ | |||
|
No newline at end of file | ||||
|
14 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ | |||
|
No newline at end of file | ||||
|
15 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ | |||
|
No newline at end of file | ||||
|
16 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ | |||
|
No newline at end of file | ||||
|
17 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ | |||
|
No newline at end of file | ||||
|
18 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]]" | |||
|
No newline at end of file | ||||
|
19 | txtTxUp = "[[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
20 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
21 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
22 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
23 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
24 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
25 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
26 | "[1,1,1,1,1,1,1,1]]" | |||
|
No newline at end of file | ||||
|
27 | txtTxDown = "[[1,1,1,1,0,0,0,0]," \ | |||
|
No newline at end of file | ||||
|
28 | "[1,1,1,1,0,0,0,0]," \ | |||
|
No newline at end of file | ||||
|
29 | "[1,1,1,1,0,0,0,0]," \ | |||
|
No newline at end of file | ||||
|
30 | "[1,1,1,1,0,0,0,0]," \ | |||
|
No newline at end of file | ||||
|
31 | "[0,0,0,0,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
32 | "[0,0,0,0,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
33 | "[0,0,0,0,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
34 | "[0,0,0,0,1,1,1,1]]" | |||
|
No newline at end of file | ||||
|
35 | txtRxUp = "[[0,0,0,0,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
36 | "[0,0,0,0,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
37 | "[0,0,0,0,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
38 | "[0,0,0,0,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
39 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
40 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
41 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
42 | "[1,1,1,1,1,1,1,1]]" | |||
|
No newline at end of file | ||||
|
43 | txtRxDown = "[[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
44 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
45 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
46 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
47 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
48 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
49 | "[1,1,1,1,1,1,1,1]," \ | |||
|
No newline at end of file | ||||
|
50 | "[1,1,1,1,1,1,1,1]]" | |||
|
No newline at end of file | ||||
|
51 | ||||
|
No newline at end of file | ||||
|
52 | txtUes = "[0.533333,0.00000,1.06667,0.00000]" | |||
|
No newline at end of file | ||||
|
53 | ||||
|
No newline at end of file | ||||
|
54 | return render_to_response('abscontrol/new.html', {'profile_list': profile_list, | |||
|
No newline at end of file | ||||
|
55 | 'txtAntenna' : txtAntenna, | |||
|
No newline at end of file | ||||
|
56 | 'txtUes' : txtUes, 'txtTxUp' : txtTxUp, | |||
|
No newline at end of file | ||||
|
57 | 'txtTxDown' : txtTxDown, 'txtRxUp' : txtRxUp, | |||
|
No newline at end of file | ||||
|
58 | 'txtRxDown' : txtRxDown, | |||
|
No newline at end of file | ||||
|
59 | }) No newline at end of file | |||
12 | No newline at end of file |
|
60 | ||
13 | def save(request): No newline at end of file |
|
61 | def save(request): | |
14 | No newline at end of file |
|
62 |
@@ -87,11 +87,17 | |||||
87 | #divProfile {border: 0px solid #dff; margin: 10px 0px; padding: 10px 10px; width: 500px} No newline at end of file |
|
87 | #divProfile {border: 0px solid #dff; margin: 10px 0px; padding: 10px 10px; width: 500px} | |
88 | .flsAntenna {margin: 10px 0px; width: 750px; padding: 10px 10px} No newline at end of file |
|
88 | .flsAntenna {margin: 10px 0px; width: 750px; padding: 10px 10px} | |
89 | #divPattern textarea,input[type=text],label {font-family: Monaco; font-size: inherit;} |
|
89 | #divPattern textarea,input[type=text],label {font-family: Monaco; font-size: inherit;} | |
No newline at end of file |
|
90 | No newline at end of file | ||
90 | #divPattern input[type=text] {width: 200px} No newline at end of file |
|
|||
91 | #divPattern textarea {resize: none; overflow: hidden} |
|
91 | #divPattern textarea {resize: none; overflow: hidden} | |
No newline at end of file |
|
92 | |||
92 | .divAntenna {float: left; margin: 10px; height: 150px} No newline at end of file |
|
No newline at end of file | ||
|
93 | .divAntenna {float: left; margin: 10px; height: 160px; border: 1px solid #fcc !important; width: 260px} No newline at end of file | |||
93 | .divAntenna label {display: block} No newline at end of file |
|
94 | .divAntenna label {display: block} | |
|
95 | .txtAntenna {max-width: 250px; max-height: 125px; width: 250px; height: 125px} | |||
|
No newline at end of file | ||||
|
96 | No newline at end of file | |||
94 | .divTx {display: block; float: left; margin: 10px; height: 150px} No newline at end of file |
|
97 | .divTx {display: block; float: left; margin: 10px; height: 150px} | |
95 | .divTx label {display: block} No newline at end of file |
|
98 | .divTx label {display: block} | |
|
99 | .divTx textarea {width: 135px; max-width: 135px; height: 125px; max-height: 125px; text-align: justify} | |||
|
No newline at end of file | ||||
|
100 | No newline at end of file | |||
96 | .divUes {display: block; margin: 10px} |
|
101 | .divUes {display: block; margin: 10px} | |
No newline at end of file |
|
102 | .divUes input[type=text] {width: 240px; max-width: 240px;} | ||
97 | .txtAntenna {max-width: 200px; max-height: 120px} No newline at end of file |
|
No newline at end of file | ||
|
103 | No newline at end of file |
@@ -15,20 +15,20 | |||||
15 | <legend>UP</legend> No newline at end of file |
|
15 | <legend>UP</legend> | |
16 | <div class="divAntenna"> No newline at end of file |
|
16 | <div class="divAntenna"> | |
17 | <label for="lblAntenna">Antenna</label> |
|
17 | <label for="lblAntenna">Antenna</label> | |
No newline at end of file |
|
18 | <textarea name="txtAntennaUp" class="txtAntenna" cols="38" rows="8">{{ txtAntenna }}</textarea> No newline at end of file | ||
18 | <textarea name="txtAntennaUp" class="txtAntenna" cols="38" rows="8"></textarea> No newline at end of file |
|
|||
19 | </div> No newline at end of file |
|
19 | </div> | |
20 | <div class="divTx"> No newline at end of file |
|
20 | <div class="divTx"> | |
21 | <label for="lblTx">Tx</label> |
|
21 | <label for="lblTx">Tx</label> | |
No newline at end of file |
|
22 | <textarea name="txtTxUp" class="txtTR" cols="20" rows="8">{{ txtTxUp }}</textarea> No newline at end of file | ||
22 | <textarea name="txtTxUp" class="txtTR" cols="20" rows="8"></textarea> No newline at end of file |
|
|||
23 | </div> No newline at end of file |
|
23 | </div> | |
24 | <div class="divTx"> No newline at end of file |
|
24 | <div class="divTx"> | |
25 | <label for="lblRx">Rx</label> |
|
25 | <label for="lblRx">Rx</label> | |
No newline at end of file |
|
26 | <textarea name="txtRxUp" class="txtTR" cols="20" rows="8">{{ txtRxUp }}</textarea> No newline at end of file | ||
26 | <textarea name="txtRxUp" class="txtTR" cols="20" rows="8"></textarea> No newline at end of file |
|
|||
27 | </div> No newline at end of file |
|
27 | </div> | |
28 | <div class="cleardivs"></div> No newline at end of file |
|
28 | <div class="cleardivs"></div> | |
29 | <div class="divUes"> No newline at end of file |
|
29 | <div class="divUes"> | |
30 | <label for="lblUes">Ues:</label> |
|
30 | <label for="lblUes">Ues:</label> | |
No newline at end of file |
|
31 | <input type="text" name="txtUesUp" value="{{ txtUes }}" /> No newline at end of file | ||
31 | <input type="text" name="txtUesUp" value="" /> No newline at end of file |
|
|||
32 | </div> No newline at end of file |
|
32 | </div> | |
33 | </fieldset> No newline at end of file |
|
33 | </fieldset> | |
34 | </div> No newline at end of file |
|
34 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now