Project

General

Profile

« Previous | Next » 

Revision 7903

View differences:

lib/style/common/templates/metacatui/entryForm.tmpl
88 88
						    </div>
89 89
						</div>
90 90
						
91
						<!-- TEMPLATE -->
92
						<div class="accordion-heading">
93
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none">
94
								Template  
95
							</a>
96
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
97
						</div>
98
						<div id="collapseTemplate" class="accordion-body collapse in">
99
							<div class="accordion-inner">
100
								<!--  the INPUT -->
101
								<div class="control-group">
102
									<label class="control-label" for="template">*template</label>
103
									<div class="controls">
104
										<input type="text" name="template" value="[%template%]">
105
									</div>
106
								</div>
107
								
108
						    </div>
109
						</div>
110
						
111 91
						<!-- BASIC -->
112 92
						<div class="accordion-heading">
113 93
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseBasic" href="#none">
......
442 422
								
443 423
						    </div>
444 424
						</div>
425
						
426
						<!-- TEMPLATE -->
427
						<div class="accordion-heading">
428
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none">
429
								Template  
430
							</a>
431
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation"><i class="icon-question-sign"></i></a>
432
						</div>
433
						<div id="collapseTemplate" class="accordion-body collapse in">
434
							<div class="accordion-inner">
435
								<!--  the INPUT -->
436
								<div class="control-group">
437
									<label class="control-label" for="template">*template</label>
438
									<div class="controls">
439
										<input type="text" name="template" value="[%template%]">
440
									</div>
441
								</div>
442
								
443
						    </div>
444
						</div>
445
						
446
					[% IF modules.keyword == 'true' %]
447
						<!-- KEYWORDS -->
448
						<div class="accordion-heading">
449
							<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseKeywords" href="#none">
450
								Keywords  
451
							</a>
452
							<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation"><i class="icon-question-sign"></i></a>
453
						</div>
454
						<div id="collapseKeywords" class="accordion-body collapse in">
455
							<div class="accordion-inner">
456
								<!--  the INPUT -->
457
								<div class="control-group">
458
									<label class="control-label" for="keyword">Keyword</label>
459
									<div class="controls">
460
										<input type="text" name="keyword" id="keyword" value="[%keyword%]">
461
										<span class="help-block">For samples, see <a href=
462
											"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa">NASA Global Change Master Directory (GCMD)</a>.
463
										</span>
464
									</div>
465
								</div>
466
								<div class="control-group">
467
									<label class="control-label" for="keywordType">Keyword Type</label>
468
									<div class="controls">
469
										<select name="keywordType" id="keywordType" class="shortwidth">
470
											<option>None</option>
471
								            <option>Theme</option>
472
								            <option>Place</option>
473
								            <option>Stratum</option>
474
								            <option>Temporal</option>
475
								            <option>Taxonomic</option>
476
										</select>
477
									</div>
478
								</div>
479
								<div class="control-group">
480
									<label class="control-label" for="keywordTh">Keyword Thesaurus</label>
481
									<div class="controls">
482
										<input type="text" name="keywordTh" id="keywordTh" value="[%keywordTh%]">
483
									</div>
484
								</div>
485
								<div class="control-group">
486
									<label class="control-label" for="addKeyword">More?</label>
487
									<div class="controls">
488
										<input type="button" value="Add Keyword" onClick="addKeyword()">
489
									</div>
490
								</div>
491
								
492
								<!-- the orginal table -->
493
								<table>
494
								 [% numKey = 0 %]
495
								 [% IF keyCount %]
496
								   [% numKey = keyCount %]
497
								        [% numAO = aoCount %]
498
								        <tr class="sectbody" id="keywordHRRow">
499
								            <td colSpan="6">
500
								                <hr width = "85%"/>
501
								            </td>
502
								        </tr>
503
								 [% END %]
504
								 <input type="hidden" name="keyCount" value="[%numKey%]" 
505
								            id="keyCount">
506
								   
507
								      [% cnt = 1 %]
508
								        [% WHILE cnt < numKey %]
509
								        
510
								           <tr class="sectbody">
511
								            <td class="rightCol">
512
								                <a style="cursor:pointer">
513
								                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
514
								                    src="[% contextUrl %]/style/images/previous.gif"
515
								                    alt="Move Up" border="0"/>
516
								                </a>
517
								                <a style="cursor:pointer">
518
								                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
519
								                    src="[% contextUrl %]/style/images/next.gif"
520
								                    alt="Move Down" border="0"/>
521
								                </a>
522
								                <a style="cursor:pointer">
523
								                    <img src="[% contextUrl %]/style/images/delete.gif"
524
								                    onClick="delRow(event)" alt="Delete" border="0"/>
525
								                </a>
526
								            </td>
527
								            [% SET keyword = "keyword${cnt}" %]
528
								            [% SET keywordType = "kwType${cnt}" %]
529
								            [% SET keywordTh = "kwTh${cnt}" %]
530
								            <td colspan="5" align ="left" style="cursor:pointer"
531
								                onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
532
								                [%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
533
								                <input name="keyword" type="hidden" value="[%$keyword%]"/>
534
								                <input name="keywordType" type="hidden" value="[%$keywordType%]"/>
535
								                <input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
536
								            </td>
537
								        </tr>
538
								        [% cnt = cnt + 1 %]
539
								       [% END %]
540
								        <tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
541
								       </table>
542
								
543
						    </div>
544
						</div>
545
					[% END %]	
445 546

  
446

  
447
  [% IF modules.keyword == 'true' %]
448
    <table class="tables" cellpadding="5" cellspacing="0">
449
      <tr class="sectheader">
450
        <td colspan="5" align="left">
451
          <span class="label">KEYWORD INFORMATION</span>
452
          <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation" target="guide" class="smalltext">(What's this?)</a>
453
        </td>
454
        <td class="rightCol"><span><a onClick="keywordBit=swap(event, 'keywordTable', keywordBit)" style="cursor:pointer">Hide</a></span></td>
455
        </tr>
456
    </table>
457
   
458
    <table class="tables" cellpadding="5" cellspacing="0" id="keywordTable">     
459
     <tr class="sectbody"><td><td colspan="5" align="left"><span class="regtext">For samples, see <a href=
460
"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa"><span class=
461
"boldlink">NASA Global Change Master Directory (GCMD)</a>.</span>
462
     
463
      <tr class="sectbody">
464
        <td class="rightCol"><span class="label">Keyword</span></td>
465
      <td colspan="5">
466
            <input name="keyword" id="keyword" class="shortwidth"></td></tr>
467

  
468

  
469
     <tr class="sectbody"><td class="rightCol"><span class="label">Keyword Type</span></td>
470
     <td colspan="5">
471
            <select name="keywordType" id="keywordType" class="shortwidth">
472
      <option>None</option>
473
            <option>Theme</option>
474
            <option>Place</option>
475
            <option>Stratum</option>
476
            <option>Temporal</option>
477
            <option>Taxonomic</option>
478
            </select>
479
        </td></tr>
480
      
481
        <tr id="keyThRow" class="sectbody"><td class="rightCol"><span class="label">Keyword Thesaurus</span></td>
482
          <td colspan="5">
483
            
484
            <select name="keywordTh" id="keywordTh" class="shortwidth">
485
          <option>None</option>
486
             <option>GCMD</option>
487
            </select>
488
      
489
      </td></tr>
490
            
491
    <tr id="addKeyword" class="sectbody">
492
          <td></td>
493
          <td colspan="5" align="left">
494
                   <input type="button" value="Add Keyword" onClick="addKeyword()"></td></tr>
495
        
496
        
497
 [% numKey = 0 %]
498
 [% IF keyCount %]
499
   [% numKey = keyCount %]
500
        [% numAO = aoCount %]
501
        <tr class="sectbody" id="keywordHRRow">
502
            <td colSpan="6">
503
                <hr width = "85%"/>
504
            </td>
505
        </tr>
506
 [% END %]
507
 <input type="hidden" name="keyCount" value="[%numKey%]" 
508
            id="keyCount">
509
   
510
      [% cnt = 1 %]
511
        [% WHILE cnt < numKey %]
512
        
513
           <tr class="sectbody">
514
            <td class="rightCol">
515
                <a style="cursor:pointer">
516
                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
517
                    src="[% contextUrl %]/style/images/previous.gif"
518
                    alt="Move Up" border="0"/>
519
                </a>
520
                <a style="cursor:pointer">
521
                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
522
                    src="[% contextUrl %]/style/images/next.gif"
523
                    alt="Move Down" border="0"/>
524
                </a>
525
                <a style="cursor:pointer">
526
                    <img src="[% contextUrl %]/style/images/delete.gif"
527
                    onClick="delRow(event)" alt="Delete" border="0"/>
528
                </a>
529
            </td>
530
            [% SET keyword = "keyword${cnt}" %]
531
            [% SET keywordType = "kwType${cnt}" %]
532
            [% SET keywordTh = "kwTh${cnt}" %]
533
            <td colspan="5" align ="left" style="cursor:pointer"
534
                onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
535
                [%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
536
                <input name="keyword" type="hidden" value="[%$keyword%]"/>
537
                <input name="keywordType" type="hidden" value="[%$keywordType%]"/>
538
                <input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
539
            </td>
540
        </tr>
541
        [% cnt = cnt + 1 %]
542
       [% END %]
543
        <tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
544
       </table>
545
  [% END %]
546 547
  
547 548
  [% IF modules.temporal == 'true' %]
548 549
   

Also available in: Unified diff