1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

UI tweaks and hide on hosted

This commit is contained in:
Hillel Coren 2020-03-12 09:42:31 +02:00
parent f6fced6b82
commit c3a0c2a465
6 changed files with 19 additions and 17 deletions

View File

@ -496,6 +496,11 @@ class User extends Authenticatable
public function eligibleForMigration()
{
// Not ready to show to hosted users
if (Utils::isNinjaProd()) {
return false;
}
return is_null($this->public_id) || $this->public_id == 0;
}
}

View File

@ -3270,7 +3270,9 @@ $LANG = array(
'long_press_multiselect' => 'Long-press Multiselect',
'migrate_to_next_version' => 'Migrate to the next version of Invoice Ninja',
'migrate_intro_text' => 'We\'ve been working on next version of Invoice Ninja. Click the button bellow to start the migration.',
'start_the_migration' => 'Start the migration',
'start_migration' => 'Start Migration',
'auth' => 'Auth',
'endpoint' => 'Endpont',
'migration' => 'Migration',
'welcome_to_the_new_version' => 'Welcome to the new version of Invoice Ninja',
'download_data' => 'Press button below to download the data.',

View File

@ -244,17 +244,12 @@
<h3 class="panel-title">{!! trans('texts.migrate_to_next_version') !!}</h3>
</div>
<div class="panel-body">
<div class="col-lg-8 col-sm-8">
<div clasS="form-group">
{!! trans('texts.migrate_intro_text') !!}
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<div class="form-group">
<label for="modules" class="control-label col-lg-4 col-sm-4"></label>
<div class="col-lg-8 col-sm-8">
<div class="help-block">{{ trans('texts.migrate_intro_text')}}</div><br/>
<a class="btn btn-primary btn-lg"
href="/migration/start">{!! trans('texts.start_the_migration') !!}</a>
href="/migration/start">{!! trans('texts.start_migration') !!}</a>
</div>
</div>
</div>

View File

@ -11,7 +11,7 @@
<h3 class="panel-title">{!! trans('texts.welcome_to_the_new_version') !!}</h3>
</div>
<div class="panel-body">
<h4>Let's continue with authentication.</h4>
<h4>Let's continue with authentication.</h4><br/>
<form action="/migration/auth" method="post" id="auth-form">
{{ csrf_field() }}
<div class="form-group">
@ -29,4 +29,4 @@
<button onclick="document.getElementById('auth-form').submit();" class="btn btn-primary">{!! trans('texts.continue') !!}</button>
</div>
</div>
@stop
@stop

View File

@ -9,7 +9,7 @@
<h3 class="panel-title">{!! trans('texts.welcome_to_the_new_version') !!}</h3>
</div>
<div class="panel-body">
<h4>We need to know the link of your application.</h4>
<h4>We need to know the link of your application.</h4><br/>
<form action="/migration/endpoint" method="post" id="input-endpoint-form">
{{ csrf_field() }}
<div class="form-check">
@ -25,4 +25,4 @@
</div>
</div>
@stop
@stop

View File

@ -9,7 +9,7 @@
<h3 class="panel-title">{!! trans('texts.welcome_to_the_new_version') !!}</h3>
</div>
<div class="panel-body">
<h4>In order to start the migration, we need to know where do you want to migrate.</h4>
<h4>In order to start the migration, we need to know where do you want to migrate.</h4><br/>
<form action="/migration/type" method="post" id="select-type-form">
{{ csrf_field() }}
<div class="form-check">
@ -34,4 +34,4 @@
</div>
</div>
@stop
@stop