Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
16ac2d6b
Commit
16ac2d6b
authored
Jan 27, 2015
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor tweaks to boolean field form entries in scripts.
parent
c04153a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
www/aptui/profile_defs.php
www/aptui/profile_defs.php
+4
-8
No files found.
www/aptui/profile_defs.php
View file @
16ac2d6b
<?php
#
# Copyright (c) 2006-201
4
University of Utah and the Flux Group.
# Copyright (c) 2006-201
5
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -470,18 +470,14 @@ class Profile
if
(
$type
==
"boolean"
)
{
$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
' "
.
" <%- formfields.${name} %> "
.
" style='margin-left: 0px;' "
.
" style='margin: 0px; height: 34px;' "
.
" class='format-me' "
.
" data-key='
$name
' "
.
" data-label='
$prompt
' "
.
" value='checked' "
.
" type='checkbox'>
Yes</div></div>
"
;
" type='checkbox'>"
;
if
(
$defval
)
{
$defaults
[
$name
]
=
"checked"
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment