206: def install_form
207: div do
208: h2 { "Install New Mongrel Service" }
209: p { "Items with an * are mandatory. Leave an item blank to not specify it." }
210: form :action=>"/install", :method=>"POST" do
211: b { "* Service Name: "}; input :name => "service_name"; br
212: b { "* Root: "}; input :name => "root"; br
213: b { "* Environment: "}; input :name => "environment", :value => "development"; br
214: b { "*Address: "}; input :name => "address", :value => "0.0.0.0"; br
215: b { "*Port: "}; input :name => "port", :value => "4000", :size => 6; br
216: b { "Display Name: "}; input :name => "display_name"; br
217: b { "MIME Map File: "}; input :name => "mime"; br
218: b { "Number Processor Threads: "}; input :name => "num_procs", :size => 3; br
219: b { "Request Timeout: "}; input :name => "timeout", :size => 3; br
220: b { "Assigned CPU: " }; input :name => "cpu", :size => 2; br
221:
222: p { input :type=>"submit", :value => "INSTALL" }
223: end
224: end
225: end