Project

General

Profile

« Previous | Next » 

Revision 7901

restyle parties section - additional entries section. https://projects.ecoinformatics.org/ecoinfo/issues/5951

View differences:

lib/style/common/templates/metacatui/entryForm.tmpl
366 366
										<input type="button" value="Add Associated Party" id="addaobutton1" onClick="addAssociatedParty()">
367 367
									</div>
368 368
								</div>
369
								<div class="control-group">
370
									<label class="control-label" for="associatePartyTable"></label>
371
									<div class="controls">
372
										<table id="associatePartyTable">       
373
										    [% numAO = 0 %]
374
										    [% IF aoCount %]
375
										        [% numAO = aoCount %]
376
										        <tr class="sectbody" id="aoHRRow">
377
										            <td colSpan="6">
378
										                <hr width = "85%"/>
379
										            </td>
380
										        </tr>
381
										    [% END %]
382
										    [% cnt = 1 %]
383
										    [% WHILE cnt < numAO%]
384
										            
385
										        <tr class="sectbody">
386
										            [% SET aofn = "origNamefirst${cnt}" %]
387
										            [% SET aoln = "origNamelast${cnt}" %]
388
										            [% SET aorole = "origRole${cnt}" %]
389
										     
390
										            <td class="rightCol">
391
										                <a style="cursor:pointer">
392
										                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)"
393
										                    src="[% contextUrl %]/style/images/previous.gif"
394
										                    alt="Move Up" border="0"/>
395
										                </a>
396
										                <a style="cursor:pointer">
397
										                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')"
398
										                    src="[% contextUrl %]/style/images/next.gif"
399
										                    alt="Move Down" border="0"/>
400
										                </a>
401
										                <a style="cursor:pointer">
402
										                    <img src="[% contextUrl %]/style/images/delete.gif"
403
										                    onClick="delRow(event)" alt="Delete" border="0"/>
404
										                </a>
405
										            </td>
406
										            <td colspan="5" align ="left" style="cursor:pointer"
407
										                onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')">
408
										                [%$aofn%] [%$aoln%] (Role: [%$aorole%])
409
										                <input name="aoFirstName" type="hidden" value="[%$aofn%]"/>
410
										                <input name="aoLastName" type="hidden" value="[%$aoln%]"/>
411
										                <input name="aoRole" type="hidden" value="[%$aorole%]"/>
412
										            </td>
413
										        </tr>
414
										        [% cnt = cnt + 1 %]
415
										    [% END %]
416
										    <input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount">
417
										    <tr class="sectbody" id="addaorow"><td colspan=6 /></tr>
418
										</table>
419
									</div>
420
								</div>
369 421
								    
370
								<table>       
371
								    [% numAO = 0 %]
372
								    [% IF aoCount %]
373
								        [% numAO = aoCount %]
374
								        <tr class="sectbody" id="aoHRRow">
375
								            <td colSpan="6">
376
								                <hr width = "85%"/>
377
								            </td>
378
								        </tr>
379
								    [% END %]
380
								    [% cnt = 1 %]
381
								    [% WHILE cnt < numAO%]
382
								            
383
								        <tr class="sectbody">
384
								            [% SET aofn = "origNamefirst${cnt}" %]
385
								            [% SET aoln = "origNamelast${cnt}" %]
386
								            [% SET aorole = "origRole${cnt}" %]
387
								     
388
								            <td class="rightCol">
389
								                <a style="cursor:pointer">
390
								                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)"
391
								                    src="[% contextUrl %]/style/images/previous.gif"
392
								                    alt="Move Up" border="0"/>
393
								                </a>
394
								                <a style="cursor:pointer">
395
								                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')"
396
								                    src="[% contextUrl %]/style/images/next.gif"
397
								                    alt="Move Down" border="0"/>
398
								                </a>
399
								                <a style="cursor:pointer">
400
								                    <img src="[% contextUrl %]/style/images/delete.gif"
401
								                    onClick="delRow(event)" alt="Delete" border="0"/>
402
								                </a>
403
								            </td>
404
								            <td colspan="5" align ="left" style="cursor:pointer"
405
								                onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')">
406
								                [%$aofn%] [%$aoln%] (Role: [%$aorole%])
407
								                <input name="aoFirstName" type="hidden" value="[%$aofn%]"/>
408
								                <input name="aoLastName" type="hidden" value="[%$aoln%]"/>
409
								                <input name="aoRole" type="hidden" value="[%$aorole%]"/>
410
								            </td>
411
								        </tr>
412
								        [% cnt = cnt + 1 %]
413
								    [% END %]
414
								    <input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount">
415
								    <tr class="sectbody" id="addaorow"><td colspan=6 /></tr>
416
								</table>
417 422
								
423
								
418 424
						    </div>
419 425
						</div>
420 426
       

Also available in: Unified diff