@@ -0,0 +1,25 | |||||
|
1 | /** | |||
|
No newline at end of file | ||||
|
2 | * @author Jose Antonio Sal y Rosas Celi | |||
|
No newline at end of file | ||||
|
3 | * @contact: jose.salyrosas@jro.igp.gob.pe, arturo.jasyrc@gmail.com | |||
|
No newline at end of file | ||||
|
4 | */ | |||
|
No newline at end of file | ||||
|
5 | ||||
|
No newline at end of file | ||||
|
6 | $(document).on('ready',function(){ | |||
|
No newline at end of file | ||||
|
7 | $('#listProfiles').change(function() { | |||
|
No newline at end of file | ||||
|
8 | if($(this).val() != -1){ | |||
|
No newline at end of file | ||||
|
9 | location.href="/abscontrol/view/" + $(this).val(); | |||
|
No newline at end of file | ||||
|
10 | } | |||
|
No newline at end of file | ||||
|
11 | }); | |||
|
No newline at end of file | ||||
|
12 | ||||
|
No newline at end of file | ||||
|
13 | $('#lnkSave').click(function() { | |||
|
No newline at end of file | ||||
|
14 | $('#frmPattern').submit(); | |||
|
No newline at end of file | ||||
|
15 | }); | |||
|
No newline at end of file | ||||
|
16 | ||||
|
No newline at end of file | ||||
|
17 | $('#lnkCancel').click(function() { | |||
|
No newline at end of file | ||||
|
18 | if ($("#pattern_id").val() == 0){ | |||
|
No newline at end of file | ||||
|
19 | location.href="/abscontrol/edit/" + $("#profile_id").val(); | |||
|
No newline at end of file | ||||
|
20 | }else{ | |||
|
No newline at end of file | ||||
|
21 | location.href="/abscontrol/" + $("#profile_id").val() + "/view/" + $("#pattern_id").val() | |||
|
No newline at end of file | ||||
|
22 | } | |||
|
No newline at end of file | ||||
|
23 | ||||
|
No newline at end of file | ||||
|
24 | }); | |||
|
No newline at end of file | ||||
|
25 | }); No newline at end of file |
@@ -0,0 +1,12 | |||||
|
1 | /** | |||
|
No newline at end of file | ||||
|
2 | * @author Jose Antonio Sal y Rosas Celi | |||
|
No newline at end of file | ||||
|
3 | * @contact: jose.salyrosas@jro.igp.gob.pe, arturo.jasyrc@gmail.com | |||
|
No newline at end of file | ||||
|
4 | */ | |||
|
No newline at end of file | ||||
|
5 | ||||
|
No newline at end of file | ||||
|
6 | $(document).on('ready',function(){ | |||
|
No newline at end of file | ||||
|
7 | $('#listProfiles').change(function() { | |||
|
No newline at end of file | ||||
|
8 | if($(this).val() != -1){ | |||
|
No newline at end of file | ||||
|
9 | location.href="/abscontrol/view/" + $(this).val(); | |||
|
No newline at end of file | ||||
|
10 | } | |||
|
No newline at end of file | ||||
|
11 | }); | |||
|
No newline at end of file | ||||
|
12 | }); No newline at end of file |
@@ -0,0 +1,65 | |||||
|
1 | {% extends "abscontrol/edit.html" %} | |||
|
No newline at end of file | ||||
|
2 | ||||
|
No newline at end of file | ||||
|
3 | {% block mnuPattern %} | |||
|
No newline at end of file | ||||
|
4 | <div class="divMenu" id="divMnuPattern"> | |||
|
No newline at end of file | ||||
|
5 | <nav class="MnuHorizontal"> | |||
|
No newline at end of file | ||||
|
6 | <ul class="mnu" id="mnuPattern"> | |||
|
No newline at end of file | ||||
|
7 | <li><a href="#" id="lnkSave">Save</a></li> | |||
|
No newline at end of file | ||||
|
8 | <li><a href="#" id="lnkCancel">Cancel</a></li> | |||
|
No newline at end of file | ||||
|
9 | </ul> | |||
|
No newline at end of file | ||||
|
10 | </nav> | |||
|
No newline at end of file | ||||
|
11 | </div> | |||
|
No newline at end of file | ||||
|
12 | <div class="cleardivs"></div> | |||
|
No newline at end of file | ||||
|
13 | {% endblock %} | |||
|
No newline at end of file | ||||
|
14 | {% block pattern %} | |||
|
No newline at end of file | ||||
|
15 | <div id="infoPattern"> | |||
|
No newline at end of file | ||||
|
16 | <form action="/abscontrol/{{ objProfile.id }}/save/" id="frmPattern" method="post"> | |||
|
No newline at end of file | ||||
|
17 | <div id="antennaUp"> | |||
|
No newline at end of file | ||||
|
18 | <fieldset class="flsAntenna"> | |||
|
No newline at end of file | ||||
|
19 | <legend>UP</legend> | |||
|
No newline at end of file | ||||
|
20 | <div class="divAntenna"> | |||
|
No newline at end of file | ||||
|
21 | <label for="lblAntenna">Antenna</label> | |||
|
No newline at end of file | ||||
|
22 | <textarea name="txtAntennaUp" class="txtAntenna" cols="38" rows="8">{{ txtAntenna }}</textarea> | |||
|
No newline at end of file | ||||
|
23 | </div> | |||
|
No newline at end of file | ||||
|
24 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
25 | <label for="lblTx">Tx</label> | |||
|
No newline at end of file | ||||
|
26 | <textarea name="txtTxUp" class="txtTR" cols="20" rows="8">{{ txtTxUp }}</textarea> | |||
|
No newline at end of file | ||||
|
27 | </div> | |||
|
No newline at end of file | ||||
|
28 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
29 | <label for="lblRx">Rx</label> | |||
|
No newline at end of file | ||||
|
30 | <textarea name="txtRxUp" class="txtTR" cols="20" rows="8">{{ txtRxUp }}</textarea> | |||
|
No newline at end of file | ||||
|
31 | </div> | |||
|
No newline at end of file | ||||
|
32 | <div class="cleardivs"></div> | |||
|
No newline at end of file | ||||
|
33 | <div class="divUes"> | |||
|
No newline at end of file | ||||
|
34 | <label for="lblUes">Ues:</label> | |||
|
No newline at end of file | ||||
|
35 | <input type="text" name="txtUesUp" value="{{ txtUes }}" /> | |||
|
No newline at end of file | ||||
|
36 | </div> | |||
|
No newline at end of file | ||||
|
37 | </fieldset> | |||
|
No newline at end of file | ||||
|
38 | </div> | |||
|
No newline at end of file | ||||
|
39 | <div id="antennaDown"> | |||
|
No newline at end of file | ||||
|
40 | <fieldset class="flsAntenna"> | |||
|
No newline at end of file | ||||
|
41 | <legend>DOWN</legend> | |||
|
No newline at end of file | ||||
|
42 | <div class="divAntenna"> | |||
|
No newline at end of file | ||||
|
43 | <label for="lblAntenna">Antenna</label> | |||
|
No newline at end of file | ||||
|
44 | <textarea name="txtAntennaDown" class="txtAntenna" cols="38" rows="8">{{ txtAntenna }}</textarea> | |||
|
No newline at end of file | ||||
|
45 | </div> | |||
|
No newline at end of file | ||||
|
46 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
47 | <label for="lblTx">Tx</label> | |||
|
No newline at end of file | ||||
|
48 | <textarea name="txtTxDown" class="txtTR" cols="20" rows="8">{{ txtTxDown }}</textarea> | |||
|
No newline at end of file | ||||
|
49 | </div> | |||
|
No newline at end of file | ||||
|
50 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
51 | <label for="lblRx">Rx</label> | |||
|
No newline at end of file | ||||
|
52 | <textarea name="txtRxDown" class="txtTR" cols="20" rows="8">{{ txtRxDown }}</textarea> | |||
|
No newline at end of file | ||||
|
53 | </div> | |||
|
No newline at end of file | ||||
|
54 | <div class="cleardivs"></div> | |||
|
No newline at end of file | ||||
|
55 | <div class="divUes"> | |||
|
No newline at end of file | ||||
|
56 | <label for="lblUes">Ues:</label> | |||
|
No newline at end of file | ||||
|
57 | <input type="text" name="txtUesDown" value="{{ txtUes }}" /> | |||
|
No newline at end of file | ||||
|
58 | </div> | |||
|
No newline at end of file | ||||
|
59 | </fieldset> | |||
|
No newline at end of file | ||||
|
60 | </div> | |||
|
No newline at end of file | ||||
|
61 | <input type="hidden" name="pattern_id" id="pattern_id" value="0" /> | |||
|
No newline at end of file | ||||
|
62 | <input type="hidden" name="profile_id" id="profile_id" value="{{ objProfile.id }}" /> | |||
|
No newline at end of file | ||||
|
63 | </form> | |||
|
No newline at end of file | ||||
|
64 | </div> | |||
|
No newline at end of file | ||||
|
65 | {% endblock %} No newline at end of file |
@@ -0,0 +1,93 | |||||
|
1 | {% extends "abscontrol/index.html" %} | |||
|
No newline at end of file | ||||
|
2 | {% block title %}ABS CONTROL:::PROFILE:::{{ objProfile.name }}{% endblock %} | |||
|
No newline at end of file | ||||
|
3 | {% block scripting %} | |||
|
No newline at end of file | ||||
|
4 | <script src="/static/static/js/patterns.js"></script> | |||
|
No newline at end of file | ||||
|
5 | {% endblock %} | |||
|
No newline at end of file | ||||
|
6 | {% block maincolumn%} | |||
|
No newline at end of file | ||||
|
7 | <div id="maincolumn"> | |||
|
No newline at end of file | ||||
|
8 | <div id="divProfile"> | |||
|
No newline at end of file | ||||
|
9 | <label for="lblName">Profile:</label> | |||
|
No newline at end of file | ||||
|
10 | <label for="lblProfile">{{ objProfile.name }}</label> | |||
|
No newline at end of file | ||||
|
11 | </div> | |||
|
No newline at end of file | ||||
|
12 | <div id="divPattern"> | |||
|
No newline at end of file | ||||
|
13 | {% block mnuPattern %} | |||
|
No newline at end of file | ||||
|
14 | <div class="divMenu" id="divMnuPattern"> | |||
|
No newline at end of file | ||||
|
15 | <nav class="MnuHorizontal"> | |||
|
No newline at end of file | ||||
|
16 | <ul class="mnu" id="mnuPattern"> | |||
|
No newline at end of file | ||||
|
17 | <li><a href="/abscontrol/{{ objProfile.id }}/add">Add</a></li> | |||
|
No newline at end of file | ||||
|
18 | <li><a href="/abscontrol/{{ objProfile.id }}/edit/{{ patternChoosen.id }}">Edit</a></li> | |||
|
No newline at end of file | ||||
|
19 | {% if lsPatterns|length > 1 %} | |||
|
No newline at end of file | ||||
|
20 | <li><a href="/abscontrol/{{ objProfile.id }}/delete/{{ patternChoosen.id }}">Delete</a></li> | |||
|
No newline at end of file | ||||
|
21 | {% endif %} | |||
|
No newline at end of file | ||||
|
22 | <li><a href="#">Apply</a></li> | |||
|
No newline at end of file | ||||
|
23 | </ul> | |||
|
No newline at end of file | ||||
|
24 | </nav> | |||
|
No newline at end of file | ||||
|
25 | </div> | |||
|
No newline at end of file | ||||
|
26 | <div class="cleardivs"></div> | |||
|
No newline at end of file | ||||
|
27 | {% endblock %} | |||
|
No newline at end of file | ||||
|
28 | {% block pattern %} | |||
|
No newline at end of file | ||||
|
29 | <div id="infoPattern"> | |||
|
No newline at end of file | ||||
|
30 | {% if patternChoosen %} | |||
|
No newline at end of file | ||||
|
31 | <div id="navPatterns"> | |||
|
No newline at end of file | ||||
|
32 | <nav class="MnuHorizontal"> | |||
|
No newline at end of file | ||||
|
33 | <ul class="mnu" id="navPatternList"> | |||
|
No newline at end of file | ||||
|
34 | {% for element in lsPatterns %} | |||
|
No newline at end of file | ||||
|
35 | {% if patternChoosen.id == element.id %} | |||
|
No newline at end of file | ||||
|
36 | <li><a href="/abscontrol/{{ objProfile.id }}/view/{{ element.id }}" class="lnkPatternSelected">{{ element.value }}</a></li> | |||
|
No newline at end of file | ||||
|
37 | {% else %} | |||
|
No newline at end of file | ||||
|
38 | <li><a href="/abscontrol/{{ objProfile.id }}/view/{{ element.id }}" class="lnkPattern">{{ element.value }}</a></li> | |||
|
No newline at end of file | ||||
|
39 | {% endif %} | |||
|
No newline at end of file | ||||
|
40 | {% endfor %} | |||
|
No newline at end of file | ||||
|
41 | </ul> | |||
|
No newline at end of file | ||||
|
42 | </nav> | |||
|
No newline at end of file | ||||
|
43 | </div> | |||
|
No newline at end of file | ||||
|
44 | {% endif %} | |||
|
No newline at end of file | ||||
|
45 | <div id="antennaUp"> | |||
|
No newline at end of file | ||||
|
46 | <fieldset class="flsAntenna"> | |||
|
No newline at end of file | ||||
|
47 | <legend>UP</legend> | |||
|
No newline at end of file | ||||
|
48 | <div class="divAntenna"> | |||
|
No newline at end of file | ||||
|
49 | <label for="lblAntenna">Antenna</label> | |||
|
No newline at end of file | ||||
|
50 | <p>{{ antennaUp.value }}</p> | |||
|
No newline at end of file | ||||
|
51 | </div> | |||
|
No newline at end of file | ||||
|
52 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
53 | <label for="lblTx">Tx</label> | |||
|
No newline at end of file | ||||
|
54 | <p>{{ antennaUp.tx }}</p> | |||
|
No newline at end of file | ||||
|
55 | </div> | |||
|
No newline at end of file | ||||
|
56 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
57 | <label for="lblRx">Rx</label> | |||
|
No newline at end of file | ||||
|
58 | <p>{{ antennaUp.rx }}</p> | |||
|
No newline at end of file | ||||
|
59 | </div> | |||
|
No newline at end of file | ||||
|
60 | <div class="cleardivs"></div> | |||
|
No newline at end of file | ||||
|
61 | <div class="divUes"> | |||
|
No newline at end of file | ||||
|
62 | <label for="lblUes">Ues:</label> | |||
|
No newline at end of file | ||||
|
63 | <label for="lblAntennaUpUes">{{ antennaUp.ues }}</label> | |||
|
No newline at end of file | ||||
|
64 | </div> | |||
|
No newline at end of file | ||||
|
65 | </fieldset> | |||
|
No newline at end of file | ||||
|
66 | </div> | |||
|
No newline at end of file | ||||
|
67 | <div id="antennaDown"> | |||
|
No newline at end of file | ||||
|
68 | <fieldset class="flsAntenna"> | |||
|
No newline at end of file | ||||
|
69 | <legend>DOWN</legend> | |||
|
No newline at end of file | ||||
|
70 | <div class="divAntenna"> | |||
|
No newline at end of file | ||||
|
71 | <label for="lblAntenna">Antenna</label> | |||
|
No newline at end of file | ||||
|
72 | <p>{{ antennaDown.value }}</textarea> | |||
|
No newline at end of file | ||||
|
73 | </div> | |||
|
No newline at end of file | ||||
|
74 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
75 | <label for="lblTx">Tx</label> | |||
|
No newline at end of file | ||||
|
76 | <p>{{ antennaDown.tx }}</p> | |||
|
No newline at end of file | ||||
|
77 | </div> | |||
|
No newline at end of file | ||||
|
78 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
79 | <label for="lblRx">Rx</label> | |||
|
No newline at end of file | ||||
|
80 | <p>{{ antennaDown.rx }}</p> | |||
|
No newline at end of file | ||||
|
81 | </div> | |||
|
No newline at end of file | ||||
|
82 | <div class="cleardivs"></div> | |||
|
No newline at end of file | ||||
|
83 | <div class="divUes"> | |||
|
No newline at end of file | ||||
|
84 | <label for="lblUes">Ues:</label> | |||
|
No newline at end of file | ||||
|
85 | <label for="lblAntennaDownUes">{{ antennaDown.ues }}</label> | |||
|
No newline at end of file | ||||
|
86 | </div> | |||
|
No newline at end of file | ||||
|
87 | </fieldset> | |||
|
No newline at end of file | ||||
|
88 | </div> | |||
|
No newline at end of file | ||||
|
89 | </div> | |||
|
No newline at end of file | ||||
|
90 | {% endblock %} | |||
|
No newline at end of file | ||||
|
91 | </div> | |||
|
No newline at end of file | ||||
|
92 | </div> | |||
|
No newline at end of file | ||||
|
93 | {% endblock %} No newline at end of file |
@@ -0,0 +1,69 | |||||
|
1 | {% extends "abscontrol/edit.html" %} | |||
|
No newline at end of file | ||||
|
2 | ||||
|
No newline at end of file | ||||
|
3 | {% block mnuPattern %} | |||
|
No newline at end of file | ||||
|
4 | <div class="divMenu" id="divMnuPattern"> | |||
|
No newline at end of file | ||||
|
5 | <nav class="MnuHorizontal"> | |||
|
No newline at end of file | ||||
|
6 | <ul class="mnu" id="mnuPattern"> | |||
|
No newline at end of file | ||||
|
7 | <li><a href="#" id="lnkSave">Save</a></li> | |||
|
No newline at end of file | ||||
|
8 | <li><a href="#" id="lnkCancel">Cancel</a></li> | |||
|
No newline at end of file | ||||
|
9 | </ul> | |||
|
No newline at end of file | ||||
|
10 | </nav> | |||
|
No newline at end of file | ||||
|
11 | </div> | |||
|
No newline at end of file | ||||
|
12 | <div class="cleardivs"></div> | |||
|
No newline at end of file | ||||
|
13 | {% endblock %} | |||
|
No newline at end of file | ||||
|
14 | {% block pattern %} | |||
|
No newline at end of file | ||||
|
15 | <div id="infoPattern"> | |||
|
No newline at end of file | ||||
|
16 | {% if patternChoosen %} | |||
|
No newline at end of file | ||||
|
17 | <div id="navPatterns"> | |||
|
No newline at end of file | ||||
|
18 | <label for="lblValue">Pattern:</label> | |||
|
No newline at end of file | ||||
|
19 | <label for="lblPatternValue">{{ patternChoosen.value }}</label> | |||
|
No newline at end of file | ||||
|
20 | </div> | |||
|
No newline at end of file | ||||
|
21 | {% endif %} | |||
|
No newline at end of file | ||||
|
22 | <div id="antennaUp"> | |||
|
No newline at end of file | ||||
|
23 | <fieldset class="flsAntenna"> | |||
|
No newline at end of file | ||||
|
24 | <legend>UP</legend> | |||
|
No newline at end of file | ||||
|
25 | <div class="divAntenna"> | |||
|
No newline at end of file | ||||
|
26 | <label for="lblAntenna">Antenna</label> | |||
|
No newline at end of file | ||||
|
27 | <textarea name="txtAntennaUp" class="txtAntenna" cols="38" rows="8">{{ antennaUp.value }}</textarea> | |||
|
No newline at end of file | ||||
|
28 | </div> | |||
|
No newline at end of file | ||||
|
29 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
30 | <label for="lblTx">Tx</label> | |||
|
No newline at end of file | ||||
|
31 | <textarea name="txtTxUp" class="txtTR" cols="20" rows="8">{{ antennaUp.tx }}</textarea> | |||
|
No newline at end of file | ||||
|
32 | </div> | |||
|
No newline at end of file | ||||
|
33 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
34 | <label for="lblRx">Rx</label> | |||
|
No newline at end of file | ||||
|
35 | <textarea name="txtRxUp" class="txtTR" cols="20" rows="8">{{ antennaUp.rx }}</textarea> | |||
|
No newline at end of file | ||||
|
36 | </div> | |||
|
No newline at end of file | ||||
|
37 | <div class="cleardivs"></div> | |||
|
No newline at end of file | ||||
|
38 | <div class="divUes"> | |||
|
No newline at end of file | ||||
|
39 | <label for="lblUes">Ues:</label> | |||
|
No newline at end of file | ||||
|
40 | <input type="text" name="txtUesUp" value="{{ antennaUp.ues }}" /> | |||
|
No newline at end of file | ||||
|
41 | </div> | |||
|
No newline at end of file | ||||
|
42 | </fieldset> | |||
|
No newline at end of file | ||||
|
43 | </div> | |||
|
No newline at end of file | ||||
|
44 | <div id="antennaDown"> | |||
|
No newline at end of file | ||||
|
45 | <fieldset class="flsAntenna"> | |||
|
No newline at end of file | ||||
|
46 | <legend>DOWN</legend> | |||
|
No newline at end of file | ||||
|
47 | <div class="divAntenna"> | |||
|
No newline at end of file | ||||
|
48 | <label for="lblAntenna">Antenna</label> | |||
|
No newline at end of file | ||||
|
49 | <textarea name="txtAntennaDown" class="txtAntenna" cols="38" rows="8">{{ antennaDown.value }}</textarea> | |||
|
No newline at end of file | ||||
|
50 | </div> | |||
|
No newline at end of file | ||||
|
51 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
52 | <label for="lblTx">Tx</label> | |||
|
No newline at end of file | ||||
|
53 | <textarea name="txtTxDown" class="txtTR" cols="20" rows="8">{{ antennaDown.tx }}</textarea> | |||
|
No newline at end of file | ||||
|
54 | </div> | |||
|
No newline at end of file | ||||
|
55 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
56 | <label for="lblRx">Rx</label> | |||
|
No newline at end of file | ||||
|
57 | <textarea name="txtRxDown" class="txtTR" cols="20" rows="8">{{ antennaDown.rx }}</textarea> | |||
|
No newline at end of file | ||||
|
58 | </div> | |||
|
No newline at end of file | ||||
|
59 | <div class="cleardivs"></div> | |||
|
No newline at end of file | ||||
|
60 | <div class="divUes"> | |||
|
No newline at end of file | ||||
|
61 | <label for="lblUes">Ues:</label> | |||
|
No newline at end of file | ||||
|
62 | <input type="text" name="txtUesDown" value="{{ antennaDown.ues }}" /> | |||
|
No newline at end of file | ||||
|
63 | </div> | |||
|
No newline at end of file | ||||
|
64 | </fieldset> | |||
|
No newline at end of file | ||||
|
65 | </div> | |||
|
No newline at end of file | ||||
|
66 | <input type="hidden" name="pattern_id" id="pattern_id" value="{{ patternChoosen.id }}" /> | |||
|
No newline at end of file | ||||
|
67 | <input type="hidden" name="profile_id" id="profile_id" value="{{ objProfile.id }}" /> | |||
|
No newline at end of file | ||||
|
68 | </div> | |||
|
No newline at end of file | ||||
|
69 | {% endblock %} No newline at end of file |
@@ -0,0 +1,80 | |||||
|
1 | {% extends "abscontrol/edit.html" %} | |||
|
No newline at end of file | ||||
|
2 | ||||
|
No newline at end of file | ||||
|
3 | {% block mnuPattern %} | |||
|
No newline at end of file | ||||
|
4 | <div class="divMenu" id="divMnuPattern"> | |||
|
No newline at end of file | ||||
|
5 | <nav class="MnuHorizontal"> | |||
|
No newline at end of file | ||||
|
6 | <ul class="mnu" id="mnuPattern"> | |||
|
No newline at end of file | ||||
|
7 | <li><a href="/abscontrol/{{ objProfile.id }}/edit/{{ patternChoosen.id }}">Edit</a></li> | |||
|
No newline at end of file | ||||
|
8 | {% if lsPatterns|length > 1 %} | |||
|
No newline at end of file | ||||
|
9 | <li><a href="/abscontrol/{{ objProfile.id }}/delete/{{ patternChoosen.id }}">Delete</a></li> | |||
|
No newline at end of file | ||||
|
10 | {% endif %} | |||
|
No newline at end of file | ||||
|
11 | <li><a href="#">Apply</a></li> | |||
|
No newline at end of file | ||||
|
12 | </ul> | |||
|
No newline at end of file | ||||
|
13 | </nav> | |||
|
No newline at end of file | ||||
|
14 | </div> | |||
|
No newline at end of file | ||||
|
15 | <div class="cleardivs"></div> | |||
|
No newline at end of file | ||||
|
16 | {% endblock %} | |||
|
No newline at end of file | ||||
|
17 | {% block pattern %} | |||
|
No newline at end of file | ||||
|
18 | <div id="infoPattern"> | |||
|
No newline at end of file | ||||
|
19 | {% if patternChoosen %} | |||
|
No newline at end of file | ||||
|
20 | <div id="navPatterns"> | |||
|
No newline at end of file | ||||
|
21 | <nav class="MnuHorizontal"> | |||
|
No newline at end of file | ||||
|
22 | <ul class="mnu" id="navPatternList"> | |||
|
No newline at end of file | ||||
|
23 | {% for element in lsPatterns %} | |||
|
No newline at end of file | ||||
|
24 | {% if patternChoosen.id == element.id %} | |||
|
No newline at end of file | ||||
|
25 | <li><a href="/abscontrol/{{ objProfile.id }}/view/{{ element.id }}" class="lnkPatternSelected">{{ element.value }}</a></li> | |||
|
No newline at end of file | ||||
|
26 | {% else %} | |||
|
No newline at end of file | ||||
|
27 | <li><a href="/abscontrol/{{ objProfile.id }}/view/{{ element.id }}" class="lnkPattern">{{ element.value }}</a></li> | |||
|
No newline at end of file | ||||
|
28 | {% endif %} | |||
|
No newline at end of file | ||||
|
29 | {% endfor %} | |||
|
No newline at end of file | ||||
|
30 | </ul> | |||
|
No newline at end of file | ||||
|
31 | </nav> | |||
|
No newline at end of file | ||||
|
32 | </div> | |||
|
No newline at end of file | ||||
|
33 | {% endif %} | |||
|
No newline at end of file | ||||
|
34 | <div id="antennaUp"> | |||
|
No newline at end of file | ||||
|
35 | <fieldset class="flsAntenna"> | |||
|
No newline at end of file | ||||
|
36 | <legend>UP</legend> | |||
|
No newline at end of file | ||||
|
37 | <div class="divAntenna"> | |||
|
No newline at end of file | ||||
|
38 | <label for="lblAntenna">Antenna</label> | |||
|
No newline at end of file | ||||
|
39 | <p>{{ antennaUp.value }}</p> | |||
|
No newline at end of file | ||||
|
40 | </div> | |||
|
No newline at end of file | ||||
|
41 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
42 | <label for="lblTx">Tx</label> | |||
|
No newline at end of file | ||||
|
43 | <p>{{ antennaUp.tx }}</p> | |||
|
No newline at end of file | ||||
|
44 | </div> | |||
|
No newline at end of file | ||||
|
45 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
46 | <label for="lblRx">Rx</label> | |||
|
No newline at end of file | ||||
|
47 | <p>{{ antennaUp.rx }}</p> | |||
|
No newline at end of file | ||||
|
48 | </div> | |||
|
No newline at end of file | ||||
|
49 | <div class="cleardivs"></div> | |||
|
No newline at end of file | ||||
|
50 | <div class="divUes"> | |||
|
No newline at end of file | ||||
|
51 | <label for="lblUes">Ues:</label> | |||
|
No newline at end of file | ||||
|
52 | <label for="lblAntennaUpUes">{{ antennaUp.ues }}</label> | |||
|
No newline at end of file | ||||
|
53 | </div> | |||
|
No newline at end of file | ||||
|
54 | </fieldset> | |||
|
No newline at end of file | ||||
|
55 | </div> | |||
|
No newline at end of file | ||||
|
56 | <div id="antennaDown"> | |||
|
No newline at end of file | ||||
|
57 | <fieldset class="flsAntenna"> | |||
|
No newline at end of file | ||||
|
58 | <legend>DOWN</legend> | |||
|
No newline at end of file | ||||
|
59 | <div class="divAntenna"> | |||
|
No newline at end of file | ||||
|
60 | <label for="lblAntenna">Antenna</label> | |||
|
No newline at end of file | ||||
|
61 | <p>{{ antennaDown.value }}</p> | |||
|
No newline at end of file | ||||
|
62 | </div> | |||
|
No newline at end of file | ||||
|
63 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
64 | <label for="lblTx">Tx</label> | |||
|
No newline at end of file | ||||
|
65 | <p>{{ antennaDown.tx }}</p> | |||
|
No newline at end of file | ||||
|
66 | </div> | |||
|
No newline at end of file | ||||
|
67 | <div class="divTx"> | |||
|
No newline at end of file | ||||
|
68 | <label for="lblRx">Rx</label> | |||
|
No newline at end of file | ||||
|
69 | <p>{{ antennaDown.rx }}</p> | |||
|
No newline at end of file | ||||
|
70 | </div> | |||
|
No newline at end of file | ||||
|
71 | <div class="cleardivs"></div> | |||
|
No newline at end of file | ||||
|
72 | <div class="divUes"> | |||
|
No newline at end of file | ||||
|
73 | <label for="lblUes">Ues:</label> | |||
|
No newline at end of file | ||||
|
74 | <label for="lblAntennaDownUes">{{ antennaDown.ues }}</label> | |||
|
No newline at end of file | ||||
|
75 | </div> | |||
|
No newline at end of file | ||||
|
76 | </fieldset> | |||
|
No newline at end of file | ||||
|
77 | </div> | |||
|
No newline at end of file | ||||
|
78 | <input type="hidden" name="profile_id" id="profile_id" value="{{ objProfile.id }}" /> | |||
|
No newline at end of file | ||||
|
79 | </div> | |||
|
No newline at end of file | ||||
|
80 | {% endblock %} No newline at end of file |
@@ -1,11 +1,17 | |||||
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'^(?P<profile_id>\d+)/$', 'detail'), No newline at end of file |
|
9 | #url(r'^(?P<profile_id>\d+)/$', 'detail'), | |
|
10 | url(r'^(?P<profile_id>\d+)/add/$', 'addPattern'), | |||
|
No newline at end of file | ||||
|
11 | url(r'^(?P<profile_id>\d+)/save/$', 'savePattern'), | |||
|
No newline at end of file | ||||
|
12 | url(r'^(?P<profile_id>\d+)/edit/(?P<pattern_id>\d+)/$', 'editPattern'), | |||
|
No newline at end of file | ||||
|
13 | url(r'^(?P<profile_id>\d+)/view/(?P<pattern_id>\d+)/$', 'viewPattern'), | |||
|
No newline at end of file | ||||
|
14 | url(r'^(?P<profile_id>\d+)/delete/(?P<pattern_id>\d+)/$', 'deletePattern'), No newline at end of file | |||
9 | #url(r'^(?P<poll_id>\d+)/results/$', 'results'), No newline at end of file |
|
15 | #url(r'^(?P<poll_id>\d+)/results/$', 'results'), | |
10 | #url(r'^(?P<poll_id>\d+)/vote/$', 'vote'), No newline at end of file |
|
16 | #url(r'^(?P<poll_id>\d+)/vote/$', 'vote'), | |
11 | ) No newline at end of file |
|
17 | ) |
@@ -1,103 +1,211 | |||||
1 | from django.shortcuts import render_to_response, redirect |
|
1 | from django.shortcuts import render_to_response, redirect | |
No newline at end of file |
|
2 | from abscontrol.models import Profile, Pattern | ||
2 | from abscontrol.models import Profile |
|
No newline at end of file | ||
No newline at end of file |
|
3 | No newline at end of file | ||
3 |
|
||||
No newline at end of file |
|
||||
4 | def index(request): |
|
|||
No newline at end of file |
|
||||
5 | #latest_poll_list = profileAntenna.objects.all().order_by('-pub_date')[:5] |
|
|||
No newline at end of file |
|
||||
6 | profile_list = Profile.objects.all() |
|
|||
No newline at end of file |
|
||||
7 | return render_to_response('abscontrol/index.html', {'profile_list': profile_list}) |
|
|||
No newline at end of file |
|
||||
8 |
|
||||
No newline at end of file |
|
||||
9 | def new(request): |
|
|||
No newline at end of file |
|
||||
10 | profile_list = Profile.objects.all() No newline at end of file |
|
|||
11 |
|
|
4 | txtAntenna = "[[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ | |
12 |
|
|
5 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ | |
13 |
|
|
6 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ | |
14 |
|
|
7 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ | |
15 |
|
|
8 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ | |
16 |
|
|
9 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ | |
17 |
|
|
10 | "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ | |
18 |
|
|
11 | "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]]" | |
19 | txtTxUp = "[[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
12 | ||
20 |
|
|
13 | txtTxUp = "[[1,1,1,1,1,1,1,1]," \ | |
21 |
|
|
14 | "[1,1,1,1,1,1,1,1]," \ | |
22 |
|
|
15 | "[1,1,1,1,1,1,1,1]," \ | |
23 |
|
|
16 | "[1,1,1,1,1,1,1,1]," \ | |
24 |
|
|
17 | "[1,1,1,1,1,1,1,1]," \ | |
25 |
|
|
18 | "[1,1,1,1,1,1,1,1]," \ | |
26 |
|
|
19 | "[1,1,1,1,1,1,1,1]," \ | |
27 |
|
|
20 | "[1,1,1,1,1,1,1,1]]" | |
28 | "[1,1,1,1,0,0,0,0]," \ No newline at end of file |
|
21 | ||
29 |
|
|
22 | txtTxDown = "[[1,1,1,1,0,0,0,0]," \ | |
30 |
|
|
23 | "[1,1,1,1,0,0,0,0]," \ | |
31 |
|
|
24 | "[1,1,1,1,0,0,0,0]," \ | |
32 |
|
|
25 | "[1,1,1,1,0,0,0,0]," \ | |
33 |
|
|
26 | "[0,0,0,0,1,1,1,1]," \ | |
34 |
|
|
27 | "[0,0,0,0,1,1,1,1]," \ | |
35 |
|
|
28 | "[0,0,0,0,1,1,1,1]," \ | |
36 |
|
|
29 | "[0,0,0,0,1,1,1,1]]" | |
37 | "[0,0,0,0,1,1,1,1]," \ No newline at end of file |
|
30 | ||
38 |
|
|
31 | txtRxUp = "[[0,0,0,0,1,1,1,1]," \ | |
39 |
|
|
32 | "[0,0,0,0,1,1,1,1]," \ | |
40 |
|
|
33 | "[0,0,0,0,1,1,1,1]," \ | |
41 |
|
|
34 | "[0,0,0,0,1,1,1,1]," \ | |
42 |
|
|
35 | "[1,1,1,1,1,1,1,1]," \ | |
43 |
|
|
36 | "[1,1,1,1,1,1,1,1]," \ | |
44 |
|
|
37 | "[1,1,1,1,1,1,1,1]," \ | |
45 |
|
|
38 | "[1,1,1,1,1,1,1,1]]" | |
46 | "[1,1,1,1,1,1,1,1]," \ No newline at end of file |
|
39 | ||
47 |
|
|
40 | txtRxDown = "[[1,1,1,1,1,1,1,1]," \ | |
48 |
|
|
41 | "[1,1,1,1,1,1,1,1]," \ | |
49 |
|
|
42 | "[1,1,1,1,1,1,1,1]," \ | |
50 |
|
|
43 | "[1,1,1,1,1,1,1,1]," \ | |
51 | No newline at end of file |
|
44 | "[1,1,1,1,1,1,1,1]," \ | |
52 | txtUes = "[0.533333,0.00000,1.06667,0.00000]" No newline at end of file |
|
45 | "[1,1,1,1,1,1,1,1]," \ | |
|
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 | ||||
|
No newline at end of file | ||||
|
49 | txtUes = "[0.533333,0.00000,1.06667,0.00000]" | |||
|
No newline at end of file | ||||
|
50 | ||||
|
No newline at end of file | ||||
|
51 | def index(request): | |||
|
No newline at end of file | ||||
|
52 | #latest_poll_list = profileAntenna.objects.all().order_by('-pub_date')[:5] | |||
|
No newline at end of file | ||||
|
53 | profile_list = Profile.objects.all() No newline at end of file | |||
53 | No newline at end of file |
|
54 | return render_to_response('abscontrol/index.html', {'profile_list': profile_list}) | |
54 | return render_to_response('abscontrol/new.html', {'profile_list': profile_list, No newline at end of file |
|
55 | ||
55 | 'txtAntenna' : txtAntenna, No newline at end of file |
|
56 | def new(request): | |
56 | 'txtUes' : txtUes, 'txtTxUp' : txtTxUp, No newline at end of file |
|
57 | profile_list = Profile.objects.all() | |
57 | 'txtTxDown' : txtTxDown, 'txtRxUp' : txtRxUp, No newline at end of file |
|
58 | ||
58 | 'txtRxDown' : txtRxDown, No newline at end of file |
|
59 | return render_to_response('abscontrol/new.html', {'profile_list': profile_list, | |
59 |
|
|
60 | 'txtAntenna' : txtAntenna, | |
60 | No newline at end of file |
|
61 | 'txtUes' : txtUes, 'txtTxUp' : txtTxUp, | |
61 | def save(request): No newline at end of file |
|
62 | 'txtTxDown' : txtTxDown, 'txtRxUp' : txtRxUp, | |
62 | No newline at end of file |
|
63 | 'txtRxDown' : txtRxDown, | |
63 | txtProfile = request.POST["txtProfile"] No newline at end of file |
|
64 | }) | |
64 | No newline at end of file |
|
65 | ||
65 | txtAntennaUp = request.POST["txtAntennaUp"] No newline at end of file |
|
66 | def save(request): | |
66 | txtTxUp = request.POST["txtTxUp"] No newline at end of file |
|
67 | ||
67 |
txt |
|
68 | txtProfile = request.POST["txtProfile"] | |
68 | txtUesUp = request.POST["txtUesUp"] No newline at end of file |
|
69 | ||
69 | No newline at end of file |
|
70 | txtAntennaUp = request.POST["txtAntennaUp"] | |
70 |
txt |
|
71 | txtTxUp = request.POST["txtTxUp"] | |
71 |
txt |
|
72 | txtRxUp = request.POST["txtRxUp"] | |
72 |
txt |
|
73 | txtUesUp = request.POST["txtUesUp"] | |
73 | txtUesDown = request.POST["txtUesDown"] No newline at end of file |
|
74 | ||
74 | No newline at end of file |
|
75 | txtAntennaDown = request.POST["txtAntennaDown"] | |
75 | newprofile = Profile(name=txtProfile) No newline at end of file |
|
76 | txtTxDown = request.POST["txtTxDown"] | |
76 | newprofile.save() No newline at end of file |
|
77 | txtRxDown = request.POST["txtRxDown"] | |
77 | No newline at end of file |
|
78 | txtUesDown = request.POST["txtUesDown"] | |
78 | newpattern = newprofile.pattern_set.create(value=1) No newline at end of file |
|
79 | ||
79 | newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) No newline at end of file |
|
80 | newprofile = Profile(name=txtProfile) | |
80 | newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) No newline at end of file |
|
81 | newprofile.save() | |
81 | No newline at end of file |
|
82 | ||
82 | newurl = '/abscontrol/view/%d' % newprofile.id No newline at end of file |
|
83 | newpattern = newprofile.pattern_set.create(value=1) | |
83 | No newline at end of file |
|
84 | newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) | |
84 | return redirect(newurl) No newline at end of file |
|
85 | newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) | |
85 | No newline at end of file |
|
86 | ||
86 | def view(request, profile_id): No newline at end of file |
|
87 | newurl = '/abscontrol/view/%d' % newprofile.id | |
|
88 | ||||
|
No newline at end of file | ||||
|
89 | return redirect(newurl) No newline at end of file | |||
87 | if request.method == 'GET' and 'pattern' in request.GET: No newline at end of file |
|
90 | ||
88 | pattern_value = request.GET["pattern"] No newline at end of file |
|
91 | def view(request, profile_id): | |
89 | else: No newline at end of file |
|
92 | nextPattern = 0 | |
90 | pattern_value = 1 No newline at end of file |
|
93 | ||
91 | No newline at end of file |
|
94 | if request.method == 'GET' and 'pattern' in request.GET: | |
92 | profile_list = Profile.objects.all() No newline at end of file |
|
95 | pattern_value = request.GET["pattern"] | |
93 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
96 | else: | |
94 | No newline at end of file |
|
97 | pattern_value = 1 | |
95 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
98 | ||
96 | patternChoosen = objProfile.pattern_set.get(value=pattern_value) No newline at end of file |
|
99 | profile_list = Profile.objects.all() | |
97 | objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file |
|
100 | objProfile = Profile.objects.get(pk=profile_id) | |
98 | objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file |
|
101 | ||
99 | No newline at end of file |
|
102 | lsPatterns = objProfile.pattern_set.all() | |
|
103 | patternChoosen = objProfile.pattern_set.get(value=pattern_value) | |||
|
No newline at end of file | ||||
|
104 | objAntennaUp = patternChoosen.antennaup_set.get() | |||
|
No newline at end of file | ||||
|
105 | objAntennaDown = patternChoosen.antennadown_set.get() | |||
|
No newline at end of file | ||||
|
106 | ||||
|
No newline at end of file | ||||
|
107 | if len(lsPatterns) > 1: | |||
|
No newline at end of file | ||||
|
108 | if pattern_value == 1: No newline at end of file | |||
100 | return render_to_response('abscontrol/view.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file |
|
109 | nextValuePattern = pattern_value + 1 | |
101 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file |
|
110 | nextPattern = objProfile.pattern_set.get(value=nextValuePattern) | |
102 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, |
|
111 | ||
No newline at end of file |
|
112 | |||
103 | }) No newline at end of file |
|
No newline at end of file | ||
|
113 | return render_to_response('abscontrol/view.html', {'objProfile': objProfile, 'profile_list': profile_list, | |||
|
No newline at end of file | ||||
|
114 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, | |||
|
No newline at end of file | ||||
|
115 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, | |||
|
No newline at end of file | ||||
|
116 | 'nextPattern' : nextPattern, | |||
|
No newline at end of file | ||||
|
117 | }) | |||
|
No newline at end of file | ||||
|
118 | ||||
|
No newline at end of file | ||||
|
119 | def edit(request, profile_id): | |||
|
No newline at end of file | ||||
|
120 | if request.method == 'GET' and 'pattern' in request.GET: | |||
|
No newline at end of file | ||||
|
121 | pattern_value = request.GET["pattern"] | |||
|
No newline at end of file | ||||
|
122 | else: | |||
|
No newline at end of file | ||||
|
123 | pattern_value = 1 | |||
|
No newline at end of file | ||||
|
124 | ||||
|
No newline at end of file | ||||
|
125 | profile_list = Profile.objects.all() | |||
|
No newline at end of file | ||||
|
126 | objProfile = Profile.objects.get(pk=profile_id) | |||
|
No newline at end of file | ||||
|
127 | ||||
|
No newline at end of file | ||||
|
128 | lsPatterns = objProfile.pattern_set.all() | |||
|
No newline at end of file | ||||
|
129 | patternChoosen = objProfile.pattern_set.get(value=pattern_value) | |||
|
No newline at end of file | ||||
|
130 | objAntennaUp = patternChoosen.antennaup_set.get() | |||
|
No newline at end of file | ||||
|
131 | objAntennaDown = patternChoosen.antennadown_set.get() | |||
|
No newline at end of file | ||||
|
132 | ||||
|
No newline at end of file | ||||
|
133 | return render_to_response('abscontrol/edit.html', {'objProfile': objProfile, 'profile_list': profile_list, | |||
|
No newline at end of file | ||||
|
134 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, | |||
|
No newline at end of file | ||||
|
135 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, | |||
|
No newline at end of file | ||||
|
136 | }) | |||
|
No newline at end of file | ||||
|
137 | ||||
|
No newline at end of file | ||||
|
138 | def addPattern(request, profile_id): | |||
|
No newline at end of file | ||||
|
139 | profile_list = Profile.objects.all() | |||
|
No newline at end of file | ||||
|
140 | objProfile = Profile.objects.get(pk=profile_id) | |||
|
No newline at end of file | ||||
|
141 | ||||
|
No newline at end of file | ||||
|
142 | return render_to_response('abscontrol/addPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, | |||
|
No newline at end of file | ||||
|
143 | 'txtAntenna' : txtAntenna, 'txtUes' : txtUes, | |||
|
No newline at end of file | ||||
|
144 | 'txtTxUp' : txtTxUp, 'txtTxDown' : txtTxDown, | |||
|
No newline at end of file | ||||
|
145 | 'txtRxUp' : txtRxUp, 'txtRxDown' : txtRxDown, | |||
|
No newline at end of file | ||||
|
146 | }) | |||
|
No newline at end of file | ||||
|
147 | ||||
|
No newline at end of file | ||||
|
148 | def editPattern(request, profile_id, pattern_id): | |||
|
No newline at end of file | ||||
|
149 | profile_list = Profile.objects.all() | |||
|
No newline at end of file | ||||
|
150 | objProfile = Profile.objects.get(pk=profile_id) | |||
|
No newline at end of file | ||||
|
151 | lsPatterns = objProfile.pattern_set.all() | |||
|
No newline at end of file | ||||
|
152 | patternChoosen = Pattern.objects.get(pk=pattern_id) | |||
|
No newline at end of file | ||||
|
153 | objAntennaUp = patternChoosen.antennaup_set.get() | |||
|
No newline at end of file | ||||
|
154 | objAntennaDown = patternChoosen.antennadown_set.get() | |||
|
No newline at end of file | ||||
|
155 | ||||
|
No newline at end of file | ||||
|
156 | return render_to_response('abscontrol/editPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, | |||
|
No newline at end of file | ||||
|
157 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, | |||
|
No newline at end of file | ||||
|
158 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, | |||
|
No newline at end of file | ||||
|
159 | }) | |||
|
No newline at end of file | ||||
|
160 | ||||
|
No newline at end of file | ||||
|
161 | def savePattern(request, profile_id): | |||
|
No newline at end of file | ||||
|
162 | maxValuePattern = 0 | |||
|
No newline at end of file | ||||
|
163 | txtAntennaUp = request.POST["txtAntennaUp"] | |||
|
No newline at end of file | ||||
|
164 | txtTxUp = request.POST["txtTxUp"] | |||
|
No newline at end of file | ||||
|
165 | txtRxUp = request.POST["txtRxUp"] | |||
|
No newline at end of file | ||||
|
166 | txtUesUp = request.POST["txtUesUp"] | |||
|
No newline at end of file | ||||
|
167 | ||||
|
No newline at end of file | ||||
|
168 | txtAntennaDown = request.POST["txtAntennaDown"] | |||
|
No newline at end of file | ||||
|
169 | txtTxDown = request.POST["txtTxDown"] | |||
|
No newline at end of file | ||||
|
170 | txtRxDown = request.POST["txtRxDown"] | |||
|
No newline at end of file | ||||
|
171 | txtUesDown = request.POST["txtUesDown"] | |||
|
No newline at end of file | ||||
|
172 | ||||
|
No newline at end of file | ||||
|
173 | objProfile = Profile.objects.get(pk=profile_id) | |||
|
No newline at end of file | ||||
|
174 | lsPatterns = objProfile.pattern_set.all() | |||
|
No newline at end of file | ||||
|
175 | for element in lsPatterns: | |||
|
No newline at end of file | ||||
|
176 | if element.value > maxValuePattern: | |||
|
No newline at end of file | ||||
|
177 | maxPattern = element.value | |||
|
No newline at end of file | ||||
|
178 | ||||
|
No newline at end of file | ||||
|
179 | if maxPattern < 10 : | |||
|
No newline at end of file | ||||
|
180 | newValuePattern = maxPattern + 1 | |||
|
No newline at end of file | ||||
|
181 | newpattern = objProfile.pattern_set.create(value=newValuePattern) | |||
|
No newline at end of file | ||||
|
182 | newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) | |||
|
No newline at end of file | ||||
|
183 | newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) | |||
|
No newline at end of file | ||||
|
184 | ||||
|
No newline at end of file | ||||
|
185 | newurl = '/abscontrol/%d/view/%d' % (int(profile_id), newpattern.id) | |||
|
No newline at end of file | ||||
|
186 | else: | |||
|
No newline at end of file | ||||
|
187 | newurl = '/abscontrol/edit/%d' % (int(profile_id)) | |||
|
No newline at end of file | ||||
|
188 | ||||
|
No newline at end of file | ||||
|
189 | return redirect(newurl) | |||
|
No newline at end of file | ||||
|
190 | ||||
|
No newline at end of file | ||||
|
191 | def viewPattern(request, profile_id, pattern_id): | |||
|
No newline at end of file | ||||
|
192 | ||||
|
No newline at end of file | ||||
|
193 | profile_list = Profile.objects.all() | |||
|
No newline at end of file | ||||
|
194 | objProfile = Profile.objects.get(pk=profile_id) | |||
|
No newline at end of file | ||||
|
195 | ||||
|
No newline at end of file | ||||
|
196 | patternChoosen = Pattern.objects.get(pk=pattern_id) | |||
|
No newline at end of file | ||||
|
197 | ||||
|
No newline at end of file | ||||
|
198 | objAntennaUp = patternChoosen.antennaup_set.get() | |||
|
No newline at end of file | ||||
|
199 | objAntennaDown = patternChoosen.antennadown_set.get() | |||
|
No newline at end of file | ||||
|
200 | ||||
|
No newline at end of file | ||||
|
201 | lsPatterns = objProfile.pattern_set.all() | |||
|
No newline at end of file | ||||
|
202 | ||||
|
No newline at end of file | ||||
|
203 | return render_to_response('abscontrol/viewPattern.html', {'objProfile': objProfile, 'profile_list': profile_list, | |||
|
No newline at end of file | ||||
|
204 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, | |||
|
No newline at end of file | ||||
|
205 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown, | |||
|
No newline at end of file | ||||
|
206 | }) | |||
|
No newline at end of file | ||||
|
207 | No newline at end of file | |||
104 |
|
208 | def deletePattern(request, profile_id, pattern_id): | ||
105 | L105: rhodecode diff rendering error |
|
209 | newurl = '/abscontrol/edit/%d' % int(profile_id) |
@@ -1,103 +1,120 | |||||
1 | @font-face { No newline at end of file |
|
1 | @font-face { | |
2 | font-family: 'Open Sans'; No newline at end of file |
|
2 | font-family: 'Open Sans'; | |
3 | font-style: normal; No newline at end of file |
|
3 | font-style: normal; | |
4 | font-weight: 300; No newline at end of file |
|
4 | font-weight: 300; | |
5 | src: local('Open Sans Light'), local('OpenSans-Light'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff) format('woff'); No newline at end of file |
|
5 | src: local('Open Sans Light'), local('OpenSans-Light'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff) format('woff'); | |
6 | } No newline at end of file |
|
6 | } | |
7 | @font-face { No newline at end of file |
|
7 | @font-face { | |
8 | font-family: 'Open Sans'; No newline at end of file |
|
8 | font-family: 'Open Sans'; | |
9 | font-style: normal; No newline at end of file |
|
9 | font-style: normal; | |
10 | font-weight: 400; No newline at end of file |
|
10 | font-weight: 400; | |
11 | src: local('Open Sans'), local('OpenSans'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff'); No newline at end of file |
|
11 | src: local('Open Sans'), local('OpenSans'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff'); | |
12 | } No newline at end of file |
|
12 | } | |
13 | @font-face { No newline at end of file |
|
13 | @font-face { | |
14 | font-family: 'Open Sans'; No newline at end of file |
|
14 | font-family: 'Open Sans'; | |
15 | font-style: normal; No newline at end of file |
|
15 | font-style: normal; | |
16 | font-weight: 600; No newline at end of file |
|
16 | font-weight: 600; | |
17 | src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSnhCUOGz7vYGh680lGh-uXM.woff) format('woff'); No newline at end of file |
|
17 | src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSnhCUOGz7vYGh680lGh-uXM.woff) format('woff'); | |
18 | } No newline at end of file |
|
18 | } | |
19 | @font-face { No newline at end of file |
|
19 | @font-face { | |
20 | font-family: 'Open Sans'; No newline at end of file |
|
20 | font-family: 'Open Sans'; | |
21 | font-style: normal; No newline at end of file |
|
21 | font-style: normal; | |
22 | font-weight: 700; No newline at end of file |
|
22 | font-weight: 700; | |
23 | src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzHhCUOGz7vYGh680lGh-uXM.woff) format('woff'); No newline at end of file |
|
23 | src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzHhCUOGz7vYGh680lGh-uXM.woff) format('woff'); | |
24 | } No newline at end of file |
|
24 | } | |
25 | @font-face { No newline at end of file |
|
25 | @font-face { | |
26 | font-family: 'Open Sans'; No newline at end of file |
|
26 | font-family: 'Open Sans'; | |
27 | font-style: normal; No newline at end of file |
|
27 | font-style: normal; | |
28 | font-weight: 800; No newline at end of file |
|
28 | font-weight: 800; | |
29 | src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/EInbV5DfGHOiMmvb1Xr-hnhCUOGz7vYGh680lGh-uXM.woff) format('woff'); No newline at end of file |
|
29 | src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/EInbV5DfGHOiMmvb1Xr-hnhCUOGz7vYGh680lGh-uXM.woff) format('woff'); | |
30 | } No newline at end of file |
|
30 | } | |
31 | @font-face { No newline at end of file |
|
31 | @font-face { | |
32 | font-family: 'Open Sans'; No newline at end of file |
|
32 | font-family: 'Open Sans'; | |
33 | font-style: italic; No newline at end of file |
|
33 | font-style: italic; | |
34 | font-weight: 300; No newline at end of file |
|
34 | font-weight: 300; | |
35 | src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxh_xHqYgAV9Bl_ZQbYUxnQU.woff) format('woff'); No newline at end of file |
|
35 | src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxh_xHqYgAV9Bl_ZQbYUxnQU.woff) format('woff'); | |
36 | } No newline at end of file |
|
36 | } | |
37 | @font-face { No newline at end of file |
|
37 | @font-face { | |
38 | font-family: 'Open Sans'; No newline at end of file |
|
38 | font-family: 'Open Sans'; | |
39 | font-style: italic; No newline at end of file |
|
39 | font-style: italic; | |
40 | font-weight: 400; No newline at end of file |
|
40 | font-weight: 400; | |
41 | src: local('Open Sans Italic'), local('OpenSans-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBobN6UDyHWBl620a-IRfuBk.woff) format('woff'); No newline at end of file |
|
41 | src: local('Open Sans Italic'), local('OpenSans-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBobN6UDyHWBl620a-IRfuBk.woff) format('woff'); | |
42 | } No newline at end of file |
|
42 | } | |
43 | @font-face { No newline at end of file |
|
43 | @font-face { | |
44 | font-family: 'Open Sans'; No newline at end of file |
|
44 | font-family: 'Open Sans'; | |
45 | font-style: italic; No newline at end of file |
|
45 | font-style: italic; | |
46 | font-weight: 600; No newline at end of file |
|
46 | font-weight: 600; | |
47 | src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxn5HxGBcBvicCpTp6spHfNo.woff) format('woff'); No newline at end of file |
|
47 | src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxn5HxGBcBvicCpTp6spHfNo.woff) format('woff'); | |
48 | } No newline at end of file |
|
48 | } | |
49 | @font-face { No newline at end of file |
|
49 | @font-face { | |
50 | font-family: 'Open Sans'; No newline at end of file |
|
50 | font-family: 'Open Sans'; | |
51 | font-style: italic; No newline at end of file |
|
51 | font-style: italic; | |
52 | font-weight: 700; No newline at end of file |
|
52 | font-weight: 700; | |
53 | src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxjqR_3kx9_hJXbbyU8S6IN0.woff) format('woff'); No newline at end of file |
|
53 | src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxjqR_3kx9_hJXbbyU8S6IN0.woff) format('woff'); | |
54 | } No newline at end of file |
|
54 | } | |
55 | @font-face { No newline at end of file |
|
55 | @font-face { | |
56 | font-family: 'Open Sans'; No newline at end of file |
|
56 | font-family: 'Open Sans'; | |
57 | font-style: italic; No newline at end of file |
|
57 | font-style: italic; | |
58 | font-weight: 800; No newline at end of file |
|
58 | font-weight: 800; | |
59 | src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxkCDe67GEgBv_HnyvHTfdew.woff) format('woff'); No newline at end of file |
|
59 | src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxkCDe67GEgBv_HnyvHTfdew.woff) format('woff'); | |
60 | } No newline at end of file |
|
60 | } | |
61 | No newline at end of file |
|
61 | ||
62 | body {font-size: 11px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif} No newline at end of file |
|
62 | body {font-size: 11px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif} | |
63 | article, aside, figure, footer, header, hgroup, nav, section { display:block; } No newline at end of file |
|
63 | article, aside, figure, footer, header, hgroup, nav, section { display:block; } | |
64 | header {border: 1px solid #fcc; font-size: 2em; height: 50px; text-align: center; line-height: 50px} No newline at end of file |
|
64 | header {border: 1px solid #fcc; font-size: 2em; height: 50px; text-align: center; line-height: 50px} | |
65 | #schema {margin: 0 auto; width: 980px; border: 1px solid #f00; padding: 10px 10px 10px 10px} No newline at end of file |
|
65 | #schema {margin: 0 auto; width: 980px; border: 1px solid #f00; padding: 10px 10px 10px 10px} | |
66 | #content {border: 1px solid #1cc; margin-top: 5px; margin-bottom: 5px} No newline at end of file |
|
66 | #content {border: 1px solid #1cc; margin-top: 5px; margin-bottom: 5px} | |
67 | #content #leftcolumn {float: left;border: 1px solid #c55; width: 150px; font-family: Monaco;} No newline at end of file |
|
67 | #content #leftcolumn {float: left;border: 1px solid #c55; width: 150px; font-family: Monaco;} | |
68 | #content #maincolumn {float: left; border: 1px solid #000; width: 800px; padding-left: 20px;} No newline at end of file |
|
68 | #content #maincolumn {float: left; border: 1px solid #000; width: 800px; padding-left: 20px;} | |
69 | footer {border: 1px solid #200; font-size: 0.9em; height: 30px; text-align: center; line-height: 20px} No newline at end of file |
|
69 | footer {border: 1px solid #200; font-size: 0.9em; height: 30px; text-align: center; line-height: 20px} | |
70 |
|
70 | |||
No newline at end of file |
|
71 | .cleardivs {clear: both; border: 0px solid #400; height: 0px} | ||
71 | .cleardivs {clear: both; border: 1px solid #400; height: 0px} |
|
No newline at end of file | ||
No newline at end of file |
|
72 | /****************************************************************************************/ | ||
72 | No newline at end of file |
|
No newline at end of file | ||
|
73 | /****** ESTILOS GENERALES *****************/ | |||
|
No newline at end of file | ||||
|
74 | /****************************************************************************************/ | |||
|
No newline at end of file | ||||
|
75 | .mnu{ height: 22px; border: 1px solid #c55 !important;} | |||
|
No newline at end of file | ||||
|
76 | .mnu li{ display:inline;} | |||
|
No newline at end of file | ||||
|
77 | /*.MnuHorizontal{ display: -webkit-box; -webkit-box-orient:horizontal;}*/ | |||
|
No newline at end of file | ||||
|
78 | /*.MnuHorizontal a{ display:block; padding:10px; -webkit-box-flex:1; text-align:center; }*/ No newline at end of file | |||
73 | No newline at end of file |
|
79 | ||
74 | /****************************************************************************************/ No newline at end of file |
|
80 | /****************************************************************************************/ | |
75 | /****** MENU DE NAVEGACION DE PERFILES **********************************/ No newline at end of file |
|
81 | /****** MENU DE NAVEGACION DE PERFILES **********************************/ | |
76 | /****************************************************************************************/ No newline at end of file |
|
82 | /****************************************************************************************/ | |
77 | #content #infoProfiles {border: 1px solid #d00; width: 140px; margin: 0px; padding-top: 2px; padding-bottom: 2px} No newline at end of file |
|
83 | #content #infoProfiles {border: 1px solid #d00; width: 140px; margin: 0px; padding-top: 2px; padding-bottom: 2px} | |
78 | .lblInfo {padding-left: 12px; line-height: 20px;} No newline at end of file |
|
84 | .lblInfo {padding-left: 12px; line-height: 20px;} | |
79 | #infoProfiles select {padding-left: 12px; line-height: 20px;margin-left: 12px} |
|
85 | #infoProfiles select {padding-left: 12px; line-height: 20px;margin-left: 12px} | |
No newline at end of file |
|
86 | #content nav {border: 0px solid #c55 !important; margin: 0px; font-family: Monaco; font-size: 1.2em;} | ||
80 | #content nav {border: 1px solid #c55; width: 140px; margin: 0px; font-family: Monaco; font-size: 1.2em;} |
|
No newline at end of file | ||
No newline at end of file |
|
87 | #content nav ul{list-style: none; list-style-type: none; margin: 0; padding-left: 20px; border: 0px solid #eee !important} | ||
81 | #content nav ul{list-style: none; list-style-type: none; margin: 15px 15px 15px 15px; padding-left: 20px; border: 0px solid #eee} |
|
No newline at end of file | ||
No newline at end of file |
|
88 | #content nav ul li{line-height: 22px; } No newline at end of file | ||
82 | #content nav ul li{line-height: 20px} No newline at end of file |
|
|||
83 | No newline at end of file |
|
89 | ||
84 | /****************************************************************************************/ No newline at end of file |
|
90 | /****************************************************************************************/ | |
85 | /******** FORMULARIO DE PERFILES *************************************/ No newline at end of file |
|
91 | /******** FORMULARIO DE PERFILES *************************************/ | |
86 | /****************************************************************************************/ |
|
92 | /****************************************************************************************/ | |
No newline at end of file |
|
93 | #divProfile { border: 0px solid #dff; margin: 10px 0px; padding: 10px 10px; width: 500px } | ||
87 | #divProfile {border: 0px solid #dff; margin: 10px 0px; padding: 10px 10px; width: 500px} |
|
No newline at end of file | ||
No newline at end of file |
|
94 | .flsAntenna { margin: 10px 0px; width: 750px; padding: 10px 10px } | ||
88 | .flsAntenna {margin: 10px 0px; width: 750px; padding: 10px 10px} |
|
No newline at end of file | ||
No newline at end of file |
|
95 | #divPattern textarea,input[type=text],label{ font-family: Monaco; font-size: inherit; } No newline at end of file | ||
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 |
|
96 | ||
91 | #divPattern textarea {resize: none; overflow: hidden} No newline at end of file |
|
97 | #divPattern textarea {resize: none; overflow: hidden} | |
92 |
|
98 | |||
No newline at end of file |
|
99 | .divAntenna { float: left; margin: 10px; height: 160px; border: 0px solid #fcc !important; width: 260px } | ||
93 | .divAntenna {float: left; margin: 10px; height: 160px; border: 1px solid #fcc !important; width: 260px} |
|
No newline at end of file | ||
No newline at end of file |
|
100 | .divAntenna label{ display: block } | ||
94 | .divAntenna label {display: block} |
|
No newline at end of file | ||
No newline at end of file |
|
101 | .txtAntenna { max-width: 250px; max-height: 125px; width: 250px; height: 125px } | ||
95 | .txtAntenna {max-width: 250px; max-height: 125px; width: 250px; height: 125px} No newline at end of file |
|
No newline at end of file | ||
|
102 | .divAntenna p{ max-width: 250px; max-height: 125px; width: 250px; height: 125px } No newline at end of file | |||
96 |
|
103 | |||
No newline at end of file |
|
104 | .divTx { display: block; float: left; margin: 10px; height: 150px } | ||
97 | .divTx {display: block; float: left; margin: 10px; height: 150px} |
|
No newline at end of file | ||
No newline at end of file |
|
105 | .divTx label{ display: block } | ||
98 | .divTx label {display: block} |
|
No newline at end of file | ||
No newline at end of file |
|
106 | .divTx textarea{ width: 135px; max-width: 135px; height: 125px; max-height: 125px; text-align: justify } | ||
99 | .divTx textarea {width: 135px; max-width: 135px; height: 125px; max-height: 125px; text-align: justify} No newline at end of file |
|
No newline at end of file | ||
|
107 | .divTx p{ width: 135px; max-width: 135px; height: 125px; max-height: 125px; text-align: justify } No newline at end of file | |||
100 |
|
108 | |||
No newline at end of file |
|
109 | .divUes { display: block; margin: 10px} | ||
101 | .divUes {display: block; margin: 10px} |
|
No newline at end of file | ||
No newline at end of file |
|
110 | .divUes input[type=text] { width: 240px; max-width: 240px;} No newline at end of file | ||
102 | .divUes input[type=text] {width: 240px; max-width: 240px;} No newline at end of file |
|
|||
103 | No newline at end of file |
|
111 | ||
|
112 | /****************************************************************************************/ | |||
|
No newline at end of file | ||||
|
113 | /****** MENU DE NAVEGACION DE PATRONES **********************************/ | |||
|
No newline at end of file | ||||
|
114 | /****************************************************************************************/ | |||
|
No newline at end of file | ||||
|
115 | #divMnuPattern{ width: 350px; height: 25px; display: block; border: 1px solid #1cc !important; float: right } | |||
|
No newline at end of file | ||||
|
116 | #infoPattern{ display: block; border: 1px solid #1494f6 !important, margin: 5px 2px; } | |||
|
No newline at end of file | ||||
|
117 | #navPatterns{ margin: 5px auto; padding: 2px; border: 1px solid #d00 !important; width: 400px; height: 25px} | |||
|
No newline at end of file | ||||
|
118 | #navPatterns ul li{ width: 50px; border: 1px solid #1cc !important} | |||
|
No newline at end of file | ||||
|
119 | #navPatterns a{ width: 50px; border: 0px solid #1cc !important} | |||
|
No newline at end of file | ||||
|
120 | #navPatternList{ margin: 0px auto; border: 1px solid #ecc !important} No newline at end of file |
@@ -1,64 +1,60 | |||||
1 | {% extends "base.html" %} No newline at end of file |
|
1 | {% extends "base.html" %} | |
2 | No newline at end of file |
|
2 | ||
3 | {% block title %}ABS CONTROL:::::{% endblock %} No newline at end of file |
|
3 | {% block title %}ABS CONTROL:::::{% endblock %} | |
4 | {% block scripting %} No newline at end of file |
|
4 | {% block scripting %} | |
5 | {% if profile_list %} |
|
5 | {% if profile_list %} | |
No newline at end of file |
|
6 | <script src="/static/static/js/profiles.js"></script> No newline at end of file | ||
6 | <script type="text/javascript"> |
|
|||
No newline at end of file |
|
||||
7 | $(document).on('ready',function(){ |
|
|||
No newline at end of file |
|
||||
8 | $('#listProfiles').change(function() { |
|
|||
No newline at end of file |
|
||||
9 | if($(this).val() != -1){ |
|
|||
No newline at end of file |
|
||||
10 | location.href="/abscontrol/view/" + $(this).val(); |
|
|||
No newline at end of file |
|
||||
11 | } |
|
|||
No newline at end of file |
|
||||
12 | }); |
|
|||
No newline at end of file |
|
||||
13 | }); |
|
|||
No newline at end of file |
|
||||
14 | </script> No newline at end of file |
|
|||
15 | {% endif %} No newline at end of file |
|
7 | {% endif %} | |
16 | {% endblock %} No newline at end of file |
|
8 | {% endblock %} | |
17 | {% block content %} No newline at end of file |
|
9 | {% block content %} | |
18 | <div id="content"> No newline at end of file |
|
10 | <div id="content"> | |
19 | {% block leftcolumn %} No newline at end of file |
|
11 | {% block leftcolumn %} | |
20 | <div id="leftcolumn"> No newline at end of file |
|
12 | <div id="leftcolumn"> | |
21 | <div id="lsProfiles"> No newline at end of file |
|
13 | <div id="lsProfiles"> | |
22 | <div id="infoProfiles"> No newline at end of file |
|
14 | <div id="infoProfiles"> | |
23 | <label for="lblProfile" class="lblInfo">Profiles:</label><br /> No newline at end of file |
|
15 | <label for="lblProfile" class="lblInfo">Profiles:</label><br /> | |
24 | {% if profile_list %} No newline at end of file |
|
16 | {% if profile_list %} | |
25 | <select name="lsProfiles" id="listProfiles"> No newline at end of file |
|
17 | <select name="lsProfiles" id="listProfiles"> | |
26 | <option value="-1">Choose ...</option> No newline at end of file |
|
18 | <option value="-1">Choose ...</option> | |
27 | {% for entry in profile_list %} No newline at end of file |
|
19 | {% for entry in profile_list %} | |
28 | {% if objProfile %} No newline at end of file |
|
20 | {% if objProfile %} | |
29 | {% if objProfile.id == entry.id %} No newline at end of file |
|
21 | {% if objProfile.id == entry.id %} | |
30 | <option value="{{ entry.id }}" selected>{{ entry.name }}</option> No newline at end of file |
|
22 | <option value="{{ entry.id }}" selected>{{ entry.name }}</option> | |
31 | {% else %} No newline at end of file |
|
23 | {% else %} | |
32 | <option value="{{ entry.id }}">{{ entry.name }}</option> No newline at end of file |
|
24 | <option value="{{ entry.id }}">{{ entry.name }}</option> | |
33 | {% endif %} No newline at end of file |
|
25 | {% endif %} | |
34 | {% else %} No newline at end of file |
|
26 | {% else %} | |
35 | <option value="{{ entry.id }}">{{ entry.name }}</option> No newline at end of file |
|
27 | <option value="{{ entry.id }}">{{ entry.name }}</option> | |
36 | {% endif %} No newline at end of file |
|
28 | {% endif %} | |
37 | {% endfor %} No newline at end of file |
|
29 | {% endfor %} | |
38 | </select> No newline at end of file |
|
30 | </select> | |
39 | {% else %} No newline at end of file |
|
31 | {% else %} | |
40 | <label for="lblMessage" class="lblInfo">No profiles.</label> No newline at end of file |
|
32 | <label for="lblMessage" class="lblInfo">No profiles.</label> | |
41 | {% endif %} No newline at end of file |
|
33 | {% endif %} | |
42 | </div> No newline at end of file |
|
34 | </div> | |
43 | </div> No newline at end of file |
|
35 | </div> | |
44 | {% block mnu_profile %} No newline at end of file |
|
36 | {% block mnu_profile %} | |
45 | <nav> No newline at end of file |
|
37 | <nav> | |
46 | <ul> No newline at end of file |
|
38 | <ul> | |
47 | <li><a href="/abscontrol/new">New</a></li> No newline at end of file |
|
39 | <li><a href="/abscontrol/new">New</a></li> | |
|
40 | {% if objProfile %} | |||
|
No newline at end of file | ||||
|
41 | <li><a href="/abscontrol/edit/{{ objProfile.id }}">Edit</a></li> | |||
|
No newline at end of file | ||||
|
42 | <li><a href="#">Save</a></li> | |||
|
No newline at end of file | ||||
|
43 | {% endif %} No newline at end of file | |||
48 | <li><a href="#">Save as</a></li> No newline at end of file |
|
44 | <li><a href="#">Save as</a></li> | |
49 | <li><a href="#">Import</a></li> No newline at end of file |
|
45 | <li><a href="#">Import</a></li> | |
50 | <li><a href="#">Export</a></li> No newline at end of file |
|
46 | <li><a href="#">Export</a></li> | |
51 | <li><a href="#">Apply</a></li> No newline at end of file |
|
47 | <li><a href="#">Apply</a></li> | |
52 | </ul> No newline at end of file |
|
48 | </ul> | |
53 | </nav> No newline at end of file |
|
49 | </nav> | |
54 | {% endblock %} No newline at end of file |
|
50 | {% endblock %} | |
55 | </div> No newline at end of file |
|
51 | </div> | |
56 | {% endblock %} No newline at end of file |
|
52 | {% endblock %} | |
57 | {% block maincolumn %} No newline at end of file |
|
53 | {% block maincolumn %} | |
58 | <div id="maincolumn"> No newline at end of file |
|
54 | <div id="maincolumn"> | |
59 | No newline at end of file |
|
55 | ||
60 | </div> No newline at end of file |
|
56 | </div> | |
61 | {% endblock %} No newline at end of file |
|
57 | {% endblock %} | |
62 | <div class="cleardivs"></div> No newline at end of file |
|
58 | <div class="cleardivs"></div> | |
63 | </div> No newline at end of file |
|
59 | </div> | |
64 | {% endblock %} No newline at end of file |
|
60 | {% endblock %} |
@@ -1,63 +1,74 | |||||
1 | {% extends "abscontrol/index.html" %} No newline at end of file |
|
1 | {% extends "abscontrol/index.html" %} | |
2 | {% block title %}ABS CONTROL:::PROFILE:::{{ objProfile.name }}{% endblock %} No newline at end of file |
|
2 | {% block title %}ABS CONTROL:::PROFILE:::{{ objProfile.name }}{% endblock %} | |
3 | No newline at end of file |
|
3 | ||
4 | {% block maincolumn%} No newline at end of file |
|
4 | {% block maincolumn%} | |
5 | <div id="maincolumn"> |
|
5 | <div id="maincolumn"> | |
No newline at end of file |
|
||||
6 | <form action="/abscontrol/save/" method="post"> No newline at end of file |
|
|||
7 | <div id="divProfile"> No newline at end of file |
|
6 | <div id="divProfile"> | |
8 | <label for="lblName">Profile:</label> No newline at end of file |
|
7 | <label for="lblName">Profile:</label> | |
9 | <label for="lblProfile">{{ objProfile.name }}</label> No newline at end of file |
|
8 | <label for="lblProfile">{{ objProfile.name }}</label> | |
10 | </div> No newline at end of file |
|
9 | </div> | |
11 | <div id="divPattern"> No newline at end of file |
|
10 | <div id="divPattern"> | |
|
11 | <div id="infoPattern"> No newline at end of file | |||
12 | {% if patternChoosen %} |
|
12 | {% if patternChoosen %} | |
No newline at end of file |
|
13 | <div id="navPatterns"> | ||
13 | <label for="lblValue">Pattern:</label> |
|
No newline at end of file | ||
No newline at end of file |
|
14 | <nav class="MnuHorizontal"> | ||
14 | <label for="lblPatternValue">{{ patternChoosen.value }}</label> No newline at end of file |
|
No newline at end of file | ||
|
15 | <ul class="mnu" id="navPatternList"> | |||
|
No newline at end of file | ||||
|
16 | {% for element in lsPatterns %} | |||
|
No newline at end of file | ||||
|
17 | {% if patternChoosen.id == element.id %} | |||
|
No newline at end of file | ||||
|
18 | <li><a href="/abscontrol/{{ objProfile.id }}/view/{{ element.id }}" class="lnkPatternSelected">{{ element.value }}</a></li> | |||
|
No newline at end of file | ||||
|
19 | {% else %} | |||
|
No newline at end of file | ||||
|
20 | <li><a href="/abscontrol/{{ objProfile.id }}/view/{{ element.id }}" class="lnkPattern">{{ element.value }}</a></li> | |||
|
No newline at end of file | ||||
|
21 | {% endif %} | |||
|
No newline at end of file | ||||
|
22 | {% endfor %} | |||
|
No newline at end of file | ||||
|
23 | </ul> | |||
|
No newline at end of file | ||||
|
24 | </nav> | |||
|
No newline at end of file | ||||
|
25 | </div> No newline at end of file | |||
15 | {% endif %} No newline at end of file |
|
26 | {% endif %} | |
16 | <div id="antennaUp"> No newline at end of file |
|
27 | <div id="antennaUp"> | |
17 | <fieldset class="flsAntenna"> No newline at end of file |
|
28 | <fieldset class="flsAntenna"> | |
18 | <legend>UP</legend> No newline at end of file |
|
29 | <legend>UP</legend> | |
19 | <div class="divAntenna"> No newline at end of file |
|
30 | <div class="divAntenna"> | |
20 | <label for="lblAntenna">Antenna</label> |
|
31 | <label for="lblAntenna">Antenna</label> | |
No newline at end of file |
|
32 | <p>{{ antennaUp.value }}</p> No newline at end of file | ||
21 | <textarea name="txtAntennaUp" class="txtAntenna" cols="38" rows="8">{{ antennaUp.value }}</textarea> No newline at end of file |
|
|||
22 | </div> No newline at end of file |
|
33 | </div> | |
23 | <div class="divTx"> No newline at end of file |
|
34 | <div class="divTx"> | |
24 | <label for="lblTx">Tx</label> |
|
35 | <label for="lblTx">Tx</label> | |
No newline at end of file |
|
36 | <p>{{ antennaUp.tx }}</p> No newline at end of file | ||
25 | <textarea name="txtTxUp" class="txtTR" cols="20" rows="8">{{ antennaUp.tx }}</textarea> No newline at end of file |
|
|||
26 | </div> No newline at end of file |
|
37 | </div> | |
27 | <div class="divTx"> No newline at end of file |
|
38 | <div class="divTx"> | |
28 | <label for="lblRx">Rx</label> |
|
39 | <label for="lblRx">Rx</label> | |
No newline at end of file |
|
40 | <p>{{ antennaUp.rx }}</p> No newline at end of file | ||
29 | <textarea name="txtRxUp" class="txtTR" cols="20" rows="8">{{ antennaUp.rx }}</textarea> No newline at end of file |
|
|||
30 | </div> No newline at end of file |
|
41 | </div> | |
31 | <div class="cleardivs"></div> No newline at end of file |
|
42 | <div class="cleardivs"></div> | |
32 | <div class="divUes"> No newline at end of file |
|
43 | <div class="divUes"> | |
33 | <label for="lblUes">Ues:</label> No newline at end of file |
|
44 | <label for="lblUes">Ues:</label> | |
34 | <label for="lblAntennaUpUes">{{ antennaUp.ues }}</label> No newline at end of file |
|
45 | <label for="lblAntennaUpUes">{{ antennaUp.ues }}</label> | |
35 | </div> No newline at end of file |
|
46 | </div> | |
36 | </fieldset> No newline at end of file |
|
47 | </fieldset> | |
37 | </div> No newline at end of file |
|
48 | </div> | |
38 | <div id="antennaDown"> No newline at end of file |
|
49 | <div id="antennaDown"> | |
39 | <fieldset class="flsAntenna"> No newline at end of file |
|
50 | <fieldset class="flsAntenna"> | |
40 | <legend>DOWN</legend> No newline at end of file |
|
51 | <legend>DOWN</legend> | |
41 | <div class="divAntenna"> No newline at end of file |
|
52 | <div class="divAntenna"> | |
42 | <label for="lblAntenna">Antenna</label> |
|
53 | <label for="lblAntenna">Antenna</label> | |
No newline at end of file |
|
54 | <p>{{ antennaDown.value }}</p> No newline at end of file | ||
43 | <textarea name="txtAntennaDown" class="txtAntenna" cols="38" rows="8">{{ antennaDown.value }}</textarea> No newline at end of file |
|
|||
44 | </div> No newline at end of file |
|
55 | </div> | |
45 | <div class="divTx"> No newline at end of file |
|
56 | <div class="divTx"> | |
46 | <label for="lblTx">Tx</label> |
|
57 | <label for="lblTx">Tx</label> | |
No newline at end of file |
|
58 | <p>{{ antennaDown.tx }}</p> No newline at end of file | ||
47 | <textarea name="txtTxDown" class="txtTR" cols="20" rows="8">{{ antennaDown.tx }}</textarea> No newline at end of file |
|
|||
48 | </div> No newline at end of file |
|
59 | </div> | |
49 | <div class="divTx"> No newline at end of file |
|
60 | <div class="divTx"> | |
50 | <label for="lblRx">Rx</label> |
|
61 | <label for="lblRx">Rx</label> | |
No newline at end of file |
|
62 | <p>{{ antennaDown.rx }}</p> No newline at end of file | ||
51 | <textarea name="txtRxDown" class="txtTR" cols="20" rows="8">{{ antennaDown.rx }}</textarea> No newline at end of file |
|
|||
52 | </div> No newline at end of file |
|
63 | </div> | |
53 | <div class="cleardivs"></div> No newline at end of file |
|
64 | <div class="cleardivs"></div> | |
54 | <div class="divUes"> No newline at end of file |
|
65 | <div class="divUes"> | |
55 | <label for="lblUes">Ues:</label> No newline at end of file |
|
66 | <label for="lblUes">Ues:</label> | |
56 | <label for="lblAntennaDownUes">{{ antennaDown.ues }}</label> No newline at end of file |
|
67 | <label for="lblAntennaDownUes">{{ antennaDown.ues }}</label> | |
57 | </div> No newline at end of file |
|
68 | </div> | |
58 | </fieldset> No newline at end of file |
|
69 | </fieldset> | |
59 | </div> No newline at end of file |
|
70 | </div> | |
60 | </div> |
|
71 | </div> | |
No newline at end of file |
|
72 | </div> No newline at end of file | ||
61 | </form> No newline at end of file |
|
|||
62 | </div> No newline at end of file |
|
73 | </div> | |
63 | {% endblock %} No newline at end of file |
|
74 | {% endblock %} |
@@ -1,52 +1,52 | |||||
1 | {% load static %} No newline at end of file |
|
1 | {% load static %} | |
2 | <!DOCTYPE html> No newline at end of file |
|
2 | <!DOCTYPE html> | |
3 | <html lang="en"> No newline at end of file |
|
3 | <html lang="en"> | |
4 | <head> No newline at end of file |
|
4 | <head> | |
5 | <meta charset="utf-8" /> No newline at end of file |
|
5 | <meta charset="utf-8" /> | |
6 | {% comment %} No newline at end of file |
|
6 | {% comment %} | |
7 | <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame No newline at end of file |
|
7 | <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame | |
8 | Remove this if you use the .htaccess --> No newline at end of file |
|
8 | Remove this if you use the .htaccess --> | |
9 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> No newline at end of file |
|
9 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
10 | {% endcomment %} No newline at end of file |
|
10 | {% endcomment %} | |
11 | <link rel="stylesheet" href="{% static 'static/css/style.css' %}" type="text/css" /> No newline at end of file |
|
11 | <link rel="stylesheet" href="{% static 'static/css/style.css' %}" type="text/css" /> | |
12 | <script src="{% static 'static/js/jquery-1.9.1.min.js' %}"></script> No newline at end of file |
|
12 | <script src="{% static 'static/js/jquery-1.9.1.min.js' %}"></script> | |
|
13 | {% block scripting %}{% endblock %} No newline at end of file | |||
13 | <title>{% block title %}JRO WEB APPS::::{% endblock %}</title> No newline at end of file |
|
14 | <title>{% block title %}JRO WEB APPS::::{% endblock %}</title> | |
14 | <meta name="description" content="JRO WEB APPLICATIONS" /> No newline at end of file |
|
15 | <meta name="description" content="JRO WEB APPLICATIONS" /> | |
15 | <meta name="author" content="Jose Antonio Sal y Rosas Celi" /> No newline at end of file |
|
16 | <meta name="author" content="Jose Antonio Sal y Rosas Celi" /> | |
16 | No newline at end of file |
|
17 | ||
17 | {# <meta name="viewport" content="width=device-width; initial-scale=1.0" /> #} No newline at end of file |
|
18 | {# <meta name="viewport" content="width=device-width; initial-scale=1.0" /> #} | |
18 | {% comment %} No newline at end of file |
|
19 | {% comment %} | |
19 | <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references --> No newline at end of file |
|
20 | <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references --> | |
20 | <link rel="shortcut icon" href="/favicon.ico" /> No newline at end of file |
|
21 | <link rel="shortcut icon" href="/favicon.ico" /> | |
21 | <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> No newline at end of file |
|
22 | <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> | |
22 | {% endcomment %} |
|
23 | {% endcomment %} | |
No newline at end of file |
|
||||
23 | {% block scripting %}{% endblock %} No newline at end of file |
|
|||
24 | </head> No newline at end of file |
|
24 | </head> | |
25 | <body> No newline at end of file |
|
25 | <body> | |
26 | <div id="schema"> No newline at end of file |
|
26 | <div id="schema"> | |
27 | <header> No newline at end of file |
|
27 | <header> | |
28 | {% block header %} No newline at end of file |
|
28 | {% block header %} | |
29 | <nav> No newline at end of file |
|
29 | <nav> | |
30 | <a href="/abscontrol">ABS</a> | No newline at end of file |
|
30 | <a href="/abscontrol">ABS</a> | | |
31 | <a href="#">CR</a> | No newline at end of file |
|
31 | <a href="#">CR</a> | | |
32 | <a href="#">DDS</a> | No newline at end of file |
|
32 | <a href="#">DDS</a> | | |
33 | <a href="#">JARS</a> No newline at end of file |
|
33 | <a href="#">JARS</a> | |
34 | </nav> No newline at end of file |
|
34 | </nav> | |
35 | {% endblock %} No newline at end of file |
|
35 | {% endblock %} | |
36 | </header> No newline at end of file |
|
36 | </header> | |
37 | {% block content %} No newline at end of file |
|
37 | {% block content %} | |
38 | <div id="content"> No newline at end of file |
|
38 | <div id="content"> | |
39 | <nav> No newline at end of file |
|
39 | <nav> | |
40 | <p><a href="/">Home</a></p> No newline at end of file |
|
40 | <p><a href="/">Home</a></p> | |
41 | <p><a href="/contact">Contact</a></p> No newline at end of file |
|
41 | <p><a href="/contact">Contact</a></p> | |
42 | </nav> No newline at end of file |
|
42 | </nav> | |
43 | </div> No newline at end of file |
|
43 | </div> | |
44 | {% endblock %} No newline at end of file |
|
44 | {% endblock %} | |
45 | <footer> No newline at end of file |
|
45 | <footer> | |
46 | {% block footer %} No newline at end of file |
|
46 | {% block footer %} | |
47 | <p>© Copyright by Jicamarca Radio Observatory</p> No newline at end of file |
|
47 | <p>© Copyright by Jicamarca Radio Observatory</p> | |
48 | {% endblock %} No newline at end of file |
|
48 | {% endblock %} | |
49 | </footer> No newline at end of file |
|
49 | </footer> | |
50 | </div> No newline at end of file |
|
50 | </div> | |
51 | </body> No newline at end of file |
|
51 | </body> | |
52 | </html> No newline at end of file |
|
52 | </html> |
General Comments 0
You need to be logged in to leave comments.
Login now