|
1 | 1 | %body
|
2 | 2 | %link{rel: 'stylesheet', href: '/css/bootstrap.min.css'}
|
3 | 3 | %link{rel: 'stylesheet', href: '/stylesheets/index.css'}
|
| 4 | + %link{rel: 'stylesheet', href: '/stylesheets/matrix.css'} |
4 | 5 | %script{type: 'text/javascript', src:'/javascripts/jquery-2.1.1.min.js'}
|
5 | 6 | %script{type: 'text/javascript', src:'/javascripts/jquery.tablesorter.min.js'}
|
| 7 | + %script{type: 'text/javascript', src:'/javascripts/matrix.js'} |
6 | 8 | %script{type: 'text/javascript', src:'/js/bootstrap.min.js'}
|
7 | 9 |
|
8 | 10 | .container
|
9 | 11 | %h1.page-header
|
10 | 12 | = title
|
| 13 | + |
| 14 | + - if defined?(errors) && errors.any? |
| 15 | + - errors.each do | error | |
| 16 | + %div.alert.alert-danger |
| 17 | + = error |
| 18 | + |
| 19 | + %form{action: '/matrix', onsubmit:'return onSubmit()'} |
| 20 | + - selectors.each_with_index do | selector, index | |
| 21 | + .selector |
| 22 | + %label{for: "pacticipant#{index}"} |
| 23 | + Pacticipant name |
| 24 | + %input{name: 'q[]pacticipant', id: "pacticipant1#{index}", value: selector.pacticipant_name} |
| 25 | + |
| 26 | + .input-group |
| 27 | + %input{type: 'radio', name: "ignorethis#{index}", class: 'specify-all-versions version-selectorizor', value: 'all_versions', id: "pacticipant#{index}_all_versions", checked: selector.specify_all_versions_checked} |
| 28 | + %label{for: "pacticipant#{index}_all_versions"} |
| 29 | + All versions |
| 30 | + |
| 31 | + .input-group |
| 32 | + %input{type: 'radio', name: "ignorethis#{index}", class: 'specify-version version-selectorizor', value: 'version', id: "pacticipant#{index}_by_version", checked: selector.specify_version_checked} |
| 33 | + %label{for: "pacticipant#{index}_by_version"} |
| 34 | + Version |
| 35 | + %input{name: 'q[]version', type: 'text', id: "pacticipant#{index}_version", class: 'by-version', value: selector.pacticipant_version_number} |
| 36 | + |
| 37 | + .input-group |
| 38 | + %input{type: 'radio', name: "ignorethis#{index}", class: 'specify-latest-tag version-selectorizor', value: 'tag', id: "pacticipant#{index}_by_tag", checked: selector.specify_latest_tag_checked} |
| 39 | + %label{for: "pacticipant#{index}_by_tag"} |
| 40 | + Latest version with tag |
| 41 | + %input{name: 'q[]tag', type: 'text', id: "pacticipant#{index}_tag", class: "by-latest-tag", value: selector.tag} |
| 42 | + %input{name: 'q[]latest', value: 'true', hidden: true, class: 'latest-flag'} |
| 43 | + |
| 44 | + %div |
| 45 | + %input{type: 'submit'} |
| 46 | + |
| 47 | + |
| 48 | + |
11 | 49 | %table.table.table-bordered.table-striped{id: 'matrix'}
|
12 | 50 | %thead
|
13 | 51 | %th.consumer
|
|
45 | 83 | = line.provider_version_number
|
46 | 84 | %td.verification-result{class: line.verification_status_class}
|
47 | 85 | = line.verification_status
|
48 |
| - |
49 |
| -:javascript |
50 |
| - $(function(){ |
51 |
| - $("#matrix").tablesorter({ |
52 |
| - textExtraction : function(node, table, cellIndex){ |
53 |
| - n = $(node); |
54 |
| - return n.attr('data-sort-value') || n.text(); |
55 |
| - } |
56 |
| - }); |
57 |
| - }); |
|
0 commit comments