Skip to content

Commit

Permalink
Add device ID to views
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonB committed Jun 15, 2012
1 parent 29a8d53 commit 54d8a7c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/views/records/_record.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<%end%>
<tr>
<td class=<%=type%>><%= record.userID %></td>
<td class=<%=type%>><%= record.id %> </td>
<td class=<%=type%>><%= record.time.to_f / 1000%>s</td>
<td class=<%=type%>><%= record.glasses %></td>
<td class=<%=type%>><%= record.magnifier%></td>
Expand Down
4 changes: 2 additions & 2 deletions app/views/records/index.csv.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<%- headers = [ "ID", "Time Taken", "Glasses","Magnifier", "Large Print","Help With Medication","Prescription",
<%- headers = [ "Record ID", "Device ID", "Time Taken", "Glasses","Magnifier", "Large Print","Help With Medication","Prescription",
"Non-Prescription","Worn","Glossy","Font","Corticosteriods", "Anticholinergics","Eyedrops", "Diabetes","Hypertension",
"Glaucoma","Cataracts","Macular Degenration","Cognitive Impairment","Other1","Other2","Other3","Other4","Other5","Date"] -%>
<%= CSV.generate_line headers %>

<%- @records.each do |rec| -%>
<%- row = [ rec.userID, rec.time, rec.glasses, rec.magnifier, rec.largeprint, rec.helpWithMed, rec.prescription, rec.nonprescription,
<%- row = [ rec.userID, rec.id, rec.time, rec.glasses, rec.magnifier, rec.largeprint, rec.helpWithMed, rec.prescription, rec.nonprescription,
rec.worn, rec.glossy, rec.userFont, rec.corticosteriods, rec.anticholinergics, rec.eyedrops, rec.diabetes, rec.hypertension,
rec.glaucoma, rec.cataracts, rec.maculardegeneration, rec.cognitiveimpairment, rec.other1, rec.other2, rec.other3,
rec.other4, rec.other5, rec.datetime] -%>
Expand Down
2 changes: 1 addition & 1 deletion app/views/records/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h3>Records</h3>
<table id="search_results">
<thead>
<tr><th>ID</th><th>Time Taken</th><th>Glasses</th><th>Magnifier</th>
<tr><th>Record ID</th><th>DeviceID</th><th>Time Taken</th><th>Glasses</th><th>Magnifier</th>
<th>Large Print</th><th>Help With Medication</th><th>Prescription</th>
<th>Non-Prescription</th><th>Worn</th></th><th>Glossy</th><th>Font</th><th>Corticosteriods</th><th>Anticholinergics</th>
<th>Eyedrops</th><th>Diabetes</th><th>Hypertension</th><th>Glaucoma</th><th>Cataracts</th><th>Macular Degenration</th>
Expand Down

0 comments on commit 54d8a7c

Please sign in to comment.