Skip to content

Commit

Permalink
update onboarding flow
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Feb 27, 2024
1 parent 7d2dae2 commit 1b070c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
12 changes: 6 additions & 6 deletions app/Domain/Help/Services/ProjectDefinitionStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ public function handle($params): bool
$description = "";

if (isset($params['accomplish'])) {
$description .= __('label.what_are_you_trying_to_accomplish');
$description .= "<br />".$params['accomplish'];
$description .= "<h3>" . __('label.what_are_you_trying_to_accomplish') . "</h3>";
$description .= "" . $params['accomplish'];
}

if (isset($params['worldview'])) {
$description .= __('label.how_does_the_world_look_like');
$description .= "<br />".$params['worldview'];
$description .= "<br /><h3>" . __('label.how_does_the_world_look_like') . "</h3>";
$description .= "" . $params['worldview'];
}

if (isset($params['whyImportant'])) {
$description .= __('label.why_is_this_important');
$description .= "<br />".$params['whyImportant'];
$description .= "<br /><h3>" . __('label.why_is_this_important') . "</h3>";
$description .= "" . $params['whyImportant'];
}

$this->projectService->patch($_SESSION['currentProject'], array("details" => $description));
Expand Down
1 change: 0 additions & 1 deletion app/Domain/Help/Templates/projectDefinitionStep.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
</div>
<div class="row">
<div class="col-md-12 tw-text-right">
<a href="javascript:void(0);" class="btn btn-secondary" onclick="jQuery.nmTop().close();">{{ __('links.skip_for_now') }}</a>
<input type="submit" value="{{ __('buttons.next') }}" />
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions app/Domain/Help/Templates/projectIntroStep.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div style="max-width:700px;">
<form class="onboardingModal" method="post" action="{{ BASE_URL }}/help/firstLogin?step={{ $nextStep }}">
<form class="onboardingModal" method="post" id="projectTitleOnboarding" action="{{ BASE_URL }}/help/firstLogin?step={{ $nextStep }}">
<input type="hidden" name="currentStep" value="{{ $currentStep }}" />
<div class="row">
<div class="col-md-8">
Expand All @@ -18,7 +18,6 @@
</div>
<div class="row">
<div class="col-md-12 tw-text-right">
<a href="javascript:void(0);" class="btn btn-secondary" onclick="skipOnboarding();">{{ __('links.skip_for_now') }}</a>
<input type="submit" value="{{ __('buttons.next') }}" />
</div>
</div>
Expand Down

0 comments on commit 1b070c2

Please sign in to comment.