4 qtl/qtl_form/pop_form.mas - a mason component for the qtl pop detail webform
7 Isaak Y Tecle (iyt2@cornell.edu)
21 use CXGN::Phenome::Qtl::Tools;
22 use CXGN::Page::FormattingHelpers qw | tooltipped_text |;
24 my $organism = qq| <a href="javascript:Qtl.toggleAssociateTaxon()">[Select Organism]</a> |;
25 my $required = qq | <font color="red"><sup>*</sup></font>|;
26 my $qtltools = CXGN::Phenome::Qtl::Tools->new();
28 my %cross_types = $qtltools->cross_types();
30 foreach my $key (keys %cross_types) {
31 $cross_options .= qq |<option value="$key">$cross_types{$key} |;
34 my $parent_m = tooltipped_text('Male parent', 'format eg. Solanum lycopersicum cv moneymaker');
35 my $parent_f = tooltipped_text('Female parent', 'format eg. Solanum lycopersicum cv micro tom');
39 <& /util/import_javascript.mas, classes => [ "CXGN.Phenome.Qtl" ] &>
41 <& /page/page_title.mas, title => "Step 1: Submit QTL Population Details" &>
42 <&| /page/info_section.mas, title => $organism, subtitle => $guide &>
43 <& organism_form.mas &>
46 <&| /page/info_section.mas,
47 title => "Population Details",
49 <% $required %> <span><i>must be filled.</i><br/><br/></span>
50 <form action="/phenome/qtl_load.pl" method="POST" enctype="MULTIPART/FORM-DATA">
53 <td>Cross type<% $required %></td>
54 <td> <select name="pop_type">
60 <td>Population name<% $required %></td>
61 <td><input type="text" name="pop_name" size=42></td>
64 <td>Population description<% $required %></td>
65 <td><textarea name="pop_desc" rows = 5 cols=44></textarea></td>
68 <td><% $parent_f%><%$required %> </td>
69 <td><input type="text" name="pop_female_parent" size=24></td>
70 <td><% $parent_m %><% $required %> </td>
71 <td><input type="text" name="pop_male_parent" size=24></td>
74 <td>Recurrent parent</td>
75 <td><input type="text" name="pop_recurrent_parent" size=24></td>
77 <td><input type="text" name="pop_donor_parent" size=24></td>
80 <td>Do you want to make the data public?</td>
81 <td><input type="radio" name="pop_is_public" value="true" checked />Yes</td>
82 <td><input type="radio" name="pop_is_public" value="false" />No</td>
85 <td> </td><td> </td>
86 <td><input type="hidden" name="type" value="pop_form"></td>
87 <td><input type="submit" value="Submit"></td>