aboutsummaryrefslogtreecommitdiff
path: root/src/components/PeerTeachers.svelte
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2022-07-27 19:19:10 -0500
committerFurkan Sahin <furkan-dev@proton.me>2022-07-27 19:19:10 -0500
commit09bbabb765d9e8c64b9455394295b5732622d3c3 (patch)
treea26c8698acdcd5265e9c2467d0356c93119e0103 /src/components/PeerTeachers.svelte
parentc81c5f2ffeb037918429b4f279588161452d344b (diff)
Parse the `csv` questionnairre. Currently populates values for recently added attributes for only existing PTs.
Diffstat (limited to 'src/components/PeerTeachers.svelte')
-rw-r--r--src/components/PeerTeachers.svelte17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/components/PeerTeachers.svelte b/src/components/PeerTeachers.svelte
index f0d34de..22e1622 100644
--- a/src/components/PeerTeachers.svelte
+++ b/src/components/PeerTeachers.svelte
@@ -26,13 +26,12 @@
});
}
- let headers = ["", "First", "Last", "UIN", "Email", "Lab Hours", ""];
+ let headers = ["", "First", "Last", "Email", "UIN", "Phone", "Pref", "Lab", "Gen","Ethnicity", "Grad", "Status", ""];
- $: console.log(headers);
</script>
<div class="overflow-auto h-full">
- <table class="table w-full">
+ <table class="table table-compact w-full">
<!-- head -->
<thead>
<tr>
@@ -65,11 +64,15 @@
{/if}
</th>
<th>{pt.lastname}</th>
- <th>{pt.id}</th>
<th>{pt.email}</th>
- <th>
- {pt.lab_hours}
- </th>
+ <th>{pt.id}</th>
+ <th>{pt.phone_number}</th>
+ <th>{pt.pref_work}</th>
+ <th>{pt.lab_hours}</th>
+ <th>{pt.gender}</th>
+ <th>{pt.ethnicity}</th>
+ <th>{pt.graduation}</th>
+ <th>{pt.new_ret}</th>
<th
><button
on:click={() => deletePT(pt.id)}