OTC-Overlay im Home
This commit is contained in:
@@ -26,3 +26,59 @@
|
||||
.sg-left-navigation-pattern__group-card--content {
|
||||
align-content: flex-start;
|
||||
}
|
||||
|
||||
body.sg-otc-order-overlay-open {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sg-otc-order-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--spacing-large);
|
||||
background: rgba(15, 23, 42, 0.58);
|
||||
z-index: 1200;
|
||||
}
|
||||
|
||||
.sg-otc-order-overlay[data-open="true"] {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.sg-otc-order-overlay__panel {
|
||||
width: min(960px, 100%);
|
||||
max-height: calc(100vh - (2 * var(--spacing-large)));
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.sg-otc-order-overlay__title {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sg-otc-order-overlay__close {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.sg-otc-order-form__status {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sg-otc-order-form__status--error {
|
||||
color: var(--color-signal-red);
|
||||
}
|
||||
|
||||
.sg-otc-order-overlay .sg-form-sections-card__field-group {
|
||||
gap: var(--spacing-small);
|
||||
}
|
||||
|
||||
.sg-otc-order-overlay .sg-form-sections-card__field-group > .sg-label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sg-otc-order-overlay .sg-form-sections-card__field-group > .sg-input-single-line,
|
||||
.sg-otc-order-overlay .sg-form-sections-card__field-group > .sg-input-single-line-wrap,
|
||||
.sg-otc-order-overlay .sg-form-sections-card__field-group > .sg-input-multi-line {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
+3
-1
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
require_once __DIR__ . '/../modules/shared/auth/service.php';
|
||||
require_once __DIR__ . '/../modules/shared/auth/ui/login.php';
|
||||
require_once __DIR__ . '/../modules/shared/auth/ui/home.php';
|
||||
require_once __DIR__ . '/../modules/erp/lager/service.php';
|
||||
|
||||
$env = expand_env_values(parse_env_file(__DIR__ . '/../.env'));
|
||||
$pdo = connect_database($env);
|
||||
@@ -43,7 +44,8 @@ if (($_SERVER['REQUEST_METHOD'] ?? 'GET') === 'POST') {
|
||||
|
||||
$currentUser = auth_current_user($pdo);
|
||||
if ($currentUser !== null) {
|
||||
render_auth_home_page($currentUser);
|
||||
$otcProducts = get_otc_order_form_products($pdo);
|
||||
render_auth_home_page($currentUser, $otcProducts);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user