Skip to content

Commit 8e7020a

Browse files
committed
Additional button UI and testing data
1 parent a782a0e commit 8e7020a

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,5 @@ packet/static/mstile-310x150.png
122122
packet/static/mstile-310x310.png
123123
packet/static/mstile-70x70.png
124124
packet/static/safari-pinned-tab.svg
125-
packet/static/site.webmanifest
125+
packet/static/site.webmanifest
126+
faviconData.json
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.sign-packet {
2+
float: right;
3+
text-align: right;
4+
}

frontend/scss/packet.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ $csh-pink: #b0197e;
33
@import "partials/base";
44

55
@import "components/switches";
6-
@import "components/datatables";
6+
@import "components/datatables";
7+
@import "components/buttons";

packet/routes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ def index(info=None):
2020
"name": "Testiboi",
2121
"signatures": 12,
2222
"uid": 111
23+
},
24+
{
25+
"name": "Ram Zallllllan",
26+
"signatures": 69,
27+
"uid": 420
2328
}
2429
]
2530
return render_template("active_packets.html", info=info, freshmen=freshmen)

packet/templates/active_packets.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ <h3 class="page-title">Active Packets</h3>
2828
{% for m in freshmen %}
2929
<tr>
3030
<td>
31-
<img class="eval-user-img" alt="{{ m['uid'] }}"
32-
src="https://profiles.csh.rit.edu/image/{{ m['uid'] }}"
33-
width="30"
34-
height="30"/> {{ m['name'] }}
31+
{{ m['name'] }}
3532
</td>
3633
<td>
3734
<span class="glyphicon glyphicon-ok-sign green eval-info-status"></span>
@@ -41,8 +38,12 @@ <h3 class="page-title">Active Packets</h3>
4138
<span class="glyphicon glyphicon-ok-sign green eval-info-status"></span>
4239
{{ m['total_percent'] }}
4340
</td>
44-
<td>
45-
Sign Packet Button
41+
<td class="sign-packet" align="right">
42+
{# if not signed #}
43+
<button class="btn btn-primary">Sign</button>
44+
{# else if signed #}
45+
<button class="btn btn-primary" disabled="disabled"><i class="fa fa-check"></i>&nbsp;Signed</button>
46+
{# endif #}
4647
</td>
4748
</tr>
4849
{% endfor %}

0 commit comments

Comments
 (0)