Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
bea5a02c
Commit
bea5a02c
authored
May 16, 2014
by
Leigh B Stoller
Browse files
Minor bug fixes for template conversion.
parent
d8f8417b
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/aptui/manage_profile.php
View file @
bea5a02c
...
@@ -247,6 +247,7 @@ if (! isset($create)) {
...
@@ -247,6 +247,7 @@ if (! isset($create)) {
if
(
count
(
$projlist
)
==
1
)
{
if
(
count
(
$projlist
)
==
1
)
{
$defaults
[
"profile_pid"
]
=
$projlist
[
0
];
$defaults
[
"profile_pid"
]
=
$projlist
[
0
];
}
}
$defaults
[
"profile_who"
]
=
"shared"
;
}
}
SPITFORM
(
$defaults
,
$errors
);
SPITFORM
(
$defaults
,
$errors
);
return
;
return
;
...
...
www/aptui/template/manage-profile.html
View file @
bea5a02c
...
@@ -65,7 +65,13 @@
...
@@ -65,7 +65,13 @@
data-key=
"profile_pid"
data-key=
"profile_pid"
placeholder=
'Please Select'
>
placeholder=
'Please Select'
>
<
%
_.each
(
projects
,
function
(
name
)
{
%
>
<
%
_.each
(
projects
,
function
(
name
)
{
%
>
<option
value=
'<%= name %>'
><
%=
name
%
></option>
<option
<%
if
(
_.has
(
formfields
,
'
profile_pid
')
&&
formfields.profile_pid =
=
name
)
{
%
>
selected
<
%
}
%
>
value='
<
%=
name
%
>
'>
<
%=
name
%
>
</option>
<
%
});
%
>
<
%
});
%
>
</select>
</select>
<
%
}
%
>
<
%
}
%
>
...
...
Write
Preview
Supports
Markdown
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