Skip to content

Commit c548f89

Browse files
committed
Fix Eval Padding Issues and #52
1 parent 8cc2852 commit c548f89

File tree

4 files changed

+13
-19
lines changed

4 files changed

+13
-19
lines changed

conditional/blueprints/intro_evals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_fid_cm_count(member_id):
8787
],
8888
'social_events': '',
8989
'freshman_project': "Pending",
90-
'comments': 'Does not have account yet',
90+
'ldap_account': False,
9191
'status': "Pending"
9292
}
9393
ie_members.append(freshman)
@@ -137,7 +137,7 @@ def get_fid_cm_count(member_id):
137137
],
138138
'social_events': freshman_data.social_events,
139139
'freshman_project': freshman_data.freshman_project,
140-
'comments': freshman_data.other_notes,
140+
'ldap_account': True,
141141
'status': freshman_data.freshman_eval_result
142142
}
143143
ie_members.append(member)

conditional/templates/intro_evals.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020
</div>
2121
<div class="col-sm-5 col-md-4 col-lg-5">
2222
<h4 class="eval-name">{{m['name']}}</h4>
23-
<h6 class="eval-uid">{{m['uid']}}</h6>
23+
{% if not m['ldap_account'] %}
24+
<span class="label label-default">Internal Account: {{m['uid']}}</span>
25+
{% else %}
26+
<h6 class="eval-uid">{{ m['uid'] }}</h6>
27+
{% endif %}
28+
2429
</div>
2530
<!---->
2631
<div class="col-sm-5 col-md-6 col-lg-5 vcenter">
@@ -63,11 +68,9 @@ <h6 class="eval-uid">{{m['uid']}}</h6>
6368
</div>
6469
</div>
6570
</div>
66-
<div class="row">
67-
71+
{% if m['house_meetings_missed']|length != 0 or m['technical_seminars']|length != 0 %}
6872
<button class="btn-expand-panel" role="button" data-toggle="collapse" href="#evalsCollapse-{{m['uid']}}" aria-expanded="false" aria-controls="evalsCollapse-{{m['uid']}}"><span class="glyphicon glyphicon glyphicon-menu-down"></span></button>
69-
70-
</div>
73+
{% endif %}
7174
<div class="collapse" id="evalsCollapse-{{m['uid']}}">
7275
{% if m['house_meetings_missed']|length > 0 %}
7376
<!-- VV only display if missing house meetings VV -->
@@ -93,7 +96,7 @@ <h4>Missed House Meetings</h4>
9396
</table>
9497
{% endif %}
9598
<!-- ^^ HOUSE MEETINGS TABLE -->
96-
{% if True or m['technical_seminars']|length > 0 %}
99+
{% if m['technical_seminars']|length > 0 %}
97100

98101
<h4>Technical Seminars</h4>
99102
<table class="table">
@@ -110,10 +113,6 @@ <h4>Technical Seminars</h4>
110113
<h4>Social Events</h4>
111114
<p>{{m['social_events']}}</p>
112115
{% endif %}
113-
114-
115-
<h4>Other Notes</h4>
116-
<p>{{m['comments']}}</p>
117116
</div>
118117
</div>
119118

conditional/templates/spring_evals.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,7 @@ <h6 class="eval-uid">{{m['uid']}}</h6>
5555
</div>
5656

5757
{% if m['house_meetings_missed']|length > 0 or m['major_projects_len'] > 0 %}
58-
<div class="row">
59-
<div class="col-xs-12 col-sm-12 col-md-12">
60-
6158
<button class="btn-expand-panel" role="button" data-toggle="collapse" href="#evalsCollapse{{m['uid']}}" aria-expanded="false" aria-controls="evalsCollapse{{m['uid']}}"><span class="glyphicon glyphicon glyphicon-menu-down"></span></button>
62-
63-
</div>
64-
</div>
6559
{% endif %}
6660
<div class="collapse" id="evalsCollapse{{m['uid']}}">
6761
{% if m['house_meetings_missed']|length > 0 %}

frontend/stylesheets/pages/_evals.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919

2020
.eval-panel {
21-
padding: 25px 20px 10px;
21+
padding: 25px 20px;
2222
}
2323

2424
.col-sm-2 {
@@ -49,6 +49,7 @@
4949
border: 0;
5050
background: transparent;
5151
width: 100%;
52+
height: 0;
5253
text-align: center;
5354
}
5455
}

0 commit comments

Comments
 (0)