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
93eccf05
Commit
93eccf05
authored
Mar 31, 2014
by
Robert Ricci
Browse files
Factor spitting collapsible divs into a new function
Since we have two now, might as well
parent
7fe166a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/aptui/quickvm_sup.php
View file @
93eccf05
...
...
@@ -530,18 +530,7 @@ function RedirectLoginPage()
function
SpitAboutApt
()
{
?>
<div
class=
"panel panel-info"
>
<div
class=
"panel-heading"
>
<h5><a
data-toggle=
"collapse"
href=
"#aboutapt"
>
What is Apt?
<span
class=
"glyphicon glyphicon-chevron-right pull-right"
></span></a></h5>
</div>
<div
id=
"aboutapt"
class=
"panel-collapse collapse"
>
<div
class=
"panel-body"
>
SpitCollapsiblePanel
(
"aboutapt"
,
"What is Apt?"
,
<<<'ENDBODY'
<p>
Apt is a testbed facility built around <em>profiles</em>.
A profile describes an <em>experiment</em>; when you instantiate a profile,
...
...
@@ -576,11 +565,31 @@ Apt is funded by the National Science Foundation under award CNS-1338155 and
<p>
For help, bug reports, or other questions, come join the <a href="https://groups.google.com/forum/#!forum/apt-users">Discussion Forum</a>
</p>
ENDBODY
);
}
function
SpitCollapsiblePanel
(
$id
,
$title
,
$body
)
{
?>
<div
class=
"panel panel-info"
>
<div
class=
"panel-heading"
>
<h5><a
data-toggle=
"collapse"
href=
"#
<?php
echo
$id
;
?>
"
>
<?php
echo
$title
;
?>
<span
class=
"glyphicon glyphicon-chevron-right pull-right"
></span></a></h5>
</div>
<div
id=
"
<?php
echo
$id
;
?>
"
class=
"panel-collapse collapse"
>
<div
class=
"panel-body"
>
<?php
echo
$body
;
?>
</div>
<!-- Panel body -->
</div>
<!-- Collapser -->
</div>
<!-- Panel -->
<?
<?
php
}
?>
www/aptui/signup.php
View file @
93eccf05
...
...
@@ -293,21 +293,11 @@ function SPITFORM($formfields, $showverify, $errors)
# Spit information about Apt accounts
#
function
SPITABOUTACCT
()
{
?>
<div
class=
"panel panel-info"
>
<div
class=
"panel-heading"
>
<h5><a
data-toggle=
"collapse"
href=
"#aboutacct"
>
Do I Need An Account?
<span
class=
"glyphicon glyphicon-chevron-right pull-right"
></span></a></h5>
</div>
<div
id=
"aboutacct"
class=
"panel-collapse collapse"
>
<div
class=
"panel-body"
>
<p>
Maybe!
</p>
</div>
</div>
</div>
<?php
SpitCollapsiblePanel
(
"aboutacct"
,
"Do I need an account?"
,
<<<'ENDBODY'
<p>Maybe!</p>
ENDBODY
);
}
if
(
isset
(
$finished
)
&&
$finished
)
{
...
...
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