Commit 189d5824 authored by Leigh Stoller's avatar Leigh Stoller

Minor bug fixes.

parent 53e0cb17
...@@ -227,6 +227,10 @@ function SPITFORM($formfields, $newuser, $errors) ...@@ -227,6 +227,10 @@ function SPITFORM($formfields, $newuser, $errors)
echo " <span class='' echo " <span class=''
id='selected_profile_description'></span>\n"; id='selected_profile_description'></span>\n";
} }
else {
echo "<input id='selected_profile' type='hidden' value='$profile'
name='formfields[profile]'/>\n";
}
echo "</fieldset> echo "</fieldset>
<button class='btn btn-success pull-right' <button class='btn btn-success pull-right'
type='submit' name='create'>Create! type='submit' name='create'>Create!
......
...@@ -289,30 +289,25 @@ echo "</div>\n"; ...@@ -289,30 +289,25 @@ echo "</div>\n";
# will actually fill in the div though, since it is markdown and that # will actually fill in the div though, since it is markdown and that
# is more easily done on the client side for now. # is more easily done on the client side for now.
# #
$parsed_xml = simplexml_load_string($instance->manifest()); echo "<div class='row invisible' id='instructions_panel'>
if ($parsed_xml && <div class='col-lg-6 col-lg-offset-3
$parsed_xml->rspec_tour && $parsed_xml->rspec_tour->instructions) { col-md-8 col-md-offset-2
col-sm-8 col-sm-offset-2
echo "<div class='row invisible' id='instructions_panel'> col-xs-12 col-xs-offset-0'>\n";
<div class='col-lg-6 col-lg-offset-3 echo "<div class='panel panel-default'>\n";
col-md-8 col-md-offset-2 echo "<div class='panel-heading'>
col-sm-8 col-sm-offset-2 <a data-toggle='collapse' data-target='#instructions_collapse'
col-xs-12 col-xs-offset-0'>\n"; href='#'>Usage Instructions
echo "<div class='panel panel-default'>\n"; <span class='glyphicon glyphicon-chevron-right pull-right'>
echo "<div class='panel-heading'> </span></a>
<a data-toggle='collapse' data-target='#instructions_collapse' </div>\n";
href='#'>Usage Instructions echo "<div class='panel-collapse collapse' id='instructions_collapse'>\n";
<span class='glyphicon glyphicon-chevron-right pull-right'> echo "<div class='panel-body' id='instructions_text'>\n";
</span></a> echo "</div>\n"; # panel-body
</div>\n"; echo "</div>\n"; # collapse
echo "<div class='panel-collapse collapse' id='instructions_collapse'>\n"; echo "</div>\n"; # panel
echo "<div class='panel-body' id='instructions_text'>\n"; echo "</div>\n"; # cols
echo "</div>\n"; # panel-body echo "</div>\n"; # row
echo "</div>\n"; # collapse
echo "</div>\n"; # panel
echo "</div>\n"; # cols
echo "</div>\n"; # row
}
# #
# The topo diagram goes inside this div, when it becomes available. # The topo diagram goes inside this div, when it becomes available.
......
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