forked from brian-lc/surveyor
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show the results using a datatable from http://www.datatables.net/
- Loading branch information
Gerrit Riessen
committed
May 10, 2011
1 parent
e91b875
commit 76b76c8
Showing
13 changed files
with
705 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
%table.list_table | ||
%tr | ||
%th ID | ||
%th Code | ||
- @questions.each do |question| | ||
- next if question.display_order == 1 | ||
%th= "[" +question.display_order.to_s + "]" + question.text | ||
- @response_sets.each do |r_set| | ||
%table#results_list.display | ||
%thead | ||
%tr | ||
%td= h r_set.id | ||
%td= h r_set.access_code | ||
%th ID | ||
%th Code | ||
- @questions.each do |question| | ||
- next if question.display_order == 1 | ||
%td!= display_response(r_set,question) | ||
%th= "[" +question.display_order.to_s + "]" + question.text | ||
%tbody | ||
- @response_sets.each do |r_set| | ||
%tr.gradeA | ||
%td= h r_set.id | ||
%td= h r_set.access_code | ||
- @questions.each do |question| | ||
- next if question.display_order == 1 | ||
%td!= display_response(r_set,question) | ||
%br/ | ||
= link_to "Back", results_path | ||
:javascript | ||
$(document).ready(function(){ | ||
$('#results_list').dataTable(); | ||
}); |
Binary file added
BIN
+612 Bytes
lib/generators/surveyor/templates/public/images/surveyor/back_disabled.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+807 Bytes
lib/generators/surveyor/templates/public/images/surveyor/back_enabled.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+635 Bytes
lib/generators/surveyor/templates/public/images/surveyor/forward_disabled.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+852 Bytes
lib/generators/surveyor/templates/public/images/surveyor/forward_enabled.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+263 Bytes
lib/generators/surveyor/templates/public/images/surveyor/sort_asc.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+252 Bytes
lib/generators/surveyor/templates/public/images/surveyor/sort_asc_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+282 Bytes
lib/generators/surveyor/templates/public/images/surveyor/sort_both.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+260 Bytes
lib/generators/surveyor/templates/public/images/surveyor/sort_desc.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+251 Bytes
lib/generators/surveyor/templates/public/images/surveyor/sort_desc_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
143 changes: 143 additions & 0 deletions
143
lib/generators/surveyor/templates/public/javascripts/surveyor/jquery.dataTables.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.