11 <div class="modal fade" id="tracking_activity_project_details_edit_dialog" tabindex="-1" role="dialog" aria-labelledby="trackingActivityProjectDetailsEditDialog">
12 <div class="modal-dialog modal-xl" role="document">
13 <div class="modal-content ui-front">
14 <div class="modal-header text-center">
15 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
16 <h4 class="modal-title" id="trackingActivityDetailsEditDialog">Edit Tracking Activity Project Details</h4>
18 <div class="modal-body" id="trial_details_edit_body">
19 <div class="container-fluid">
20 <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data">
21 <div class="form-group">
22 <label class="col-sm-3 control-label" for="edit_trial_name">Projec Name: </label>
23 <div class="col-sm-8">
24 <div class="input-group">
25 <input class="form-control col-sm-8" id="edit_trial_name" title="name" type="text" value="<%$trial_name%>" aria-describedby="edit_trial_name_status"/>
29 <div class="form-group">
30 <label class="col-sm-3 control-label" for="edit_trial_breeding_program">Breeding Program: </label>
31 <div class="col-sm-8">
32 <div class="input-group">
33 <select class="form-control" id="edit_trial_breeding_program" title="breeding_program" value="<%$breeding_program_id%>"></select>
37 <div class="form-group">
38 <label class="col-sm-3 control-label" for="edit_trial_location">Location: </label>
39 <div class="col-sm-8">
40 <div class="input-group">
41 <select class="form-control" id="edit_trial_location" title="location" value="<%$location_id%>"></select>
45 <div class="form-group">
46 <label class="col-sm-3 control-label" for="edit_trial_year">Year: </label>
47 <div class="col-sm-8">
48 <div class="input-group">
49 <select class="form-control" id="edit_trial_year" title="year" value="<%$year%>"></select>
53 <div class="form-group" style="display:none;>
54 <label class="col-sm-3 control-label" for="edit_trial_planting_date">Planting Date: </label>
55 <div class="col-sm-8">
56 <div class="input-group">
57 <span class="input-group-btn"><button class="btn btn-default" id="clear_planting_date" type="button">Clear</button></span>
58 <input class="form-control" id="edit_trial_planting_date" title="planting_date" type="text" value="<%$planting_date%>"/>
62 <div class="form-group" style="display:none;>
63 <label class="col-sm-3 control-label" for="edit_trial_harvest_date">Harvest Date: </label>
64 <div class="col-sm-8">
65 <div class="input-group">
66 <span class="input-group-btn"><button class="btn btn-default" id="clear_harvest_date" type="button">Clear</button></span>
67 <input class="form-control" id="edit_trial_harvest_date" title="harvest_date" type="text" value="<%$harvest_date%>"/>
71 <div class="form-group">
72 <label class="col-sm-3 control-label" for="edit_trial_description">Description: </label>
73 <div class="col-sm-8">
74 <div class="input-group">
75 <textarea class="form-control" id="edit_trial_description" title="description" rows="5" maxlength="250"><% $trial_description %></textarea>
79 <div id="edit_trial_type" style="display:none;">
81 <div id="edit_trial_field_size" style="display:none;">
83 <div id="edit_trial_plot_width" style="display:none;">
85 <div id="edit_trial_plot_length" style="display:none;">
87 <div id="edit_trial_plan_to_genotype" style="display:none;">
89 <div id="edit_trial_plan_to_cross" style="display:none;">
94 <div class="modal-footer">
95 <p class="text-success vertical-align pull-left"><span class="glyphicon glyphicon-pencil"></span> Indicates pending change</p>
96 <button type="button" class="btn btn-default" data-dismiss="modal" id="edit_trial_details_cancel_button">Cancel</button>
97 <button type="button" class="btn btn-primary" id="save_trial_details">Save Changes</button>
103 <div class="modal fade" id="trial_details_saved_dialog" tabindex="-1" role="dialog" aria-labelledby="trialDetailsSavedDialog">
104 <div class="modal-dialog" role="document">
105 <div class="modal-content ui-front">
106 <div class="modal-header text-center">
107 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
108 <h4 class="modal-title" id="trialDetailsSavedDialog">Details Saved</h4>
110 <div class="modal-body" id="trial_details_saved_body">
111 <ul class="list-group" id="trial_details_saved_message"></ul>
113 <div class="modal-footer">
114 <button id="trial_details_saved_close_button" type="button" class="btn btn-default" data-dismiss="modal">Close & Reload</button>
120 <div class="modal fade" id="trial_details_error_dialog" tabindex="-1" role="dialog" aria-labelledby="trialDetailsErrorDialog">
121 <div class="modal-dialog" role="document">
122 <div class="modal-content ui-front">
123 <div class="modal-header text-center">
124 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
125 <h4 class="modal-title" id="trialDetailsErrorDialog">Error Saving Tracking Activity Project Details</h4>
127 <div class="modal-body" id="trial_details_error_body">
128 <ul class="list-group" id="trial_details_error_message"></ul>
130 <div class="modal-footer">
131 <button id="trial_details_error_close_button" type="button" class="btn btn-default" data-dismiss="modal">Close</button>
139 jQuery(document).ready(function(){
141 jQuery('#edit_tracking_activity_project_details').click(function(){
142 jQuery('#tracking_activity_project_details_edit_dialog').modal("show");
143 edit_trial_details();