10 <div class="modal fade" id="transformation_project_details_edit_dialog" tabindex="-1" role="dialog" aria-labelledby="transformationProjectDetailsEditDialog">
11 <div class="modal-dialog modal-xl" role="document">
12 <div class="modal-content ui-front">
13 <div class="modal-header text-center">
14 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
15 <h4 class="modal-title" id="transformationProjectDetailsEditDialog">Edit Project Details</h4>
17 <div class="modal-body" id="trial_details_edit_body">
18 <div class="container-fluid">
19 <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data">
20 <div class="form-group">
21 <label class="col-sm-3 control-label" for="edit_trial_name">Project Name: </label>
22 <div class="col-sm-8">
23 <div class="input-group">
24 <input class="form-control col-sm-8" id="edit_trial_name" title="name" type="text" value="<%$trial_name%>" aria-describedby="edit_trial_name_status"/>
28 <div class="form-group">
29 <label class="col-sm-3 control-label" for="edit_trial_breeding_program">Breeding Program: </label>
30 <div class="col-sm-8">
31 <div class="input-group">
32 <select class="form-control" id="edit_trial_breeding_program" title="breeding_program" value="<%$breeding_program_id%>"></select>
36 <div class="form-group">
37 <label class="col-sm-3 control-label" for="edit_trial_location">Location: </label>
38 <div class="col-sm-8">
39 <div class="input-group">
40 <select class="form-control" id="edit_trial_location" title="location" value="<%$location_id%>"></select>
44 <div class="form-group">
45 <label class="col-sm-3 control-label" for="edit_trial_year">Year: </label>
46 <div class="col-sm-8">
47 <div class="input-group">
48 <select class="form-control" id="edit_trial_year" title="year" value="<%$year%>"></select>
52 <div class="form-group">
53 <label class="col-sm-3 control-label" for="edit_trial_description">Description: </label>
54 <div class="col-sm-8">
55 <div class="input-group">
56 <textarea class="form-control" id="edit_trial_description" title="description" rows="5" maxlength="250"><% $trial_description %></textarea>
60 <div id="edit_trial_type" style="display:none;">
62 <div id="edit_trial_field_size" style="display:none;">
64 <div id="edit_trial_plot_width" style="display:none;">
66 <div id="edit_trial_plot_length" style="display:none;">
68 <div id="edit_trial_plan_to_genotype" style="display:none;">
70 <div id="edit_trial_plan_to_cross" style="display:none;">
72 <div id="edit_trial_harvest_date" style="display:none;">
74 <div id="edit_trial_planting_date" style="display:none;">
79 <div class="modal-footer">
80 <p class="text-success vertical-align pull-left"><span class="glyphicon glyphicon-pencil"></span> Indicates pending change</p>
81 <button type="button" class="btn btn-default" data-dismiss="modal" id="edit_trial_details_cancel_button">Cancel</button>
82 <button type="button" class="btn btn-primary" id="save_trial_details">Save Changes</button>
88 <div class="modal fade" id="trial_details_saved_dialog" tabindex="-1" role="dialog" aria-labelledby="trialDetailsSavedDialog">
89 <div class="modal-dialog" role="document">
90 <div class="modal-content ui-front">
91 <div class="modal-header text-center">
92 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
93 <h4 class="modal-title" id="trialDetailsSavedDialog">Details Saved</h4>
95 <div class="modal-body" id="trial_details_saved_body">
96 <ul class="list-group" id="trial_details_saved_message"></ul>
98 <div class="modal-footer">
99 <button id="trial_details_saved_close_button" type="button" class="btn btn-default" data-dismiss="modal">Close & Reload</button>
105 <div class="modal fade" id="trial_details_error_dialog" tabindex="-1" role="dialog" aria-labelledby="trialDetailsErrorDialog">
106 <div class="modal-dialog" role="document">
107 <div class="modal-content ui-front">
108 <div class="modal-header text-center">
109 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
110 <h4 class="modal-title" id="trialDetailsErrorDialog">Error Saving Project Details</h4>
112 <div class="modal-body" id="trial_details_error_body">
113 <ul class="list-group" id="trial_details_error_message"></ul>
115 <div class="modal-footer">
116 <button id="trial_details_error_close_button" type="button" class="btn btn-default" data-dismiss="modal">Close</button>
124 jQuery(document).ready(function(){
126 jQuery('#edit_transformation_project_details').click(function(){
127 jQuery('#transformation_project_details_edit_dialog').modal("show");
128 edit_trial_details();