Skip to content

Commit

Permalink
fixed the install page text-input
Browse files Browse the repository at this point in the history
  • Loading branch information
muhtasimhafiz committed Sep 26, 2024
1 parent 655a4e2 commit b917a94
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/Core/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function boot(): void
return $frontController->executeAction($controllerParts['class'], $controllerParts['method']);
});

Route::any('{moduleName}', function (IncomingRequest $request, $moduleName, $actionName) use ($frontController) {
Route::any('{moduleName}', function (IncomingRequest $request, $moduleName) use ($frontController) {
$httpMethod = Str::lower($request->getMethod());
$controllerParts = $frontController->getValidControllerCall($moduleName, "index", $httpMethod, "Controllers");
return $frontController->executeAction($controllerParts['class'], $controllerParts['method']);
Expand Down
79 changes: 65 additions & 14 deletions app/Domain/Install/Templates/new.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,71 @@
<?php echo $tpl->displayInlineNotification(); ?>

<form action="{{ BASE_URL }}/install" method="post" class="registrationForm">
<h3 class="subtitle"><?=$tpl->language->__("subtitles.login_info");?></h3>
<input type="email" name="email" class="form-control" placeholder="<?=$tpl->language->__("label.email");?>" value=""/><br />
<input type="password" name="password" class="form-control" placeholder="<?=$tpl->language->__("label.password");?>" />
<br /><br />
<h3 class="subtitle"><?=$tpl->language->__("subtitles.user_info");?></h3>
<x-global::forms.text-input
type="text"
id="projectName"
name="projectname"
value=""
placeholder=""
variant="title"
class="w-full"
/>
@csrf <!-- Include CSRF token for security -->

<h3 class="subtitle">{{ __('subtitles.login_info') }}</h3>

<x-global::forms.text-input
type="email"
name="email"
class="form-control"
:value="old('email')"
caption="{{ __('label.email') }}"
placeholder="{{ __('label.email') }}"
/><br />

<x-global::forms.text-input
type="password"
name="password"
class="form-control"
caption="{{ __('label.password') }}"
placeholder="{{ __('label.password') }}"
/><br /><br />

<h3 class="subtitle">{{ __('subtitles.user_info') }}</h3>

<x-global::forms.text-input
type="text"
name="firstname"
class="form-control"
:value="old('firstname')"
caption="{{ __('label.firstname') }}"
placeholder="{{ __('label.firstname') }}"
/><br />

<x-global::forms.text-input
type="text"
name="lastname"
class="form-control"
:value="old('lastname')"
caption="{{ __('label.lastname') }}"
placeholder="{{ __('label.lastname') }}"
/><br />

<x-global::forms.text-input
type="text"
name="company"
class="form-control"
:value="old('company')"
caption="{{ __('label.company_name') }}"
placeholder="{{ __('label.company_name') }}"
/><br /><br />

<input type="hidden" name="install" value="Install" />

<p>
<x-global::forms.button
type="submit"
name="installAction"
class="btn btn-primary"
:value="__('buttons.install')"
onClick="this.form.submit(); this.disabled=true; this.value='{{ __('buttons.install') }}';"
>
{{ __('buttons.install') }}
</x-global::forms.button>
</p>
</form>

<br />
<br /><br />
<input type="hidden" name="install" value="Install" />
Expand Down

0 comments on commit b917a94

Please sign in to comment.