15 $autogenerated_name_prefixes => ()
21 <div class="col-sm-8">
23 <table class="table table-hover table-bordered" >
26 <td><b>Transformation Project Name</b></td>
30 % print "$trial_name";
32 % print "<span class='text-danger'>[No Transformation Project Name]</span>";
39 <td><b>Breeding Program </b></td>
41 <span id="breeding_program">
42 % if ($breeding_program_name) {
43 % print "$breeding_program_name";
46 % print "<span class='text-danger'>[No Breeding Program]</span>";
53 <td><b>Location</b></td>
55 <div id="trial_location">
56 % if ($location_name) {
57 % print "$location_name ( $country_name )";
59 % print "<span class='text-danger'>[No Location]</span>";
72 % print "<span class='text-danger'>[No Year]</span>";
78 <tr><td><b>Description</b></td>
80 % if ($trial_description) {
81 % print "<div id='trial_description' style='white-space: pre-wrap;'>$trial_description</div>";
83 % print "<div id='trial_description'><span class='text-danger'>[No Description]</span></div>";
88 <tr><td><b>Prefix for Transformants</b></td>
90 <div id="name_prefix">
94 % print "<span class='text-danger'>[No Prefix]</span>";
102 <td><b>Folder</b></td>
104 <span id="trial_folder_div"><a href="/folder/<% $folder_id %>"><% $folder_name %></a></span>
106 <button class="btn btn-sm btn-default" style="margin:3px" id="new_folder_dialog_link">New Folder</button> <button class="btn btn-sm btn-default" style="margin:3px" id="open_folder_dialog_link">Change Folder</button>
111 <td><b>Created by</b></td>
113 <div id="trial_owner">
114 % if ($trial_owner) {
115 % print "$trial_owner";
117 % print "<span class='text-danger'>[N/A]</span>";
125 <div class="col-sm-4">
126 <div class="well well-sm">
127 <& /util/barcode.mas, identifier => "$identifier_prefix"."$trial_id", trial_id=> "$trial_id", trial_name=> "$trial_name", format=>"trial_qrcode" &>
131 <button class="btn btn-sm btn-primary" style="margin:3px" id="new_transformation_identifier_link">Add New Transformation ID</button><button class="btn btn-sm btn-primary" style="margin:3px" id="upload_transformation_ids_link">Upload New Transformation IDs</button><button class="btn btn-sm btn-default" style="margin:3px" id="set_autogenerated_names_link">Set Autogenerated Names for Transformants</button>
134 % if ($tracking_project_id) {
136 <a href='/breeders/trial/<%$tracking_project_id%>'><p>Go to Tracking Page</p></a>
140 <& /transformation/add_transformation_identifier_dialog.mas, trial_id => $trial_id, breeding_program_name => $breeding_program_name &>
141 <& /transformation/upload_transformation_ids_dialog.mas, trial_id => $trial_id, trial_name => $trial_name &>
142 <& /transformation/set_transformant_names_dialog.mas, trial_id => $trial_id, breeding_program_id => $breeding_program_id, autogenerated_name_prefixes => $autogenerated_name_prefixes, breeding_program_name => $breeding_program_name &>
146 jQuery(document).ready(function($) {
148 jQuery('#new_transformation_identifier_link').click(function() {
149 jQuery("#add_transformation_identifier_dialog").modal("show");