Revision 2270
Added by sgarg about 20 years ago
lib/style/common/templates/entryForm.tmpl | ||
---|---|---|
538 | 538 |
<td> |
539 | 539 |
[% SET origR = "origRole${cnt}" %] |
540 | 540 |
<select name="origRole[%cnt%]"> |
541 |
[% IF form == 're_entry' %] |
|
541 |
[% IF form == 're_entry' && $origR != ""%]
|
|
542 | 542 |
<option selected>[%$origR%]</option> |
543 | 543 |
[% END %] |
544 | 544 |
<option>Principal Investigator</option> |
... | ... | |
616 | 616 |
<td> |
617 | 617 |
[% SET keyT = "kwType${cnt}" %] |
618 | 618 |
<select name="kwType[%cnt%]"> |
619 |
[% IF form == 're_entry' %] |
|
619 |
[% IF form == 're_entry' && $keyT !="" %]
|
|
620 | 620 |
<option selected>[%$keyT%]</option> |
621 | 621 |
[% END %] |
622 | 622 |
<option>none</option> |
... | ... | |
631 | 631 |
<td> |
632 | 632 |
[% SET keyTh = "kwTh${cnt}" %] |
633 | 633 |
<select name="kwTh[%cnt%]"> |
634 |
[% IF form == 're_entry' %] |
|
634 |
[% IF form == 're_entry' && $keyTh != "none"%]
|
|
635 | 635 |
<option selected>[%$keyTh%]</option> |
636 | 636 |
[% END %] |
637 | 637 |
<option>none</option> |
... | ... | |
677 | 677 |
<td width="33%" valign="TOP"> |
678 | 678 |
<p><font size="-1"> |
679 | 679 |
<select name="beginningMonth"> |
680 |
[% IF form == 're_entry' %] |
|
680 |
[% IF form == 're_entry' && $beginningMonth != ""%]
|
|
681 | 681 |
<option selected>[%beginningMonth%]</option> |
682 | 682 |
[% END %] |
683 | 683 |
<option>00</option> <option>01</option> <option>02</option> <option>03</option> |
... | ... | |
695 | 695 |
<td width="33%" valign="TOP"> |
696 | 696 |
<p><font size="-1"> |
697 | 697 |
<select name="beginningDay"> |
698 |
[% IF form == 're_entry' %] |
|
698 |
[% IF form == 're_entry' && $beginningDay != ""%]
|
|
699 | 699 |
<option selected>[%beginningDay%]</option> |
700 | 700 |
[% END %] |
701 | 701 |
<option>00</option> <option>01</option> <option>02</option> <option>03</option> |
... | ... | |
731 | 731 |
<td width="33%" valign="TOP"> |
732 | 732 |
<p><font size="-1"> |
733 | 733 |
<select name="endingMonth"> |
734 |
[% IF form == 're_entry' %] |
|
734 |
[% IF form == 're_entry' && $endingMonth != ""%]
|
|
735 | 735 |
<option selected>[%endingMonth%]</option> |
736 | 736 |
[% END %] |
737 | 737 |
<option>00</option> <option>01</option> <option>02</option> <option>03</option> |
... | ... | |
745 | 745 |
<td width="33%" valign="TOP"> |
746 | 746 |
<p><font size="-1"> |
747 | 747 |
<select name="endingDay"> |
748 |
[% IF form == 're_entry' %] |
|
748 |
[% IF form == 're_entry' && $endingDay != ""%]
|
|
749 | 749 |
<option selected>[%endingDay%]</option> |
750 | 750 |
[% END %] |
751 | 751 |
<option>00</option> <option>01</option> <option>02</option> <option>03</option> |
... | ... | |
841 | 841 |
</td> |
842 | 842 |
<td width="20%" valign="TOP"> |
843 | 843 |
<select name="hemisphLat1"> |
844 |
[% IF form == 're_entry' %] |
|
844 |
[% IF form == 're_entry' && $hemisphLat1 != ""%]
|
|
845 | 845 |
<option selected>[%hemisphLat1%]</option> |
846 | 846 |
[% END %] |
847 | 847 |
<option>N</option> |
... | ... | |
855 | 855 |
</td> |
856 | 856 |
<td width="40%" valign="TOP"> |
857 | 857 |
<select name="hemisphLong1"> |
858 |
[% IF form == 're_entry' %] |
|
858 |
[% IF form == 're_entry' && $hemisphLong1 != ""%]
|
|
859 | 859 |
<option selected>[%hemisphLong1%]</option> |
860 | 860 |
[% END %] |
861 | 861 |
<option>W</option> |
... | ... | |
891 | 891 |
</td> |
892 | 892 |
<td width="20%" valign="TOP"> |
893 | 893 |
<select name="hemisphLat2"> |
894 |
[% IF form == 're_entry' %]
|
|
894 |
[% IF form == 're_entry' && $hemisphLat2 != ""%]
|
|
895 | 895 |
<option selected>[%hemisphLat2%]</option> |
896 | 896 |
[% END %] |
897 | 897 |
<option>N</option> |
... | ... | |
905 | 905 |
</td> |
906 | 906 |
<td width="40%" valign="TOP"> |
907 | 907 |
<select name="hemisphLong2"> |
908 |
[% IF form == 're_entry' %] |
|
908 |
[% IF form == 're_entry' && $hemisphLong2 != ""%]
|
|
909 | 909 |
<option selected>[%hemisphLong2%]</option> |
910 | 910 |
[% END %] |
911 | 911 |
<option>W</option> |
Also available in: Unified diff
Fixed the bug described in 1671. The bug came into picture, when no keyword type is suggested for a particular keyword. This resulted in ignoring of that row of data.