@@ -116,7 +116,7 | |||||
116 | else: No newline at end of file |
|
116 | else: | |
117 | pattern_value = 1 No newline at end of file |
|
117 | pattern_value = 1 | |
118 |
|
118 | |||
No newline at end of file |
|
119 | profile_list = Profile.objects.filter(state=1) No newline at end of file | ||
119 | profile_list = Profile.objects.all() No newline at end of file |
|
|||
120 | objProfile = Profile.objects.get(pk=profile_id) No newline at end of file |
|
120 | objProfile = Profile.objects.get(pk=profile_id) | |
121 | No newline at end of file |
|
121 | ||
122 | lsPatterns = objProfile.pattern_set.all() No newline at end of file |
|
122 | lsPatterns = objProfile.pattern_set.all() |
@@ -8,10 +8,10 | |||||
8 | No newline at end of file |
|
8 | ||
9 | body { font-size: 12px; } No newline at end of file |
|
9 | body { font-size: 12px; } | |
10 | header {border: 1px solid #fcc; font-size: 2em; height: 50px; text-align: center; line-height: 50px} |
|
10 | header {border: 1px solid #fcc; font-size: 2em; height: 50px; text-align: center; line-height: 50px} | |
No newline at end of file |
|
11 | #schema {margin: 0 auto; width: 980px; border: 1px solid #f00 !important; padding: 10px 10px 10px 10px} No newline at end of file | ||
11 | #schema {margin: 0 auto; width: 980px; border: 1px solid #f00; padding: 10px 10px 10px 10px} No newline at end of file |
|
|||
12 | #content {border: 1px solid #1cc; margin-top: 5px; margin-bottom: 5px} |
|
12 | #content {border: 1px solid #1cc; margin-top: 5px; margin-bottom: 5px} | |
No newline at end of file |
|
13 | #content #leftcolumn {float: left;border: 2px solid #f00 !important; width: 160px; } | ||
13 | #content #leftcolumn {float: left;border: 1px solid #c55; width: 150px; } |
|
No newline at end of file | ||
No newline at end of file |
|
14 | #content #maincolumn {float: left; border: 1px solid #000 !important; width: 780px; margin: 0; padding: 0px 10px } No newline at end of file | ||
14 | #content #maincolumn {float: left; border: 1px solid #000; width: 800px; padding-left: 20px;} No newline at end of file |
|
|||
15 | footer {border: 1px solid #200; font-size: 0.9em; height: 30px; text-align: center; line-height: 20px} No newline at end of file |
|
15 | footer {border: 1px solid #200; font-size: 0.9em; height: 30px; text-align: center; line-height: 20px} | |
16 | No newline at end of file |
|
16 | ||
17 | .cleardivs {clear: both; border: 0px solid #400; height: 0px} No newline at end of file |
|
17 | .cleardivs {clear: both; border: 0px solid #400; height: 0px} |
@@ -2,6 +2,19 | |||||
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 | {% block scripting %} No newline at end of file |
|
3 | {% block scripting %} | |
4 | <script src="/static/static/js/patterns.js"></script> No newline at end of file |
|
4 | <script src="/static/static/js/patterns.js"></script> | |
|
5 | {% endblock %} | |||
|
No newline at end of file | ||||
|
6 | {% block mnu_profile %} | |||
|
No newline at end of file | ||||
|
7 | <nav class="MnuVertical" id="mnuProfiles"> | |||
|
No newline at end of file | ||||
|
8 | <ul> | |||
|
No newline at end of file | ||||
|
9 | <li><a href="/abscontrol/new">New</a></li> | |||
|
No newline at end of file | ||||
|
10 | <li><a href="#">Save</a></li> | |||
|
No newline at end of file | ||||
|
11 | <li><a href="#">Save as</a></li> | |||
|
No newline at end of file | ||||
|
12 | <li><a href="/abscontrol/import">Import</a></li> | |||
|
No newline at end of file | ||||
|
13 | {% if objProfile %} | |||
|
No newline at end of file | ||||
|
14 | <li><a href="#" id="lnkExport" alt="{{ objProfile.id }}">Export</a></li> | |||
|
No newline at end of file | ||||
|
15 | {% endif %} | |||
|
No newline at end of file | ||||
|
16 | </ul> | |||
|
No newline at end of file | ||||
|
17 | </nav> No newline at end of file | |||
5 | {% endblock %} No newline at end of file |
|
18 | {% endblock %} | |
6 | {% block maincolumn%} No newline at end of file |
|
19 | {% block maincolumn%} | |
7 | <div id="maincolumn"> No newline at end of file |
|
20 | <div id="maincolumn"> |
@@ -4,7 +4,9 | |||||
4 | <div class="divMenu" id="divMnuPattern"> No newline at end of file |
|
4 | <div class="divMenu" id="divMnuPattern"> | |
5 | <nav class="MnuHorizontal"> No newline at end of file |
|
5 | <nav class="MnuHorizontal"> | |
6 | <ul class="mnu" id="mnuPattern"> No newline at end of file |
|
6 | <ul class="mnu" id="mnuPattern"> | |
|
7 | {% if lsPatterns|length < 10 %} No newline at end of file | |||
7 | <li><a href="#" id="lnkAdd">Add</a></li> No newline at end of file |
|
8 | <li><a href="#" id="lnkAdd">Add</a></li> | |
|
9 | {% endif %} No newline at end of file | |||
8 | <li><a href="#" id="lnkSave">Save</a></li> No newline at end of file |
|
10 | <li><a href="#" id="lnkSave">Save</a></li> | |
9 | <li><a href="#" id="lnkCancel">Delete</a></li> No newline at end of file |
|
11 | <li><a href="#" id="lnkCancel">Delete</a></li> | |
10 | </ul> No newline at end of file |
|
12 | </ul> |
@@ -8,6 +8,16 | |||||
8 | <label for="lblProfile">{{ objProfile.name }}</label> No newline at end of file |
|
8 | <label for="lblProfile">{{ objProfile.name }}</label> | |
9 | </div> No newline at end of file |
|
9 | </div> | |
10 | <div id="divPattern"> No newline at end of file |
|
10 | <div id="divPattern"> | |
|
11 | {% block mnuPattern %} | |||
|
No newline at end of file | ||||
|
12 | <div class="divMenu" id="divMnuPattern"> | |||
|
No newline at end of file | ||||
|
13 | <nav class="MnuHorizontal"> | |||
|
No newline at end of file | ||||
|
14 | <ul class="mnu" id="mnuPattern"> | |||
|
No newline at end of file | ||||
|
15 | <li><a href="#">Apply</a></li> | |||
|
No newline at end of file | ||||
|
16 | </ul> | |||
|
No newline at end of file | ||||
|
17 | </nav> | |||
|
No newline at end of file | ||||
|
18 | </div> | |||
|
No newline at end of file | ||||
|
19 | <div class="cleardivs"></div> | |||
|
No newline at end of file | ||||
|
20 | {% endblock %} No newline at end of file | |||
11 | <div id="infoPattern"> No newline at end of file |
|
21 | <div id="infoPattern"> | |
12 | {% if patternChoosen %} No newline at end of file |
|
22 | {% if patternChoosen %} | |
13 | <div id="navPatterns"> No newline at end of file |
|
23 | <div id="navPatterns"> |
@@ -1,19 +1,5 | |||||
1 |
{% extends "abscontrol/ |
|
1 | {% extends "abscontrol/view.html" %} No newline at end of file | |
2 |
|
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 |
|
3 | {% block pattern %} | |
18 | <div id="infoPattern"> No newline at end of file |
|
4 | <div id="infoPattern"> | |
19 | {% if patternChoosen %} No newline at end of file |
|
5 | {% if patternChoosen %} |
General Comments 0
You need to be logged in to leave comments.
Login now