##// END OF EJS Templates
- Agregadas las vistas y funciones para administrar los patrones de cada perfil.
jsalyrosas -
r134:135
parent child
Show More
@@ -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 1 from django.conf.urls import patterns, url No newline at end of file
2 2 No newline at end of file
3 3 urlpatterns = patterns('abscontrol.views', No newline at end of file
4 4 url(r'^$', 'index'), No newline at end of file
5 5 url(r'^new/$', 'new'), No newline at end of file
6 6 url(r'^save/$', 'save'), No newline at end of file
7 7 url(r'^view/(?P<profile_id>\d+)/$', 'view'), No newline at end of file
8 url(r'^edit/(?P<profile_id>\d+)/$', 'edit'), No newline at end of file
8 9 #url(r'^(?P<profile_id>\d+)/$', 'detail'), No newline at end of file
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 15 #url(r'^(?P<poll_id>\d+)/results/$', 'results'), No newline at end of file
10 16 #url(r'^(?P<poll_id>\d+)/vote/$', 'vote'), No newline at end of file
11 17 ) No newline at end of file
@@ -1,103 +1,211
1 1 from django.shortcuts import render_to_response, redirect
2 No newline at end of file
2 from abscontrol.models import Profile
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]," \ No newline at end of file
12 5 "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ No newline at end of file
13 6 "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ No newline at end of file
14 7 "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ No newline at end of file
15 8 "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ No newline at end of file
16 9 "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]," \ No newline at end of file
17 10 "[1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]," \ No newline at end of file
18 11 "[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]]" No newline at end of file
19 12 txtTxUp = "[[1,1,1,1,1,1,1,1]," \ No newline at end of file
20 13 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
21 14 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
22 15 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
23 16 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
24 17 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
25 18 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
26 19 "[1,1,1,1,1,1,1,1]]" No newline at end of file
27 20 txtTxDown = "[[1,1,1,1,0,0,0,0]," \ No newline at end of file
28 21 "[1,1,1,1,0,0,0,0]," \ No newline at end of file
29 22 "[1,1,1,1,0,0,0,0]," \ No newline at end of file
30 23 "[1,1,1,1,0,0,0,0]," \ No newline at end of file
31 24 "[0,0,0,0,1,1,1,1]," \ No newline at end of file
32 25 "[0,0,0,0,1,1,1,1]," \ No newline at end of file
33 26 "[0,0,0,0,1,1,1,1]," \ No newline at end of file
34 27 "[0,0,0,0,1,1,1,1]]" No newline at end of file
35 28 txtRxUp = "[[0,0,0,0,1,1,1,1]," \ No newline at end of file
36 29 "[0,0,0,0,1,1,1,1]," \ No newline at end of file
37 30 "[0,0,0,0,1,1,1,1]," \ No newline at end of file
38 31 "[0,0,0,0,1,1,1,1]," \ No newline at end of file
39 32 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
40 33 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
41 34 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
42 35 "[1,1,1,1,1,1,1,1]]" No newline at end of file
43 36 txtRxDown = "[[1,1,1,1,1,1,1,1]," \ No newline at end of file
44 37 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
45 38 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
46 39 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
47 40 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
48 41 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
49 42 "[1,1,1,1,1,1,1,1]," \ No newline at end of file
50 43 "[1,1,1,1,1,1,1,1]]" No newline at end of file
51 44 No newline at end of file
52 45 txtUes = "[0.533333,0.00000,1.06667,0.00000]" 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
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 54 No newline at end of file
54 55 return render_to_response('abscontrol/new.html', {'profile_list': profile_list, No newline at end of file
55 56 'txtAntenna' : txtAntenna, No newline at end of file
56 57 'txtUes' : txtUes, 'txtTxUp' : txtTxUp, No newline at end of file
57 58 'txtTxDown' : txtTxDown, 'txtRxUp' : txtRxUp, No newline at end of file
58 59 'txtRxDown' : txtRxDown, No newline at end of file
59 60 }) No newline at end of file
60 61 No newline at end of file
61 62 def save(request): No newline at end of file
62 63 No newline at end of file
63 64 txtProfile = request.POST["txtProfile"] No newline at end of file
64 65 No newline at end of file
65 66 txtAntennaUp = request.POST["txtAntennaUp"] No newline at end of file
66 67 txtTxUp = request.POST["txtTxUp"] No newline at end of file
67 68 txtRxUp = request.POST["txtRxUp"] No newline at end of file
68 69 txtUesUp = request.POST["txtUesUp"] No newline at end of file
69 70 No newline at end of file
70 71 txtAntennaDown = request.POST["txtAntennaDown"] No newline at end of file
71 72 txtTxDown = request.POST["txtTxDown"] No newline at end of file
72 73 txtRxDown = request.POST["txtRxDown"] No newline at end of file
73 74 txtUesDown = request.POST["txtUesDown"] No newline at end of file
74 75 No newline at end of file
75 76 newprofile = Profile(name=txtProfile) No newline at end of file
76 77 newprofile.save() No newline at end of file
77 78 No newline at end of file
78 79 newpattern = newprofile.pattern_set.create(value=1) No newline at end of file
79 80 newpattern.antennaup_set.create(value=txtAntennaUp,tx=txtTxUp,rx=txtRxUp,ues=txtUesUp) No newline at end of file
80 81 newpattern.antennadown_set.create(value=txtAntennaDown,tx=txtTxDown,rx=txtRxDown,ues=txtUesDown) No newline at end of file
81 82 No newline at end of file
82 83 newurl = '/abscontrol/view/%d' % newprofile.id No newline at end of file
83 84 No newline at end of file
84 85 return redirect(newurl) No newline at end of file
85 86 No newline at end of file
86 87 def view(request, profile_id): No newline at end of file
88
No newline at end of file
89 return redirect(newurl) No newline at end of file
87 90 if request.method == 'GET' and 'pattern' in request.GET: No newline at end of file
88 91 pattern_value = request.GET["pattern"] No newline at end of file
89 92 else: No newline at end of file
90 93 pattern_value = 1 No newline at end of file
91 94 No newline at end of file
92 95 profile_list = Profile.objects.all() No newline at end of file
93 96 objProfile = Profile.objects.get(pk=profile_id) No newline at end of file
94 97 No newline at end of file
95 98 lsPatterns = objProfile.pattern_set.all() No newline at end of file
96 99 patternChoosen = objProfile.pattern_set.get(value=pattern_value) No newline at end of file
97 100 objAntennaUp = patternChoosen.antennaup_set.get() No newline at end of file
98 101 objAntennaDown = patternChoosen.antennadown_set.get() No newline at end of file
99 102 No newline at end of file
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 109 return render_to_response('abscontrol/view.html', {'objProfile': objProfile, 'profile_list': profile_list, No newline at end of file
101 110 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, No newline at end of file
102 111 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown,
112 No newline at end of file
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
105 209 L105: rhodecode diff rendering error
@@ -1,103 +1,120
1 1 @font-face { No newline at end of file
2 2 font-family: 'Open Sans'; No newline at end of file
3 3 font-style: normal; No newline at end of file
4 4 font-weight: 300; No newline at end of file
5 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
6 6 } No newline at end of file
7 7 @font-face { No newline at end of file
8 8 font-family: 'Open Sans'; No newline at end of file
9 9 font-style: normal; No newline at end of file
10 10 font-weight: 400; No newline at end of file
11 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
12 12 } No newline at end of file
13 13 @font-face { No newline at end of file
14 14 font-family: 'Open Sans'; No newline at end of file
15 15 font-style: normal; No newline at end of file
16 16 font-weight: 600; No newline at end of file
17 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
18 18 } No newline at end of file
19 19 @font-face { No newline at end of file
20 20 font-family: 'Open Sans'; No newline at end of file
21 21 font-style: normal; No newline at end of file
22 22 font-weight: 700; No newline at end of file
23 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
24 24 } No newline at end of file
25 25 @font-face { No newline at end of file
26 26 font-family: 'Open Sans'; No newline at end of file
27 27 font-style: normal; No newline at end of file
28 28 font-weight: 800; No newline at end of file
29 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
30 30 } No newline at end of file
31 31 @font-face { No newline at end of file
32 32 font-family: 'Open Sans'; No newline at end of file
33 33 font-style: italic; No newline at end of file
34 34 font-weight: 300; No newline at end of file
35 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
36 36 } No newline at end of file
37 37 @font-face { No newline at end of file
38 38 font-family: 'Open Sans'; No newline at end of file
39 39 font-style: italic; No newline at end of file
40 40 font-weight: 400; No newline at end of file
41 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
42 42 } No newline at end of file
43 43 @font-face { No newline at end of file
44 44 font-family: 'Open Sans'; No newline at end of file
45 45 font-style: italic; No newline at end of file
46 46 font-weight: 600; No newline at end of file
47 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
48 48 } No newline at end of file
49 49 @font-face { No newline at end of file
50 50 font-family: 'Open Sans'; No newline at end of file
51 51 font-style: italic; No newline at end of file
52 52 font-weight: 700; No newline at end of file
53 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
54 54 } No newline at end of file
55 55 @font-face { No newline at end of file
56 56 font-family: 'Open Sans'; No newline at end of file
57 57 font-style: italic; No newline at end of file
58 58 font-weight: 800; No newline at end of file
59 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
60 60 } No newline at end of file
61 61 No newline at end of file
62 62 body {font-size: 11px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif} No newline at end of file
63 63 article, aside, figure, footer, header, hgroup, nav, section { display:block; } No newline at end of file
64 64 header {border: 1px solid #fcc; font-size: 2em; height: 50px; text-align: center; line-height: 50px} No newline at end of file
65 65 #schema {margin: 0 auto; width: 980px; border: 1px solid #f00; padding: 10px 10px 10px 10px} No newline at end of file
66 66 #content {border: 1px solid #1cc; margin-top: 5px; margin-bottom: 5px} No newline at end of file
67 67 #content #leftcolumn {float: left;border: 1px solid #c55; width: 150px; font-family: Monaco;} No newline at end of file
68 68 #content #maincolumn {float: left; border: 1px solid #000; width: 800px; padding-left: 20px;} No newline at end of file
69 69 footer {border: 1px solid #200; font-size: 0.9em; height: 30px; text-align: center; line-height: 20px} No newline at end of file
70 70
71 No newline at end of file
71 .cleardivs {clear: both; border: 1px solid #400; height: 0px}
No newline at end of file
72 No newline at end of file
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 79 No newline at end of file
74 80 /****************************************************************************************/ No newline at end of file
75 81 /****** MENU DE NAVEGACION DE PERFILES **********************************/ No newline at end of file
76 82 /****************************************************************************************/ No newline at end of file
77 83 #content #infoProfiles {border: 1px solid #d00; width: 140px; margin: 0px; padding-top: 2px; padding-bottom: 2px} No newline at end of file
78 84 .lblInfo {padding-left: 12px; line-height: 20px;} No newline at end of file
79 85 #infoProfiles select {padding-left: 12px; line-height: 20px;margin-left: 12px}
86 No newline at end of file
80 #content nav {border: 1px solid #c55; width: 140px; margin: 0px; font-family: Monaco; font-size: 1.2em;}
No newline at end of file
87 No newline at end of file
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
88 No newline at end of file
82 #content nav ul li{line-height: 20px} No newline at end of file
83 89 No newline at end of file
84 90 /****************************************************************************************/ No newline at end of file
85 91 /******** FORMULARIO DE PERFILES *************************************/ No newline at end of file
86 92 /****************************************************************************************/
93 No newline at end of file
87 #divProfile {border: 0px solid #dff; margin: 10px 0px; padding: 10px 10px; width: 500px}
No newline at end of file
94 No newline at end of file
88 .flsAntenna {margin: 10px 0px; width: 750px; padding: 10px 10px}
No newline at end of file
95 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 96 No newline at end of file
91 97 #divPattern textarea {resize: none; overflow: hidden} No newline at end of file
92 98
99 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
100 No newline at end of file
94 .divAntenna label {display: block}
No newline at end of file
101 No newline at end of file
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
104 No newline at end of file
97 .divTx {display: block; float: left; margin: 10px; height: 150px}
No newline at end of file
105 No newline at end of file
98 .divTx label {display: block}
No newline at end of file
106 No newline at end of file
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
109 No newline at end of file
101 .divUes {display: block; margin: 10px}
No newline at end of file
110 No newline at end of file
102 .divUes input[type=text] {width: 240px; max-width: 240px;} No newline at end of file
103 111 No newline at end of file
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 1 {% extends "base.html" %} No newline at end of file
2 2 No newline at end of file
3 3 {% block title %}ABS CONTROL:::::{% endblock %} No newline at end of file
4 4 {% block scripting %} No newline at end of file
5 5 {% if profile_list %}
6 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 7 {% endif %} No newline at end of file
16 8 {% endblock %} No newline at end of file
17 9 {% block content %} No newline at end of file
18 10 <div id="content"> No newline at end of file
19 11 {% block leftcolumn %} No newline at end of file
20 12 <div id="leftcolumn"> No newline at end of file
21 13 <div id="lsProfiles"> No newline at end of file
22 14 <div id="infoProfiles"> No newline at end of file
23 15 <label for="lblProfile" class="lblInfo">Profiles:</label><br /> No newline at end of file
24 16 {% if profile_list %} No newline at end of file
25 17 <select name="lsProfiles" id="listProfiles"> No newline at end of file
26 18 <option value="-1">Choose ...</option> No newline at end of file
27 19 {% for entry in profile_list %} No newline at end of file
28 20 {% if objProfile %} No newline at end of file
29 21 {% if objProfile.id == entry.id %} No newline at end of file
30 22 <option value="{{ entry.id }}" selected>{{ entry.name }}</option> No newline at end of file
31 23 {% else %} No newline at end of file
32 24 <option value="{{ entry.id }}">{{ entry.name }}</option> No newline at end of file
33 25 {% endif %} No newline at end of file
34 26 {% else %} No newline at end of file
35 27 <option value="{{ entry.id }}">{{ entry.name }}</option> No newline at end of file
36 28 {% endif %} No newline at end of file
37 29 {% endfor %} No newline at end of file
38 30 </select> No newline at end of file
39 31 {% else %} No newline at end of file
40 32 <label for="lblMessage" class="lblInfo">No profiles.</label> No newline at end of file
41 33 {% endif %} No newline at end of file
42 34 </div> No newline at end of file
43 35 </div> No newline at end of file
44 36 {% block mnu_profile %} No newline at end of file
45 37 <nav> No newline at end of file
46 38 <ul> No newline at end of file
47 39 <li><a href="/abscontrol/new">New</a></li> No newline at end of file
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 44 <li><a href="#">Save as</a></li> No newline at end of file
49 45 <li><a href="#">Import</a></li> No newline at end of file
50 46 <li><a href="#">Export</a></li> No newline at end of file
51 47 <li><a href="#">Apply</a></li> No newline at end of file
52 48 </ul> No newline at end of file
53 49 </nav> No newline at end of file
54 50 {% endblock %} No newline at end of file
55 51 </div> No newline at end of file
56 52 {% endblock %} No newline at end of file
57 53 {% block maincolumn %} No newline at end of file
58 54 <div id="maincolumn"> No newline at end of file
59 55 No newline at end of file
60 56 </div> No newline at end of file
61 57 {% endblock %} No newline at end of file
62 58 <div class="cleardivs"></div> No newline at end of file
63 59 </div> No newline at end of file
64 60 {% endblock %} No newline at end of file
@@ -1,63 +1,74
1 1 {% extends "abscontrol/index.html" %} No newline at end of file
2 2 {% block title %}ABS CONTROL:::PROFILE:::{{ objProfile.name }}{% endblock %} No newline at end of file
3 3 No newline at end of file
4 4 {% block maincolumn%} No newline at end of file
5 5 <div id="maincolumn">
No newline at end of file
6 <form action="/abscontrol/save/" method="post"> No newline at end of file
7 6 <div id="divProfile"> No newline at end of file
8 7 <label for="lblName">Profile:</label> No newline at end of file
9 8 <label for="lblProfile">{{ objProfile.name }}</label> No newline at end of file
10 9 </div> No newline at end of file
11 10 <div id="divPattern"> No newline at end of file
11 <div id="infoPattern"> No newline at end of file
12 12 {% if patternChoosen %}
13 No newline at end of file
13 <label for="lblValue">Pattern:</label>
No newline at end of file
14 No newline at end of file
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 26 {% endif %} No newline at end of file
16 27 <div id="antennaUp"> No newline at end of file
17 28 <fieldset class="flsAntenna"> No newline at end of file
18 29 <legend>UP</legend> No newline at end of file
19 30 <div class="divAntenna"> No newline at end of file
20 31 <label for="lblAntenna">Antenna</label>
32 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 33 </div> No newline at end of file
23 34 <div class="divTx"> No newline at end of file
24 35 <label for="lblTx">Tx</label>
36 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 37 </div> No newline at end of file
27 38 <div class="divTx"> No newline at end of file
28 39 <label for="lblRx">Rx</label>
40 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 41 </div> No newline at end of file
31 42 <div class="cleardivs"></div> No newline at end of file
32 43 <div class="divUes"> No newline at end of file
33 44 <label for="lblUes">Ues:</label> No newline at end of file
34 45 <label for="lblAntennaUpUes">{{ antennaUp.ues }}</label> No newline at end of file
35 46 </div> No newline at end of file
36 47 </fieldset> No newline at end of file
37 48 </div> No newline at end of file
38 49 <div id="antennaDown"> No newline at end of file
39 50 <fieldset class="flsAntenna"> No newline at end of file
40 51 <legend>DOWN</legend> No newline at end of file
41 52 <div class="divAntenna"> No newline at end of file
42 53 <label for="lblAntenna">Antenna</label>
54 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 55 </div> No newline at end of file
45 56 <div class="divTx"> No newline at end of file
46 57 <label for="lblTx">Tx</label>
58 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 59 </div> No newline at end of file
49 60 <div class="divTx"> No newline at end of file
50 61 <label for="lblRx">Rx</label>
62 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 63 </div> No newline at end of file
53 64 <div class="cleardivs"></div> No newline at end of file
54 65 <div class="divUes"> No newline at end of file
55 66 <label for="lblUes">Ues:</label> No newline at end of file
56 67 <label for="lblAntennaDownUes">{{ antennaDown.ues }}</label> No newline at end of file
57 68 </div> No newline at end of file
58 69 </fieldset> No newline at end of file
59 70 </div> No newline at end of file
60 71 </div>
72 No newline at end of file
61 </form> No newline at end of file
62 73 </div> No newline at end of file
63 74 {% endblock %} No newline at end of file
@@ -1,52 +1,52
1 1 {% load static %} No newline at end of file
2 2 <!DOCTYPE html> No newline at end of file
3 3 <html lang="en"> No newline at end of file
4 4 <head> No newline at end of file
5 5 <meta charset="utf-8" /> No newline at end of file
6 6 {% comment %} No newline at end of file
7 7 <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame No newline at end of file
8 8 Remove this if you use the .htaccess --> No newline at end of file
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> No newline at end of file
10 10 {% endcomment %} No newline at end of file
11 11 <link rel="stylesheet" href="{% static 'static/css/style.css' %}" type="text/css" /> No newline at end of file
12 12 <script src="{% static 'static/js/jquery-1.9.1.min.js' %}"></script> No newline at end of file
13 {% block scripting %}{% endblock %} No newline at end of file
13 14 <title>{% block title %}JRO WEB APPS::::{% endblock %}</title> No newline at end of file
14 15 <meta name="description" content="JRO WEB APPLICATIONS" /> No newline at end of file
15 16 <meta name="author" content="Jose Antonio Sal y Rosas Celi" /> No newline at end of file
16 17 No newline at end of file
17 18 {# <meta name="viewport" content="width=device-width; initial-scale=1.0" /> #} No newline at end of file
18 19 {% comment %} No newline at end of file
19 20 <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references --> No newline at end of file
20 21 <link rel="shortcut icon" href="/favicon.ico" /> No newline at end of file
21 22 <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> No newline at end of file
22 23 {% endcomment %}
No newline at end of file
23 {% block scripting %}{% endblock %} No newline at end of file
24 24 </head> No newline at end of file
25 25 <body> No newline at end of file
26 26 <div id="schema"> No newline at end of file
27 27 <header> No newline at end of file
28 28 {% block header %} No newline at end of file
29 29 <nav> No newline at end of file
30 30 <a href="/abscontrol">ABS</a> | No newline at end of file
31 31 <a href="#">CR</a> | No newline at end of file
32 32 <a href="#">DDS</a> | No newline at end of file
33 33 <a href="#">JARS</a> No newline at end of file
34 34 </nav> No newline at end of file
35 35 {% endblock %} No newline at end of file
36 36 </header> No newline at end of file
37 37 {% block content %} No newline at end of file
38 38 <div id="content"> No newline at end of file
39 39 <nav> No newline at end of file
40 40 <p><a href="/">Home</a></p> No newline at end of file
41 41 <p><a href="/contact">Contact</a></p> No newline at end of file
42 42 </nav> No newline at end of file
43 43 </div> No newline at end of file
44 44 {% endblock %} No newline at end of file
45 45 <footer> No newline at end of file
46 46 {% block footer %} No newline at end of file
47 47 <p>&copy; Copyright by Jicamarca Radio Observatory</p> No newline at end of file
48 48 {% endblock %} No newline at end of file
49 49 </footer> No newline at end of file
50 50 </div> No newline at end of file
51 51 </body> No newline at end of file
52 52 </html> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now