Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (26 sloc) 0.718 kB
<% local.pieces.header(); %>
<h3>Load Balancer Edit</h3>
<%
core.content.forms();
var mylb = null;
if ( request._id ) mylb = db.lbs.findOne( ObjectId( request._id ) );
if ( ! mylb ) mylb = {};
Forms.fillInObject( "" , mylb );
if ( request.action == "save" ){
db.lbs.save( mylb );
return response.sendRedirectTemporary( "/lbs" );
}
print.setFormObject( mylb );
%>
<form>
<input type="hidden" name="_id">
<table>
<tr>
<th>Machine</th>
<td><% local.pieces.nodePicker( "machine" , false , mylb.machine ) %></td>
</tr>
</table>
<input name="action" type="submit" value="save">
</form>
<hr>
<% local.pieces.footer(); %>
Jump to Line
Something went wrong with that request. Please try again.