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

86 lines
3.3 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">
<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>
<link href="{{ asset('css/built.public.css') }}?no_cache={{ NINJA_VERSION }}" rel="stylesheet" type="text/css"/>
2015-06-20 19:40:50 +02:00
<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>
2016-02-28 13:09:42 +01:00
@if (version_compare(phpversion(), '5.5.9', '<'))
<div class="alert alert-warning">Warning: The application requires PHP >= 5.5.9</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
<pre>sudo chown www-data:www-data /path/to/ninja/.env</pre>
2015-03-25 20:56:31 +01:00
</div>
@endif
2016-06-28 20:22:16 +02: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> with the design you\'re using
2015-03-16 22:45:25 +01:00
or email us at <a href="mailto:contact@invoiceninja.com" target="_blank">contact@invoiceninja.com</a>.
<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>
</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',
'terms_checkbox' => 'required'
2015-03-17 02:30:56 +01:00
]) !!}
2015-03-16 22:45:25 +01:00
2015-11-04 14:57:59 +01:00
@include('partials.system_settings')
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
2015-03-17 02:30:56 +01:00
{!! Former::checkbox('terms_checkbox')->label(' ')->text(trans('texts.agree_to_terms', ['terms' => '<a href="'.NINJA_APP_URL.'/terms" target="_blank">'.trans('texts.terms_of_service').'</a>'])) !!}
2015-06-20 19:40:50 +02:00
{!! 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>