mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
Improve setup page
This commit is contained in:
parent
6e4e70c931
commit
7fce0335d9
@ -3219,4 +3219,6 @@ return [
|
||||
'credit_card_invalid' => 'Provided credit card number is not valid.',
|
||||
'month_invalid' => 'Provided month is not valid.',
|
||||
'year_invalid' => 'Provided year is not valid.',
|
||||
|
||||
'if_you_need_help' => 'If you need help you can either post to our',
|
||||
];
|
||||
|
@ -16,7 +16,7 @@
|
||||
<dd class="text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
||||
@foreach($check['extensions'] as $extension)
|
||||
<span class="alert py-1 {{ $extension[key($extension)] == true ? 'alert-success' : 'alert-failure' }} block w-full">
|
||||
{{ key($extension) }}
|
||||
{{ $extension[key($extension)] == true ? '✔' : '❌' }} {{ key($extension) }}
|
||||
</span>
|
||||
@endforeach
|
||||
</dd>
|
||||
@ -28,14 +28,14 @@
|
||||
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
||||
@if($check['php_version']['is_okay'])
|
||||
<span class="alert alert-success block">
|
||||
{{ strtoupper(ctrans('texts.ok')) }}!
|
||||
✔ {{ strtoupper(ctrans('texts.ok')) }}
|
||||
</span>
|
||||
@else
|
||||
<span class="alert block">
|
||||
{{ ctrans('texts.minumum_php_version') }}: {{ $check['php_version']['minimum_php_version'] }}
|
||||
</span>
|
||||
<span class="alert alert-failure block">
|
||||
{{ ctrans('texts.current') }}: {{ $check['php_version']['current_php_version'] }}
|
||||
❌ {{ ctrans('texts.current') }}: {{ $check['php_version']['current_php_version'] }}
|
||||
</span>
|
||||
@endif
|
||||
</dd>
|
||||
@ -47,11 +47,11 @@
|
||||
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
||||
@if($check['env_writable'])
|
||||
<span class="alert alert-success block">
|
||||
{{ strtoupper(ctrans('texts.ok')) }}!
|
||||
✔ {{ strtoupper(ctrans('texts.ok')) }}
|
||||
</span>
|
||||
@else
|
||||
<span class="alert alert-failure block">
|
||||
{{ ctrans('texts.env_not_writable') }}
|
||||
❌ {{ ctrans('texts.env_not_writable') }}
|
||||
</span>
|
||||
@endif
|
||||
</dd>
|
||||
|
@ -14,9 +14,8 @@
|
||||
<div class="grid grid-cols-12 px-6">
|
||||
<div class="col-span-12 md:col-start-4 md:col-span-6 mt-4 md:mt-10">
|
||||
<h1 class="text-center text-2xl font-semibold">Invoice Ninja Setup</h1>
|
||||
<p class="text-sm text-center">If you need help you can either post to our
|
||||
<a href="https://www.invoiceninja.com/forums/forum/support/" class="button-link">support forum</a>
|
||||
or email us at <a href="mailto:contact@invoiceninja.com" class="button-link">contact@invoiceninja.com</a>.
|
||||
<p class="text-sm text-center">{{ ctrans('texts.if_you_need_help') }}
|
||||
<a href="https://www.invoiceninja.com/forums/forum/support/" class="button-link">{{ ctrans('texts.support_forum') }}</a>
|
||||
</p>
|
||||
|
||||
@if($errors->any())
|
||||
@ -31,7 +30,7 @@
|
||||
|
||||
@if(session()->has('setup_error'))
|
||||
<div class="alert alert-failure mt-4">
|
||||
<span class="font-bold">Oops, something wen't wrong:</span>
|
||||
<span class="font-bold">{{ ctrans('texts.error_title') }}:</span>
|
||||
<pre class="bg-white p-3 mt-2 rounded overflow-y-scroll">{{ session('setup_error') }}</pre>
|
||||
</div>
|
||||
@endif
|
||||
@ -49,13 +48,13 @@
|
||||
<div class="flex flex-col">
|
||||
<div class="mt-4 text-sm">
|
||||
<input type="checkbox" class="form-checkbox mr-2" name="terms_of_service" required>
|
||||
<span>I agree to
|
||||
<span>{{ ctrans('texts.i_agree') }}
|
||||
<a class="button-link" href="https://www.invoiceninja.com/self-hosting-terms-service/">{{ ctrans('texts.terms_of_service') }}</a>
|
||||
</span>
|
||||
</div>
|
||||
<div class="mt-2 text-sm">
|
||||
<input type="checkbox" class="form-checkbox mr-2" name="privacy_policy" required>
|
||||
<span>I agree to
|
||||
<span>{{ ctrans('texts.i_agree') }}
|
||||
<a class="button-link" href="https://www.invoiceninja.com/self-hosting-privacy-data-control/">{{ ctrans('texts.privacy_policy') }}</a>
|
||||
</span>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user