26 lines
522 B
Plaintext
26 lines
522 B
Plaintext
<h1><%= @form.title %></h1>
|
|
<p>
|
|
<%= submission_url(@form) %>
|
|
</p>
|
|
<p>
|
|
<%= link_to 'Google spreadsheet', @form.spreadsheet_url %>
|
|
</p>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<% @form.spreadsheet_headers.each do |value| %>
|
|
<th><%= value %></th>
|
|
<% end %>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @submissions.each do |submission| %>
|
|
<tr>
|
|
<% @form.spreadsheet_headers.each do |column| %>
|
|
<td><%= submission.data[column] %></td>
|
|
<% end %>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|