Project

General

Profile

Revision 7910

restyle spatial section, first pass. https://projects.ecoinformatics.org/ecoinfo/issues/5951

View differences:

lib/style/common/templates/metacatui/entryForm.tmpl
531 531
						    </div>
532 532
						</div>
533 533
					[% END %]
534
					
535
						<!-- TEMPLATE -->
536
						<div class="accordion-heading">
537
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none">
538
								Template  
539
							</a>
540
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
541
						</div>
542
						<div id="collapseTemplate" class="accordion-body collapse in">
543
							<div class="accordion-inner">
544
								<!--  the INPUT -->
545
								<div class="control-group">
546
									<label class="control-label" for="template">*template</label>
547
									<div class="controls">
548
										<input type="text" name="template" value="[%template%]">
549
									</div>
550
								</div>
551
								
552
						    </div>
553
						</div>
554 534
						
555 535
					[% IF modules.temporal == 'true' %]	
556 536
						<!-- TEMPORAL COVERAGE -->
......
660 640
						</div>
661 641

  
662 642
					[% END %]
643
					
644
						<!-- TEMPLATE -->
645
						<div class="accordion-heading">
646
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none">
647
								Template  
648
							</a>
649
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
650
						</div>
651
						<div id="collapseTemplate" class="accordion-body collapse in">
652
							<div class="accordion-inner">
653
								<!--  the INPUT -->
654
								<div class="control-group">
655
									<label class="control-label" for="template">*template</label>
656
									<div class="controls">
657
										<input type="text" name="template" value="[%template%]">
658
									</div>
659
								</div>
660
								
661
						    </div>
662
						</div>
663
						
664
					[% IF modules.spatial == 'true' %]
665
						
666
						<!-- SPATIAL -->
667
						<div class="accordion-heading">
668
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseSpatial" href="#none">
669
								Spatial Coverage  
670
							</a>
671
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#SpatialCoverageOfData"><i class="icon-question-sign"></i></a>
672
						</div>
673
						<div id="collapseSpatial" class="accordion-body collapse in">
674
							<div class="accordion-inner">
675
								<!--  the INPUT -->
676
								<div class="control-group">
677
									[% IF required.spatial == 'true' %]
678
										<label class="control-label" for="geogdesc">*Geographic Description</label>
679
									[% ELSE %]
680
										<label class="control-label" for="geogdesc">Geographic Description</label>
681
									[% END %] 	
682
									<div class="controls">
683
										<textarea rows="3" cols="60" name="geogdesc">[% geogdesc %]</textarea>
684
										<span class="help-block">General description of the geographic area in which the data were collected. 
685
										It can be a simple place name (e.g., Santa Barbara) or a fuller description.</span>
686
									</div>
687
								</div>
688
								
689
								<div class="row-fluid">
690
									<h4>Coordinates</h4>
691
									
692
									[% IF show.siteList == 'true' %]
693
	    								<div class="control-group">
694
											<label class="control-label" for="useSiteCoord">Use Site?</label>
695
											<div class="controls">
696
												<input type="checkbox" name="useSiteCoord" [%useSiteCoord%]>
697
										        <span class="help-block">Use [% config.site %] coordinates. (This indicates that the data were
698
										        collected at the [% config.site %]. If you check this box, you don't need
699
										        to fill in the lat./long. fields below).</span>
700
											</div>
701
										</div>
702
									[% END %]
703
									
704
									<table>
705
									    <tr class="sectbody">
706
									      <td width="190"></td><td width="100" align="left"><span class="label">Degrees</span></td>
707
									      <td width="110" align="left"><span class="label">Minutes</span></td>
708
									      <td width="70" align="left"><span class="label">Seconds</span></td>
709
									      <td width="200"></td><td width="90"</td>
710
									   </tr>
711
									      
712
									   <tr class="sectbody">
713
									     <td class="rightCol">
714
									      [% IF required.spatial == 'true' %]
715
									        <span class="label">*Latitude</span>
716
									      [% ELSE %]
717
									        <span class="label">Latitude</span>
718
									      [% END %]</td> 
719
									     <td> 
720
									          <input type="TEXT" name="latDeg1" value="[%latDeg1%]" size="3" maxlength="3"></td>
721
									      <td> <input type="TEXT" name="latMin1" value="[%latMin1%]" size="2" maxlength="2"></td>
722
									      <td>  <input type="TEXT" name="latSec1" value="[%latSec1%]" size="2" maxlength="2"></td>
723
									      
724
									      <td Align="left" colspan="2"> 
725
									      [% IF form == 're_entry' && hemisphLat1 == "N"%]
726
									        <input type="radio"  name="hemisphLat1" value="N" CHECKED><span class="regtext">North&nbsp;&nbsp;</span>
727
									      [%ELSE%]
728
									        <input type="radio"  name="hemisphLat1" value="N"><span class="regtext">North&nbsp;&nbsp;</span>
729
									      [%END%]
730
									      [% IF form == 're_entry' && hemisphLat1 == "S"%]
731
									        <input type="radio"  name="hemisphLat1" value="S" CHECKED><span class="regtext">South&nbsp;&nbsp;</span>
732
									      [%ELSE%]
733
									        <input type="radio"  name="hemisphLat1" value="S"><span class="regtext">South&nbsp;&nbsp;</span>
734
									      [%END%]
735
									      </td>
736
									    </tr>
737
									
738
									    <tr class="sectbody">
739
									      <td class="rightCol"> 
740
									      [% IF required.spatial == 'true' %]
741
									        <span class="label">*Longitude</span>
742
									      [% ELSE %]
743
									        <span class="label">Longitude</span>
744
									      [% END %]</td>
745
									     
746
									      <td> <input type="TEXT" name="longDeg1" value="[%longDeg1%]" size="3" maxlength="3"></td>
747
									      <td> <input type="TEXT" name="longMin1" value="[%longMin1%]" size="2" maxlength="2"></td>
748
									      <td> <input type="TEXT" name="longSec1" value="[%longSec1%]" size="2" maxlength="2"></td>
749
									      
750
									      
751
									      <td align="left" colspan="2"> 
752
									    [% IF form == 're_entry' && hemisphLong1 == "W"%]        
753
									      <input type="radio"  name="hemisphLong1" value="W" CHECKED><span class="regtext">West&nbsp;&nbsp;</span>
754
									    [%ELSE%]
755
									      <input type="radio"  name="hemisphLong1" value="W"><span class="regtext">West&nbsp;&nbsp;</span>
756
									    [%END%]
757
									    [% IF form == 're_entry' && hemisphLong1 == "E"%]
758
									      <input type="radio"  name="hemisphLong1" value="E" CHECKED><span class="regtext">East&nbsp;&nbsp;</span>
759
									    [%ELSE%]
760
									      <input type="radio"  name="hemisphLong1" value="E"><span class="regtext">East&nbsp;&nbsp;</span>
761
									    [%END%]
762
									      </td>
763
									    </tr>
764
									      
765
									      
766
									    <tr class="sectbody"><td><td colspan="4" align="left"><span class="regtext">If only this first lat/long pair is entered, this indicates a point location. If both lat/long pairs are entered, then this first pair represents the northwest corner of a bounding box.</span>
767
									      </td><td></td></tr>
768
									      
769
									    <tr class="sectbody"> 
770
									      <td class="rightCol"><span class="label">Latitude</span></td>
771
									  <td ><input type="TEXT" name="latDeg2" value="[%latDeg2%]" size="3" maxlength="3"></td>
772
									      <td><input type="TEXT" name="latMin2" value="[%latMin2%]" size="2" maxlength="2"></td>
773
									      <td><input type="TEXT" name="latSec2" value="[%latSec2%]" size="2" maxlength="2"></td>
774
									        
775
									      <td align="left" colspan="2"> 
776
									      [% IF form == 're_entry' && hemisphLat2 == "N"%]
777
									        <input type="radio"  name="hemisphLat2" value="N" CHECKED><span class="regtext">North&nbsp;&nbsp;</span>
778
									      [%ELSE%]
779
									        <input type="radio"  name="hemisphLat2" value="N"><span class="regtext">North&nbsp;&nbsp;</span>
780
									      [%END%]
781
									      [% IF form == 're_entry' && hemisphLat2 == "S"%]
782
									        <input type="radio"  name="hemisphLat2" value="S" CHECKED><span class="regtext">South&nbsp;&nbsp;</span>
783
									      [%ELSE%]
784
									        <input type="radio"  name="hemisphLat2" value="S"><span class="regtext">South&nbsp;&nbsp;</span>
785
									      [%END%]
786
									      </td>
787
									    </tr>
788
									    
789
									    <tr class="sectbody"><td class="rightCol"><span class="label">Longitude</span></td>
790
									       <td> <input type="TEXT" name="longDeg2" value="[%longDeg2%]" size="3" maxlength="3"></td>
791
									       <td> <input type="TEXT" name="longMin2" value="[%longMin2%]" size="2" maxlength="2"></td>
792
									       <td> <input type="TEXT" name="longSec2" value="[%longSec2%]" size="2" maxlength="2"></td>
793
									       <td align="left" colspan="2">
794
									       
795
									      [% IF form == 're_entry' && hemisphLong2 == "W"%]
796
									        <input type="radio"  name="hemisphLong2" value="W" CHECKED><span class="regtext">West&nbsp;&nbsp;</span>
797
									      [%ELSE%]
798
									        <input type="radio"  name="hemisphLong2" value="W"><span class="regtext">West&nbsp;&nbsp;</span>
799
									      [%END%]
800
									      [% IF form == 're_entry' && hemisphLong2 == "E"%]
801
									        <input type="radio"  name="hemisphLong2" value="E" CHECKED><span class="regtext">East&nbsp;&nbsp;</span>
802
									      [%ELSE%]
803
									        <input type="radio"  name="hemisphLong2" value="E"><span class="regtext">East&nbsp;&nbsp;</span>
804
									      [%END%]
805
									      </td>
806
									    </tr>
807
									    <tr class="sectbody"><td></td>
808
									       <td align="left" colspan="4"><span class="regtext">
809
									        If entered, this lat/long pair represents the southeast corner of a bounding box.</span>
810
									      </td><td></td>
811
									    </tr>
812
									</table>
813
								
814
								</div>	
815
								
816
								
817
								
818
								
819
						    </div>
820
						</div>
821
						
822
						
823
						
824
					[% END %]
663 825

  
826
    
827
    
664 828
  
665
[% IF modules.spatial == 'true' %]
829
  
830
  
831
   [% END %]
666 832

  
667
  <table class="tables" cellpadding="5" cellspacing="0">  
668 833

  
669
    <tr class="sectheader">
670
      <td colspan="5" align="left">
671
        <span class="label">SPATIAL COVERAGE OF DATA</span>
672
        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#SpatialCoverageOfData" target="guide" class="smalltext">(What's this?)</a>
673
      </td>
674
      <td class="rightCol"><span><a onClick="spatialBit=swap(event, 'spatialTable', spatialBit)" style="cursor:pointer">Hide</a></span></td>
675
    </tr>
676
  </table>
677
   
678
   <table class="tables" cellpadding="5" cellspacing="0" id="spatialTable">  
679
   
680
    <tr class="sectbody">
681
       [% IF required.spatial == 'true' %]
682
          <td align="right" valign="top"><span class="label">*Geographic Description</span></td>
683
    [% ELSE %]
684
          <td align="right" valign="top"><span class="label">Geographic Description</span></td>
685
    [% END %]    
686
          <td align="left" colspan="5"><textarea rows="3" cols="60" name="geogdesc">[% geogdesc %]</textarea></td></tr>
687
    <tr class="sectbody"><td><td colspan="4"><span class="regtext">General description of the geographic area in which the data were collected. 
688
    It can be a simple place name (e.g., Santa Barbara) or a fuller description.</span></td><td>
689
    </td></tr>
690
    <tr class="sectbody"><td class="topbottom" align="center" colspan="6"><span class="label">COORDINATES</span></td></tr>
691
        
692
     
693
  [% IF show.siteList == 'true' %]
694
    <tr class="sectbody"><td align="left" valign="top" colspan="6">
695
        <input class="label" type="CHECKBOX" name="useSiteCoord" [%useSiteCoord%]>
696
        <span class="regtext">Use [% config.site %] coordinates. (This indicates that the data were
697
        collected at the [% config.site %]. If you check this box, you don't need
698
        to fill in the lat./long. fields below).</span>
699
        </td>
700
    </tr>
701
  [% END %]
702
    
703
    <tr class="sectbody">
704
      <td width="190"></td><td width="100" align="left"><span class="label">Degrees</span></td>
705
      <td width="110" align="left"><span class="label">Minutes</span></td>
706
      <td width="70" align="left"><span class="label">Seconds</span></td>
707
      <td width="200"></td><td width="90"</td>
708
   </tr>
709
      
710
   <tr class="sectbody">
711
     <td class="rightCol">
712
      [% IF required.spatial == 'true' %]
713
        <span class="label">*Latitude</span>
714
      [% ELSE %]
715
        <span class="label">Latitude</span>
716
      [% END %]</td> 
717
     <td> 
718
          <input type="TEXT" name="latDeg1" value="[%latDeg1%]" size="3" maxlength="3"></td>
719
      <td> <input type="TEXT" name="latMin1" value="[%latMin1%]" size="2" maxlength="2"></td>
720
      <td>  <input type="TEXT" name="latSec1" value="[%latSec1%]" size="2" maxlength="2"></td>
721
      
722
      <td Align="left" colspan="2"> 
723
      [% IF form == 're_entry' && hemisphLat1 == "N"%]
724
        <input type="radio"  name="hemisphLat1" value="N" CHECKED><span class="regtext">North&nbsp;&nbsp;</span>
725
      [%ELSE%]
726
        <input type="radio"  name="hemisphLat1" value="N"><span class="regtext">North&nbsp;&nbsp;</span>
727
      [%END%]
728
      [% IF form == 're_entry' && hemisphLat1 == "S"%]
729
        <input type="radio"  name="hemisphLat1" value="S" CHECKED><span class="regtext">South&nbsp;&nbsp;</span>
730
      [%ELSE%]
731
        <input type="radio"  name="hemisphLat1" value="S"><span class="regtext">South&nbsp;&nbsp;</span>
732
      [%END%]
733
      </td>
734
    </tr>
735 834

  
736
    <tr class="sectbody">
737
      <td class="rightCol"> 
738
      [% IF required.spatial == 'true' %]
739
        <span class="label">*Longitude</span>
740
      [% ELSE %]
741
        <span class="label">Longitude</span>
742
      [% END %]</td>
743
     
744
      <td> <input type="TEXT" name="longDeg1" value="[%longDeg1%]" size="3" maxlength="3"></td>
745
      <td> <input type="TEXT" name="longMin1" value="[%longMin1%]" size="2" maxlength="2"></td>
746
      <td> <input type="TEXT" name="longSec1" value="[%longSec1%]" size="2" maxlength="2"></td>
747
      
748
      
749
      <td align="left" colspan="2"> 
750
    [% IF form == 're_entry' && hemisphLong1 == "W"%]        
751
      <input type="radio"  name="hemisphLong1" value="W" CHECKED><span class="regtext">West&nbsp;&nbsp;</span>
752
    [%ELSE%]
753
      <input type="radio"  name="hemisphLong1" value="W"><span class="regtext">West&nbsp;&nbsp;</span>
754
    [%END%]
755
    [% IF form == 're_entry' && hemisphLong1 == "E"%]
756
      <input type="radio"  name="hemisphLong1" value="E" CHECKED><span class="regtext">East&nbsp;&nbsp;</span>
757
    [%ELSE%]
758
      <input type="radio"  name="hemisphLong1" value="E"><span class="regtext">East&nbsp;&nbsp;</span>
759
    [%END%]
760
      </td>
761
    </tr>
762
      
763
      
764
    <tr class="sectbody"><td><td colspan="4" align="left"><span class="regtext">If only this first lat/long pair is entered, this indicates a point location. If both lat/long pairs are entered, then this first pair represents the northwest corner of a bounding box.</span>
765
      </td><td></td></tr>
766
      
767
    <tr class="sectbody"> 
768
      <td class="rightCol"><span class="label">Latitude</span></td>
769
  <td ><input type="TEXT" name="latDeg2" value="[%latDeg2%]" size="3" maxlength="3"></td>
770
      <td><input type="TEXT" name="latMin2" value="[%latMin2%]" size="2" maxlength="2"></td>
771
      <td><input type="TEXT" name="latSec2" value="[%latSec2%]" size="2" maxlength="2"></td>
772
        
773
      <td align="left" colspan="2"> 
774
      [% IF form == 're_entry' && hemisphLat2 == "N"%]
775
        <input type="radio"  name="hemisphLat2" value="N" CHECKED><span class="regtext">North&nbsp;&nbsp;</span>
776
      [%ELSE%]
777
        <input type="radio"  name="hemisphLat2" value="N"><span class="regtext">North&nbsp;&nbsp;</span>
778
      [%END%]
779
      [% IF form == 're_entry' && hemisphLat2 == "S"%]
780
        <input type="radio"  name="hemisphLat2" value="S" CHECKED><span class="regtext">South&nbsp;&nbsp;</span>
781
      [%ELSE%]
782
        <input type="radio"  name="hemisphLat2" value="S"><span class="regtext">South&nbsp;&nbsp;</span>
783
      [%END%]
784
      </td>
785
    </tr>
786
    
787
    <tr class="sectbody"><td class="rightCol"><span class="label">Longitude</span></td>
788
       <td> <input type="TEXT" name="longDeg2" value="[%longDeg2%]" size="3" maxlength="3"></td>
789
       <td> <input type="TEXT" name="longMin2" value="[%longMin2%]" size="2" maxlength="2"></td>
790
       <td> <input type="TEXT" name="longSec2" value="[%longSec2%]" size="2" maxlength="2"></td>
791
       <td align="left" colspan="2">
792
       
793
      [% IF form == 're_entry' && hemisphLong2 == "W"%]
794
        <input type="radio"  name="hemisphLong2" value="W" CHECKED><span class="regtext">West&nbsp;&nbsp;</span>
795
      [%ELSE%]
796
        <input type="radio"  name="hemisphLong2" value="W"><span class="regtext">West&nbsp;&nbsp;</span>
797
      [%END%]
798
      [% IF form == 're_entry' && hemisphLong2 == "E"%]
799
        <input type="radio"  name="hemisphLong2" value="E" CHECKED><span class="regtext">East&nbsp;&nbsp;</span>
800
      [%ELSE%]
801
        <input type="radio"  name="hemisphLong2" value="E"><span class="regtext">East&nbsp;&nbsp;</span>
802
      [%END%]
803
      </td>
804
    </tr>
805
    <tr class="sectbody"><td></td>
806
       <td align="left" colspan="4"><span class="regtext">
807
        If entered, this lat/long pair represents the southeast corner of a bounding box.</span>
808
      </td><td></td>
809
    </tr>
810
  </table>    
811
   [% END %]
812

  
813 835
   [% IF modules.taxonomic == 'true' %]
814 836
   
815 837
  <table class="tables" cellpadding="5" cellspacing="0">  

Also available in: Unified diff