@@ -49,17 +49,11 | |||
|
49 | 49 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
50 | 50 | No newline at end of file |
|
51 | 51 | lsPatterns = objProfile.pattern_set.all() |
|
52 | No newline at end of file | |
|
52 | patternChoosen = objProfile.pattern_set.filter(value=pattern_value) | |
|
No newline at end of file | ||
|
53 | No newline at end of file | |
|
53 | #print patternChoosen.value | |
|
No newline at end of file | ||
|
54 | No newline at end of file | |
|
54 | #objAntennaUp = patternChoosen.antennaup_set.all()[0] | |
|
No newline at end of file | ||
|
55 | #objAntennaDown = patternChoosen.antennadown_set.all()[0] No newline at end of file | |
|
56 | 55 | |
|
56 | No newline at end of file | |
|
57 | #objAntennaUp = AntennaUp.objects.get(pattern=patternChoosen.id) | |
|
No newline at end of file | ||
|
58 | #objAntennaDown = AntennaDown.objects.get(pattern=patternChoosen.id) | |
|
No newline at end of file | ||
|
59 | ''' | |
|
No newline at end of file | ||
|
60 | return render_to_response('abscontrol/view.html', {'nameProfile': objProfile.name, 'profile_list': profile_list, No newline at end of file | |
|
61 | 57 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns, |
|
58 | No newline at end of file | |
|
62 | 'antennaUp' : objAntennaUp, 'antennaDown' : objAntennaDown,}) | |
|
No newline at end of file | ||
|
59 | No newline at end of file | |
|
63 | ''' | |
|
No newline at end of file | ||
|
64 | return render_to_response('abscontrol/view.html', {'nameProfile': objProfile.name, 'profile_list': profile_list, | |
|
No newline at end of file | ||
|
65 | 'patternChoosen' : patternChoosen, 'lsPatterns' : lsPatterns,}) No newline at end of file |
@@ -13,7 +13,15 | |||
|
13 | 13 | <select name="lsProfiles"> No newline at end of file |
|
14 | 14 | <option>Choose ...</option> No newline at end of file |
|
15 | 15 | {% for entry in profile_list %} No newline at end of file |
|
16 | {% if objProfile %} | |
|
No newline at end of file | ||
|
17 | {% if objProfile.id == entry.id %} | |
|
No newline at end of file | ||
|
18 | <option value="{{ entry.id }}" selected>{{ entry.name }}</option> | |
|
No newline at end of file | ||
|
19 | {% else %} No newline at end of file | |
|
16 | 20 | <option value="{{ entry.id }}">{{ entry.name }}</option> No newline at end of file |
|
21 | {% endif %} | |
|
No newline at end of file | ||
|
22 | {% else %} | |
|
No newline at end of file | ||
|
23 | <option value="{{ entry.id }}">{{ entry.name }}</option> | |
|
No newline at end of file | ||
|
24 | {% endif %} No newline at end of file | |
|
17 | 25 | {% endfor %} No newline at end of file |
|
18 | 26 | </select> No newline at end of file |
|
19 | 27 | {% else %} No newline at end of file |
@@ -1,12 +1,12 | |||
|
1 | 1 | {% extends "abscontrol/index.html" %} |
|
2 | No newline at end of file | |
|
2 | {% block title %}ABS CONTROL:::PROFILE:::{{ nameProfile }}{% 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 | 6 | <form action="/abscontrol/save/" method="post"> No newline at end of file |
|
7 | 7 | <div id="divProfile"> No newline at end of file |
|
8 | 8 | <label for="lblName">Profile:</label> |
|
9 | No newline at end of file | |
|
9 | <label for="lblProfile">{{ nameProfile }}</label> No newline at end of file | |
|
10 | 10 | </div> No newline at end of file |
|
11 | 11 | <div id="divPattern"> No newline at end of file |
|
12 | 12 | {% if patternChoosen %} No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now