Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (26 sloc) 718 Bytes
<% 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(); %>