Revision 7900
Added by ben leinfelder over 11 years ago
lib/style/common/templates/metacatui/entryForm.tmpl | ||
---|---|---|
336 | 336 |
</div> |
337 | 337 |
<div id="collapseParties" class="accordion-body collapse in"> |
338 | 338 |
<div class="accordion-inner"> |
339 |
<!-- For now, just include the table-based editor until .js is ammended to work with new DOM --> |
|
340 |
<table class="tables" cellpadding="5" cellspacing="0" id="apTable"> |
|
341 |
<tr class="sectbody"><td class="rightCol"><span class="label">First Name</span></td> |
|
342 |
<td colspan="5"> |
|
343 |
<input name="aoFirstName" id="AONameFirst" class="shortwidth"></td></tr> |
|
344 |
|
|
345 |
<tr class="sectbody"><td class="rightCol"><span class="label">Last Name</span></td> |
|
346 |
<td colspan="5"> |
|
347 |
<input name="aoLastName" id="AONameLast" class="shortwidth"></td></tr> |
|
348 |
|
|
349 |
<tr class="sectbody"><td class="rightCol"><span class="label">Role</span></td> |
|
350 |
<td colspan="5"> |
|
351 |
<select id="AORole" name="aoRole" class="shortwidth"> |
|
352 |
<option>Co-owner</option> |
|
353 |
<option>Custodian/Steward</option> |
|
354 |
<option>Metadata Provider</option> |
|
355 |
<option>User</option> |
|
356 |
</select> |
|
357 |
</td> |
|
358 |
</tr> |
|
359 |
|
|
360 |
<tr id="addAssociatedParty" class="sectbody"> |
|
361 |
<td></td> |
|
362 |
<td colspan="5"> <input type="button" value="Add Associated Party" id="addaobutton1" |
|
363 |
onClick="addAssociatedParty()"></td></tr> |
|
364 |
|
|
365 |
[% numAO = 0 %] |
|
366 |
[% IF aoCount %] |
|
367 |
[% numAO = aoCount %] |
|
368 |
<tr class="sectbody" id="aoHRRow"> |
|
369 |
<td colSpan="6"> |
|
370 |
<hr width = "85%"/> |
|
371 |
</td> |
|
372 |
</tr> |
|
373 |
[% END %] |
|
374 |
[% cnt = 1 %] |
|
375 |
[% WHILE cnt < numAO%] |
|
376 |
|
|
377 |
<tr class="sectbody"> |
|
378 |
[% SET aofn = "origNamefirst${cnt}" %] |
|
379 |
[% SET aoln = "origNamelast${cnt}" %] |
|
380 |
[% SET aorole = "origRole${cnt}" %] |
|
381 |
|
|
382 |
<td class="rightCol"> |
|
383 |
<a style="cursor:pointer"> |
|
384 |
<img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)" |
|
385 |
src="[% contextUrl %]/style/images/previous.gif" |
|
386 |
alt="Move Up" border="0"/> |
|
387 |
</a> |
|
388 |
<a style="cursor:pointer"> |
|
389 |
<img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')" |
|
390 |
src="[% contextUrl %]/style/images/next.gif" |
|
391 |
alt="Move Down" border="0"/> |
|
392 |
</a> |
|
393 |
<a style="cursor:pointer"> |
|
394 |
<img src="[% contextUrl %]/style/images/delete.gif" |
|
395 |
onClick="delRow(event)" alt="Delete" border="0"/> |
|
396 |
</a> |
|
397 |
</td> |
|
398 |
<td colspan="5" align ="left" style="cursor:pointer" |
|
399 |
onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')"> |
|
400 |
[%$aofn%] [%$aoln%] (Role: [%$aorole%]) |
|
401 |
<input name="aoFirstName" type="hidden" value="[%$aofn%]"/> |
|
402 |
<input name="aoLastName" type="hidden" value="[%$aoln%]"/> |
|
403 |
<input name="aoRole" type="hidden" value="[%$aorole%]"/> |
|
404 |
</td> |
|
405 |
</tr> |
|
406 |
[% cnt = cnt + 1 %] |
|
407 |
[% END %] |
|
408 |
<input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount"> |
|
409 |
<tr class="sectbody" id="addaorow"><td colspan=6 /></tr> |
|
410 |
</table> |
|
339 |
|
|
340 |
<div class="control-group"> |
|
341 |
<label class="control-label" for="aoFirstName">First Name</label> |
|
342 |
<div class="controls"> |
|
343 |
<input type="text" name="aoFirstName" id="AONameFirst""> |
|
344 |
</div> |
|
345 |
</div> |
|
346 |
<div class="control-group"> |
|
347 |
<label class="control-label" for="aoLastName">Last Name</label> |
|
348 |
<div class="controls"> |
|
349 |
<input type="text" name="aoLastName" id="AONameLast""> |
|
350 |
</div> |
|
351 |
</div> |
|
352 |
<div class="control-group"> |
|
353 |
<label class="control-label" for="aoRole">Role</label> |
|
354 |
<div class="controls"> |
|
355 |
<select id="AORole" name="aoRole"> |
|
356 |
<option>Co-owner</option> |
|
357 |
<option>Custodian/Steward</option> |
|
358 |
<option>Metadata Provider</option> |
|
359 |
<option>User</option> |
|
360 |
</select> |
|
361 |
</div> |
|
362 |
</div> |
|
363 |
<div class="control-group"> |
|
364 |
<label class="control-label" for="addaobutton1">More?</label> |
|
365 |
<div class="controls"> |
|
366 |
<input type="button" value="Add Associated Party" id="addaobutton1" onClick="addAssociatedParty()"> |
|
367 |
</div> |
|
368 |
</div> |
|
369 |
|
|
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> |
|
411 | 417 |
|
412 | 418 |
</div> |
413 | 419 |
</div> |
Also available in: Unified diff
restyle parties section - entry boxes. https://projects.ecoinformatics.org/ecoinfo/issues/5951