8 <div class="col-sm-12">
10 <table class="table table-hover table-bordered" >
13 <td><b>Model Name</b></td>
21 <td><b>Model Description</b></td>
23 <div id="model_description">
29 <td><b>Model Type</b></td>
37 <td><b>Model Properties</b></td>
39 <div id="model_properties">
45 <td><b>Model Files</b></td>
47 <div id="model_files">
58 jQuery(document).ready(function(){
62 url : '/ajax/analysis/<% $trial_id %>/retrieve',
63 beforeSend: function() {
64 jQuery('#working_modal').modal('show');
66 success: function(response){
67 jQuery('#working_modal').modal('hide');
68 console.log(response);
70 alert(response.error);
73 jQuery('#model_name').html("<a href=\"/analyses_model/"+response.model_info.model_id+"\">"+response.model_info.model_name+"</a>");
74 jQuery('#model_description').html(response.model_info.model_description);
75 jQuery('#model_type').html(response.model_info.model_type_name);
77 var model_properties_string = '';
78 for (var key in response.model_info.model_properties) {
79 if (response.model_info.model_properties.hasOwnProperty(key)) {
80 model_properties_string = model_properties_string + key + " : " + response.model_info.model_properties[key] + "<br/>";
83 jQuery('#model_properties').html(model_properties_string);
85 var model_files_string = '';
86 for (var key in response.model_info.model_file_ids) {
87 if (response.model_info.model_file_ids.hasOwnProperty(key)) {
89 model_files_string = model_files_string + response.model_info.model_file_ids[key] + " : <a href='/breeders/phenotyping/download/" + key + "'>Download</a><br/>";
93 jQuery('#model_files').html(model_files_string);
96 error: function(response){
97 jQuery('#working_modal').modal('hide');
98 alert('Error getting analysis details!');