Skip to content

Commit

Permalink
Made small styling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterZydra committed Feb 21, 2024
1 parent 699771b commit eaf8016
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
1 change: 1 addition & 0 deletions public/css/bioStyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ header {
}

header h1 {
margin-top: 5px;
margin-bottom: 5px;
}

Expand Down
19 changes: 4 additions & 15 deletions resources/Views/Components/layout/header.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php use Framework\Authentication\Auth;
<?php

use Framework\Authentication\Auth;
use Framework\Message\Message;

?>
?>
<!DOCTYPE html>
<html>

Expand All @@ -15,20 +17,7 @@

<body>
<header>
<!-- <php
// Build string for organisation in header
$organisation = "";
// Check if file exists to prevent warnings
if (file_exists('config/CommonConfig.php')) {
include_once 'config/CommonConfig.php';
$organisation .= " - " . $common['organisation'];
}
?> -->
<!-- <php echo $organisation; ?> -->
<h1 style="cursor: pointer"><a href="/">Bio-Manager</a></h1>
<div>
<a href="/"><?= __('Home') ?></a>
</div>
<div>
<?php if (!Auth::isLoggedIn()) { ?>
<button style="cursor: pointer" onclick="window.location.href='login'"><?= __('Login') ?></button>
Expand Down
17 changes: 6 additions & 11 deletions resources/Views/auth/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,26 +114,21 @@
<a href="user/create"><?= __('AddUser') ?></a>
</div>

<div class="box">
<strong><?= __('Setting') ?></strong><br>
<a href="setting"><?= __('ShowAllSettings') ?></a>
<?php if (Auth::hasRole('Developer')) { ?>
<br><a href="setting/create"><?= __('AddSetting') ?></a>
<?php } ?>
</div>

<div class="box">
<strong><?= __('SystemSettings') ?></strong><br>
<a href="editImprintSettings"><?= __('EditImprint') ?></a><br>
<a href="editInvoiceSettings"><?= __('EditInvoiceData') ?></a>
</div>

<div class="box">
<strong>Grundeinstellungen</strong><br>
<a href="editCommonConfig.php">Allgemeine Einstellungen</a><br>
<a href="editDBConnection.php">Datenbankverbindung bearbeiten</a>
<strong><?= __('Setting') ?></strong><br>
<a href="setting"><?= __('ShowAllSettings') ?></a>
<?php if (Auth::hasRole('Developer')) { ?>
<br><a href="setting/create"><?= __('AddSetting') ?></a>
<?php } ?>
</div>


<?php
}
if (Auth::hasRole('Developer')) {
Expand Down

0 comments on commit eaf8016

Please sign in to comment.