Cost units can be edited

This commit is contained in:
2026-02-08 20:06:38 +01:00
parent 6fc65e195c
commit bccfc11687
53 changed files with 2021 additions and 29 deletions

View File

@@ -24,7 +24,11 @@ class RegistrationController extends CommonController {
}
$inertiaProvider = new InertiaProvider('UserManagement/Registration', ['errors' => $errors, 'appName' => app('tenant')->name]);
$inertiaProvider = new InertiaProvider('UserManagement/Registration', [
'errors' => $errors,
'appName' => app('tenant')->name,
'tenant' => app('tenant'),
]);
return $inertiaProvider->render();
}

View File

@@ -4,14 +4,12 @@ use App\Domains\UserManagement\Controllers\EmailVerificationController;
use App\Domains\UserManagement\Controllers\RegistrationController;
use App\Domains\UserManagement\Controllers\ResetPasswordController;
use App\Middleware\IdentifyTenant;
use App\Providers\GlobalDataProvider;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
Route::prefix('v1')
->group(function () {
Route::middleware(IdentifyTenant::class)->group(function () {
Route::post('/register', [RegistrationController::class, 'doRegistration']);
Route::post('/register/confirmEmail', [EmailVerificationController::class, 'doVerification']);
Route::post('/reset-password', [ResetPasswordController::class, 'doResetPassword']);
});
});

View File

@@ -98,7 +98,7 @@ const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute
</script>
<template>
<AppLayout title='Registrieren' :user="props.user" :navbar="props.navbar" :tenant="props.tenant" :currentPath="props.currentPath">
<AppLayout title='Registrieren'>
<form method="POST" action="/register" @submit.prevent="submit">
<input type="hidden" name="_token" :value="csrfToken" />
<shadowed-box style="width: 75%; margin: 150px auto; padding: 20px;">