Merge pull request #4130 from beganovich/fix-migration-urls

(v4) Fixed migration urls
This commit is contained in:
David Bomba 2020-10-05 19:46:57 +11:00 committed by GitHub
commit d79c936875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 12 deletions

View File

@ -3536,7 +3536,7 @@ $LANG = array(
'email_subject_payment_partial' => 'Email Partial Payment Subject', 'email_subject_payment_partial' => 'Email Partial Payment Subject',
'is_approved' => 'Is Approved', 'is_approved' => 'Is Approved',
'migration_went_wrong' => 'Oops, something went wrong! Make sure you did proper setup with V2 of Invoice Ninja, before starting migration.', 'migration_went_wrong' => 'Oops, something went wrong! Make sure you did proper setup with V2 of Invoice Ninja, before starting migration.',
'cross_migration_message' => 'Cross account migration is not allowed. Please read more about it here: <a href="https://invoiceninja.github.io/cross-site-migration.html">https://invoiceninja.github.io/cross-site-migration.html</a>', 'cross_migration_message' => 'Cross account migration is not allowed. Make sure e-mail address is same on V4 and V5.',
'email_credit' => 'Email Credit', 'email_credit' => 'Email Credit',
'client_email_not_set' => 'Client does not have an email address set', 'client_email_not_set' => 'Client does not have an email address set',
'ledger' => 'Ledger', 'ledger' => 'Ledger',

View File

@ -12,7 +12,7 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<h4>Let's continue with authentication.</h4><br/> <h4>Let's continue with authentication.</h4><br/>
<form action="/migration/auth" method="post" id="auth-form"> <form action="{{ url('/migration/auth') }}" method="post" id="auth-form">
{{ csrf_field() }} {{ csrf_field() }}
<div class="form-group"> <div class="form-group">
<label for="email">E-mail address</label> <label for="email">E-mail address</label>
@ -26,7 +26,7 @@
</form> </form>
</div> </div>
<div class="panel-footer text-right"> <div class="panel-footer text-right">
<button onclick="document.getElementById('auth-form').submit();" class="btn btn-primary">{!! trans('texts.continue') !!}</button> <button form="auth-form" class="btn btn-primary">{!! trans('texts.continue') !!}</button>
</div> </div>
</div> </div>
@stop @stop

View File

@ -12,7 +12,7 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<h4>Awesome! Please select the company you would like to apply migration.</h4> <h4>Awesome! Please select the company you would like to apply migration.</h4>
<form action="/migration/companies" method="post" id="auth-form"> <form action="{{ url('/migration/companies') }}" method="post" id="auth-form">
{{ csrf_field() }} {{ csrf_field() }}
<input type="hidden" name="account_key" value="{{ auth()->user()->account->account_key }}"> <input type="hidden" name="account_key" value="{{ auth()->user()->account->account_key }}">
@ -32,7 +32,7 @@
</form> </form>
</div> </div>
<div class="panel-footer text-right"> <div class="panel-footer text-right">
<button onclick="document.getElementById('auth-form').submit();" class="btn btn-primary">{!! trans('texts.continue') !!}</button> <button form="auth-form" class="btn btn-primary">{!! trans('texts.continue') !!}</button>
</div> </div>
</div> </div>
@stop @stop

View File

@ -10,13 +10,13 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<h4>{!! trans('texts.download_data') !!}</h4> <h4>{!! trans('texts.download_data') !!}</h4>
<form action="/migration/download" method="post"> <form action="{{ url('/migration/download') }}" method="post">
{!! csrf_field() !!} {!! csrf_field() !!}
<button class="btn btn-primary">Download</button> <button class="btn btn-primary">{!! trans('texts.download') !!}</button>
</form> </form>
</div> </div>
<div class="panel-footer text-right"> <div class="panel-footer text-right">
<a href="/migration/import" class="btn btn-primary">{!! trans('texts.continue') !!}</a> <a href="{{ url('/migration/import') }}" class="btn btn-primary">{!! trans('texts.continue') !!}</a>
</div> </div>
</div> </div>
@stop @stop

View File

@ -12,7 +12,7 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<h4>We need to know the link of your application.</h4><br/> <h4>We need to know the link of your application.</h4><br/>
<form action="/migration/endpoint" method="post" id="input-endpoint-form"> <form action="{{ url('/migration/endpoint') }}" method="post" id="input-endpoint-form">
{{ csrf_field() }} {{ csrf_field() }}
<div class="form-check"> <div class="form-check">
<div class="form-group"> <div class="form-group">
@ -23,7 +23,7 @@
</form> </form>
</div> </div>
<div class="panel-footer text-right"> <div class="panel-footer text-right">
<button onclick="document.getElementById('input-endpoint-form').submit();" class="btn btn-primary">{!! trans('texts.continue') !!}</button> <button form="input-endpoint-form" class="btn btn-primary">{!! trans('texts.continue') !!}</button>
</div> </div>
</div> </div>

View File

@ -10,7 +10,7 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<h4>In order to start the migration, we need to know where do you want to migrate.</h4><br/> <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"> <form action="{{ url('migration/type') }}" method="post" id="select-type-form">
{{ csrf_field() }} {{ csrf_field() }}
<!-- <div class="form-check"> <!-- <div class="form-check">
<input class="form-check-input" type="radio" name="option" id="option1" value="0" checked> <input class="form-check-input" type="radio" name="option" id="option1" value="0" checked>
@ -30,7 +30,7 @@
</form> </form>
</div> </div>
<div class="panel-footer text-right"> <div class="panel-footer text-right">
<button onclick="document.getElementById('select-type-form').submit();" class="btn btn-primary">{!! trans('texts.continue') !!}</button> <button form="select-type-form" class="btn btn-primary">{!! trans('texts.continue') !!}</button>
</div> </div>
</div> </div>