Commit 16ac2d6b authored by Leigh B Stoller's avatar Leigh B Stoller

Minor tweaks to boolean field form entries in scripts.

parent c04153a3
<?php <?php
# #
# Copyright (c) 2006-2014 University of Utah and the Flux Group. # Copyright (c) 2006-2015 University of Utah and the Flux Group.
# #
# {{{EMULAB-LICENSE # {{{EMULAB-LICENSE
# #
...@@ -470,18 +470,14 @@ class Profile ...@@ -470,18 +470,14 @@ class Profile
if ($type == "boolean") { if ($type == "boolean") {
$form .= $form .=
"<div class='form-group'> ".
"<label for='$name' class='col-sm-4 control-label'> ".
" $prompt".
"</label>".
"<div class='checkbox col-sm-6'> ".
"<input name='$name' ". "<input name='$name' ".
" <%- formfields.${name} %> ". " <%- formfields.${name} %> ".
" style='margin-left: 0px;' ". " style='margin: 0px; height: 34px;' ".
" class='format-me' ".
" data-key='$name' ". " data-key='$name' ".
" data-label='$prompt' ". " data-label='$prompt' ".
" value='checked' ". " value='checked' ".
" type='checkbox'>Yes</div></div>"; " type='checkbox'>";
if ($defval) { if ($defval) {
$defaults[$name] = "checked"; $defaults[$name] = "checked";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment