6 <div id="data_agreement_div">
12 jQuery(document).ready(function () {
14 get_data_agreement(<% $trial_id %>, 'data_agreement_div');
16 function get_data_agreement(project_id, div) {
19 url: '/breeders/trial/data_agreement/get',
20 data: { 'project_id': project_id },
21 success: function(response) {
23 jQuery('#'+div).html(response.text);
26 jQuery('#'+div).html('By default, trial data is provided under the Toronto agreement, as explained in the <a href="/usage_policy">data usage policy</a>.');
28 if (response.message) { alert(response.message); }
30 error: function(response) {
31 alert('An error occurred fetching the data agreement data.');