1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-16 08:02:40 +01:00
invoiceninja/resources/views/setup.blade.php

93 lines
3.7 KiB
PHP
Raw Normal View History

2015-03-16 22:45:25 +01:00
<!DOCTYPE html>
2015-06-16 00:15:09 +02:00
<html lang="{{App::getLocale()}}">
2015-03-16 22:45:25 +01:00
<head>
<title>Invoice Ninja | Setup</title>
<meta charset="utf-8">
2015-03-16 22:45:25 +01:00
<meta name="csrf-token" content="<?= csrf_token() ?>">
2016-01-31 20:36:50 +01:00
<script src="{{ asset('built.js') }}?no_cache={{ NINJA_VERSION }}" type="text/javascript"></script>
2016-07-21 14:35:23 +02:00
<link href="{{ asset('css/built.public.css') }}?no_cache={{ NINJA_VERSION }}" rel="stylesheet" type="text/css"/>
<link href="{{ asset('css/built.css') }}?no_cache={{ NINJA_VERSION }}" rel="stylesheet" type="text/css"/>
2015-08-14 14:04:33 +02:00
<link href="{{ asset('favicon.png?test') }}" rel="shortcut icon">
2015-05-08 10:21:29 +02:00
<style type="text/css">
body {
2015-06-20 19:40:50 +02:00
background-color: #FEFEFE;
2015-05-08 10:21:29 +02:00
}
</style>
2015-03-16 22:45:25 +01:00
</head>
<body>
<div class="container">
&nbsp;
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="jumbotron">
<h2>Invoice Ninja Setup</h2>
2017-11-15 10:54:23 +01:00
@if (version_compare(phpversion(), '7.0.0', '<'))
<div class="alert alert-warning">Warning: The application requires PHP >= 7.0.0</div>
2015-03-16 22:45:25 +01:00
@endif
2015-08-14 14:04:33 +02:00
@if (!function_exists('proc_open'))
<div class="alert alert-warning">Warning: <a href="http://php.net/manual/en/function.proc-open.php" target="_blank">proc_open</a> must be enabled.</div>
2015-03-16 22:45:25 +01:00
@endif
2015-05-08 10:21:29 +02:00
@if (!@fopen(base_path()."/.env", 'a'))
2015-11-04 14:57:59 +01:00
<div class="alert alert-warning">Warning: Permission denied to write .env config file
2018-01-25 10:06:14 +01:00
<pre>sudo chown www-data:www-data {{ base_path('.env') }}</pre>
2015-03-25 20:56:31 +01:00
</div>
@endif
2018-01-25 10:06:14 +01:00
If you need help you can either post to our <a href="https://www.invoiceninja.com/forums/forum/support/" target="_blank">support forum</a> or email us at <a href="mailto:contact@invoiceninja.com" target="_blank">contact@invoiceninja.com</a>.
@if (! env('PRECONFIGURED_INSTALL'))
2015-03-16 22:45:25 +01:00
<p>
<pre>-- Commands to create a MySQL database and user
CREATE SCHEMA `ninja` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'ninja'@'localhost' IDENTIFIED BY 'ninja';
GRANT ALL PRIVILEGES ON `ninja`.* TO 'ninja'@'localhost';
FLUSH PRIVILEGES;</pre>
</p>
2018-01-25 10:06:14 +01:00
@endif
2015-03-16 22:45:25 +01:00
</div>
2015-03-17 02:30:56 +01:00
{!! Former::open()->rules([
2015-03-16 22:45:25 +01:00
'app[url]' => 'required',
'database[type][host]' => 'required',
'database[type][database]' => 'required',
'database[type][username]' => 'required',
'database[type][password]' => 'required',
'first_name' => 'required',
'last_name' => 'required',
'email' => 'required|email',
'password' => 'required',
2018-05-09 11:25:41 +02:00
'terms_checkbox' => 'required',
'privacy_checkbox' => 'required'
2015-03-17 02:30:56 +01:00
]) !!}
2015-03-16 22:45:25 +01:00
2018-01-25 10:06:14 +01:00
<div style="display:{{ env('PRECONFIGURED_INSTALL') ? 'none' : 'block' }}">
@include('partials.system_settings')
</div>
2015-03-16 22:45:25 +01:00
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">User Details</h3>
</div>
<div class="panel-body">
2015-03-17 02:30:56 +01:00
{!! Former::text('first_name') !!}
{!! Former::text('last_name') !!}
{!! Former::text('email') !!}
{!! Former::password('password') !!}
2015-03-16 22:45:25 +01:00
</div>
</div>
2015-07-07 22:08:16 +02:00
2018-05-09 11:25:41 +02:00
{!! Former::checkbox('terms_checkbox')->label(' ')->text(trans('texts.agree_to_terms', ['terms' => '<a href="'.config('ninja.terms_of_service_url.selfhost').'" target="_blank">'.trans('texts.terms_of_service').'</a>']))->value(1) !!}
{!! Former::checkbox('privacy_checkbox')->label(' ')->text(trans('texts.agree_to_terms', ['terms' => '<a href="'.config('ninja.privacy_policy_url.selfhost').'" target="_blank">'.trans('texts.privacy_policy').'</a>']))->value(1) !!}
{!! Former::actions( Button::primary('Submit')->large()->submit() ) !!}
2015-03-17 02:30:56 +01:00
{!! Former::close() !!}
2015-03-16 22:45:25 +01:00
</div>
</body>
</html>