Skip to content

Commit

Permalink
Refine Administration global page (openemr#3945)
Browse files Browse the repository at this point in the history
* feat: adjust the button style

* feat: sticky-top the sidebar.
  • Loading branch information
stu01509 committed Oct 4, 2020
1 parent 0351cb4 commit 51f155b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions interface/super/edit_globals.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,9 @@ function checkBackgroundServices()
?>
</head>

<body class="body_top m-0" <?php if ($userMode) {
echo 'style="min-width: 700px;"'; } ?>>
<body <?php if ($userMode) {
echo 'style="min-width: 700px;"';
} ?>>

<div id="container_div" class="<?php echo $oemr_ui->oeContainer();?>">
<div class="row">
Expand All @@ -354,7 +355,7 @@ function checkBackgroundServices()
<input type="hidden" name="csrf_token_form" value="<?php echo attr(CsrfUtils::collectCsrfToken()); ?>" />
<div class="clearfix">
<div class="btn-group oe-margin-b-10">
<button type='submit' class='btn btn-secondary btn-save oe-pull-toward' name='form_save' value='<?php echo xla('Save'); ?>'><?php echo xlt('Save'); ?></button>
<button type='submit' class='btn btn-primary btn-save oe-pull-toward' name='form_save' value='<?php echo xla('Save'); ?>'><?php echo xlt('Save'); ?></button>
</div>
<div class="input-group col-sm-4 oe-pull-away">
<?php // mdsupport - Optional server based searching mechanism for large number of fields on this screen.
Expand All @@ -372,7 +373,7 @@ function checkBackgroundServices()
</div>
<br />
<div id="globals-div">
<ul class="tabNav tabWidthWide" id="oe-nav-ul">
<ul class="tabNav tabWidthWide sticky-top" id="oe-nav-ul">
<?php
$i = 0;
foreach ($GLOBALS_METADATA as $grpname => $grparr) {
Expand Down Expand Up @@ -706,9 +707,9 @@ function checkBackgroundServices()
echo "<div class='col-sm-2 text-danger'>" . text($globalTitle) . "</div>\n";
echo "<div class='col-sm-2 '><input type='checkbox' value='YES' name='toggle_" . $i . "' id='toggle_" . $i . "' " . $settingDefault . "/></div>\n";
if ($fldtype == 'encrypted') {
echo "<input type='hidden' id='globaldefault_" . $i . "' value='" . attr($globalTitle) . "'>\n";
echo "<input type='hidden' id='globaldefault_" . $i . "' value='" . attr($globalTitle) . "' />\n";
} else {
echo "<input type='hidden' id='globaldefault_" . $i . "' value='" . attr($globalValue) . "'>\n";
echo "<input type='hidden' id='globaldefault_" . $i . "' value='" . attr($globalValue) . "' />\n";
}
echo "</div>\n";
} else {
Expand All @@ -719,7 +720,7 @@ function checkBackgroundServices()
}

echo "<div class='btn-group oe-margin-b-10'>" .
"<button type='submit' class='btn btn-secondary btn-save oe-pull-toward' name='form_save'" .
"<button type='submit' class='btn btn-primary btn-save oe-pull-toward' name='form_save'" .
"value='" . xla('Save') . "'>" . xlt('Save') . "</button></div>";
echo "<div class='oe-pull-away oe-margin-t-10' style=''>" . xlt($grpname) . " &nbsp;<a href='#' class='text-dark text-decoration-none fa fa-lg fa-arrow-circle-up oe-help-redirect scroll' aria-hidden='true'></a></div><div class='clearfix'></div></div>";
echo " </div>\n";
Expand Down

0 comments on commit 51f155b

Please sign in to comment.