Revision 6992
Added by ben leinfelder almost 13 years ago
dataone-configuration.jsp | ||
---|---|---|
328 | 328 |
|
329 | 329 |
<input type="hidden" name="configureType" value="dataone"/> |
330 | 330 |
<input type="hidden" name="processForm" value="true"/> |
331 |
<input class=button type="submit" value="Register"/> |
|
331 |
|
|
332 |
<% |
|
333 |
// do we know if it is an update or a new registration? |
|
334 |
boolean isUpdate = false; |
|
335 |
String isUpdateString = (String) request.getAttribute("dataone.isUpdate"); |
|
336 |
if (isUpdateString != null) { |
|
337 |
isUpdate = Boolean.parseBoolean(isUpdateString); |
|
338 |
} |
|
339 |
%> |
|
340 |
<%if (isUpdate) { %> |
|
341 |
<input class=button type="submit" value="Update"/> |
|
342 |
<%} else { %> |
|
343 |
<input class=button type="submit" value="Register"/> |
|
344 |
<%} %> |
|
332 | 345 |
<input class=button type="button" value="Skip" onClick="forward('./admin?configureType=dataone&bypass=true&processForm=true')"> |
333 | 346 |
<input class=button type="button" value="Cancel" onClick="forward('./admin')"> |
334 | 347 |
|
Also available in: Unified diff
Show "Update" button if this MemberNodeId is already registered with DataONE, otherwise use the "Register" label