Project

General

Profile

« Previous | Next » 

Revision 7905

put keywords list inside form control div. https://projects.ecoinformatics.org/ecoinfo/issues/5951

View differences:

lib/style/common/templates/metacatui/entryForm.tmpl
492 492
									</div>
493 493
								</div>
494 494
								
495
								<!-- the orginal table -->
496
								<table>
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
								
495
								<div class="control-group">
496
									<label class="control-label" for="keywordTable">More?</label>
497
									<div class="controls">
498
										<!-- the orginal table -->
499
										<table>
500
										 [% numKey = 0 %]
501
										 [% IF keyCount %]
502
										   [% numKey = keyCount %]
503
										        [% numAO = aoCount %]
504
										        <tr class="sectbody" id="keywordHRRow">
505
										            <td colSpan="6">
506
										                <hr width = "85%"/>
507
										            </td>
508
										        </tr>
509
										 [% END %]
510
										 <input type="hidden" name="keyCount" value="[%numKey%]" 
511
										            id="keyCount">
512
										   
513
										      [% cnt = 1 %]
514
										        [% WHILE cnt < numKey %]
515
										        
516
										           <tr class="sectbody">
517
										            <td class="rightCol">
518
										                <a style="cursor:pointer">
519
										                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
520
										                    src="[% contextUrl %]/style/images/previous.gif"
521
										                    alt="Move Up" border="0"/>
522
										                </a>
523
										                <a style="cursor:pointer">
524
										                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
525
										                    src="[% contextUrl %]/style/images/next.gif"
526
										                    alt="Move Down" border="0"/>
527
										                </a>
528
										                <a style="cursor:pointer">
529
										                    <img src="[% contextUrl %]/style/images/delete.gif"
530
										                    onClick="delRow(event)" alt="Delete" border="0"/>
531
										                </a>
532
										            </td>
533
										            [% SET keyword = "keyword${cnt}" %]
534
										            [% SET keywordType = "kwType${cnt}" %]
535
										            [% SET keywordTh = "kwTh${cnt}" %]
536
										            <td colspan="5" align ="left" style="cursor:pointer"
537
										                onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
538
										                [%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
539
										                <input name="keyword" type="hidden" value="[%$keyword%]"/>
540
										                <input name="keywordType" type="hidden" value="[%$keywordType%]"/>
541
										                <input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
542
										            </td>
543
										        </tr>
544
										        [% cnt = cnt + 1 %]
545
										       [% END %]
546
											<tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
547
										</table>
548
									</div>
549
								</div>
550
	
546 551
						    </div>
547 552
						</div>
548 553
					[% END %]	

Also available in: Unified diff