first commit
This commit is contained in:
37
resources/views/install/database/create.blade.php
Normal file
37
resources/views/install/database/create.blade.php
Normal file
@@ -0,0 +1,37 @@
|
||||
@extends('layouts.install')
|
||||
|
||||
@section('header', trans('install.steps.database'))
|
||||
|
||||
@section('content')
|
||||
{{ Form::textGroup('hostname', trans('install.database.hostname'), 'server', ['required' => 'required'], old('hostname', 'localhost'), 'col-md-12') }}
|
||||
|
||||
{{ Form::textGroup('username', trans('install.database.username'), 'user', ['required' => 'required'], old('username'), 'col-md-12') }}
|
||||
|
||||
{{ Form::passwordGroup('password', trans('install.database.password'), 'key', [], old('password'), 'col-md-12') }}
|
||||
|
||||
{{ Form::textGroup('database', trans('install.database.name'), 'database', ['required' => 'required'], old('database'), 'col-md-12') }}
|
||||
@endsection
|
||||
|
||||
@section('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#next-button').attr('disabled', true);
|
||||
|
||||
$('#hostname, #username, #database').keyup(function() {
|
||||
inputCheck();
|
||||
});
|
||||
});
|
||||
|
||||
function inputCheck() {
|
||||
hostname = $('#hostname').val();
|
||||
username = $('#username').val();
|
||||
database = $('#database').val();
|
||||
|
||||
if (hostname != '' && username != '' && database != '') {
|
||||
$('#next-button').attr('disabled', false);
|
||||
} else {
|
||||
$('#next-button').attr('disabled', true);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
15
resources/views/install/language/create.blade.php
Normal file
15
resources/views/install/language/create.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@extends('layouts.install')
|
||||
|
||||
@section('header', trans('install.steps.language'))
|
||||
|
||||
@section('content')
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<select name="lang" id="lang" size="17" class="form-control">
|
||||
@foreach (language()->allowed() as $code => $name)
|
||||
<option value="{{ $code }}" @if ($code == 'en-GB') {{ 'selected="selected"' }} @endif>{{ $name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
3
resources/views/install/requirements/show.blade.php
Normal file
3
resources/views/install/requirements/show.blade.php
Normal file
@@ -0,0 +1,3 @@
|
||||
@extends('layouts.install')
|
||||
|
||||
@section('header', trans('install.steps.requirements'))
|
||||
38
resources/views/install/settings/create.blade.php
Normal file
38
resources/views/install/settings/create.blade.php
Normal file
@@ -0,0 +1,38 @@
|
||||
@extends('layouts.install')
|
||||
|
||||
@section('header', trans('install.steps.settings'))
|
||||
|
||||
@section('content')
|
||||
{{ Form::textGroup('company_name', trans('install.settings.company_name'), 'id-card-o', ['required' => 'required'], old('company_name'), 'col-md-12') }}
|
||||
|
||||
{{ Form::textGroup('company_email', trans('install.settings.company_email'), 'envelope', ['required' => 'required'], old('company_email'), 'col-md-12') }}
|
||||
|
||||
{{ Form::textGroup('user_email', trans('install.settings.admin_email'), 'envelope', ['required' => 'required'], old('user_email'), 'col-md-12') }}
|
||||
|
||||
{{ Form::passwordGroup('user_password', trans('install.settings.admin_password'), 'key', ['required' => 'required'], old('user_password'), 'col-md-12') }}
|
||||
@endsection
|
||||
|
||||
@section('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#next-button').attr('disabled', true);
|
||||
|
||||
$('#company_name, #company_email, #user_email, #user_password').keyup(function() {
|
||||
inputCheck();
|
||||
});
|
||||
});
|
||||
|
||||
function inputCheck() {
|
||||
company_name = $('#company_name').val();
|
||||
company_email = $('#company_email').val();
|
||||
user_email = $('#user_email').val();
|
||||
user_password = $('#user_password').val();
|
||||
|
||||
if (company_name != '' && company_email != '' && user_email != '' && user_password != '') {
|
||||
$('#next-button').attr('disabled', false);
|
||||
} else {
|
||||
$('#next-button').attr('disabled', true);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
68
resources/views/install/updates/index.blade.php
Normal file
68
resources/views/install/updates/index.blade.php
Normal file
@@ -0,0 +1,68 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('title', trans_choice('general.updates', 2))
|
||||
|
||||
@section('content')
|
||||
<!-- Default box -->
|
||||
<div class="box box-success">
|
||||
<div class="box-header with-border">
|
||||
<i class="fa fa-gear"></i>
|
||||
<h3 class="box-title">Akaunting</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="box-body">
|
||||
@if (empty($core))
|
||||
{{ trans('updates.latest_core') }}
|
||||
@else
|
||||
{{ trans('updates.new_core') }}
|
||||
<a href="{{ url('install/updates/update', ['alias' => 'core', 'version' => $core]) }}" data-toggle="tooltip" title="{{ trans('updates.update', ['version' => '1.5.2']) }}" class="btn btn-warning btn-xs"><i class="fa fa-refresh"></i> {{ trans('updates.update', ['version' => $core]) }}</a>
|
||||
<a href="{{ url('install/updates/changelog') }}" data-toggle="tooltip" title="{{ trans('updates.changelog') }}" class="btn btn-default btn-xs popup"><i class="fa fa-exchange"></i> {{ trans('updates.changelog') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
|
||||
<!-- Default box -->
|
||||
<div class="box box-success">
|
||||
<div class="box-header with-border">
|
||||
<i class="fa fa-rocket"></i>
|
||||
<h3 class="box-title">{{ trans_choice('general.modules', 2) }}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="box-body">
|
||||
<div class="table table-responsive">
|
||||
<table class="table table-bordered table-striped table-hover" id="tbl-translations">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-md-4">{{ trans('general.name') }}</th>
|
||||
<th class="col-md-2">{{ trans_choice('general.categories', 1) }}</th>
|
||||
<th class="col-md-2">{{ trans('updates.installed_version') }}</th>
|
||||
<th class="col-md-2">{{ trans('updates.latest_version') }}</th>
|
||||
<th class="col-md-2">{{ trans('general.actions') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($modules as $module)
|
||||
<tr>
|
||||
<td>{{ $module->name }}</td>
|
||||
<td>{{ $module->category }}</td>
|
||||
<td>{{ $module->installed }}</td>
|
||||
<td>{{ $module->latest }}</td>
|
||||
<td>
|
||||
<a href="{{ url('install/updates/update/' . $module->alias . '/' . $module->latest) }}" class="btn btn-warning btn-xs"><i class="fa fa-refresh" aria-hidden="true"></i> {{ trans_choice('general.updates', 1) }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
@endsection
|
||||
Reference in New Issue
Block a user