'; if (row.sex == 'F'){span=''}; return span + data + ''}});
columns.push({data: 'glider', title:'Equip'});
columns.push({data: 'glider_cert', title:'EN', defaultContent: '', visible: false});
columns.push({data: 'nat', title:'NAT', defaultContent: '', visible: false});
@@ -58,24 +57,19 @@ function populate_team_overall(compid){
// some GAP parameters
$('#formula tbody').append(
- "Director | " + json.info.MD_name + ' |
' +
- "Location | " + json.info.comp_site + ' |
' +
- "Formula | " + json.formula.formula + ' |
' +
- "Overall Scoring | " + json.formula.overall_validity + ' (' + json.formula.validity_param*100 + ') |
'
+ "Director | " + json.info.MD_name + " |
" +
+ "Location | " + json.info.comp_site + " |
" +
+ "Formula | " + json.formula.team_size + " scoring, max " + json.formula.max_team_size + " pilots |
"
);
- if (json.formula.overall_validity == 'ftv') {
- $('#formula tbody').append("Total Validity | " + json.stats.tot_validity + ' |
');
- }
+
$("#dhv option").remove(); // Remove all ")
- .text(item.rank_name)
- .val(item.rank_id)
- );
- });
+ // $.each(json.rankings, function(index, item) {
+ // $("#dhv").append(
+ // $("")
+ // .text(item.rank_name)
+ // .val(item.rank_id)
+ // );
+ // });
}
});
}
diff --git a/airscore/static/js/pop_team_task.js b/airscore/static/js/pop_team_task.js
index 8a27d346..ffe4e4d8 100644
--- a/airscore/static/js/pop_team_task.js
+++ b/airscore/static/js/pop_team_task.js
@@ -18,7 +18,7 @@ $(document).ready(function() {
{data: 'nat', title:'NAT'},
{data: 'sex', title:'Sex'},
{data: 'sponsor', title:'Sponsor'},
- {data: 'score', title:'Total'}
+ {data: 'score', title:'Total', className: "text-right"}
],
@@ -47,20 +47,19 @@ $(document).ready(function() {
// some GAP parameters
$('#formula tbody').append(
- "Director | " + json.info.MD_name + ' |
' +
- "Location | " + json.info.comp_site + ' |
' +
- "Formula | " + json.formula.formula_name + ' |
' +
- "Overall Scoring | " + json.formula.overall_validity);
- if (json.formula.overall_validity == 'ftv') {
- $('#formula tbody').append(
- ' (' + json.formula.validity_param*100 + ') |
' +
- "Total Validity | " + json.stats.total_validity + ' |
');
- }
- else {
- $('#formula tbody').append('');
- }
-
+ "Director | " + json.info.MD_name + " |
" +
+ "Location | " + json.info.comp_site + " |
" +
+ "Formula | " + json.formula.country_size + " scoring, max " + json.formula.max_country_size + " pilots |
"
+ );
+ $("#dhv option").remove(); // Remove all ")
+ // .text(item.rank_name)
+ // .val(item.rank_id)
+ // );
+ // });
}
});
});
diff --git a/airscore/templates/public/country_overall.html b/airscore/templates/public/country_overall.html
index 1e591eb0..69993b31 100644
--- a/airscore/templates/public/country_overall.html
+++ b/airscore/templates/public/country_overall.html
@@ -19,6 +19,14 @@
+