You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

97 lines
5.4 KiB

{% extends "./layout/default" %}
{% block content %}
<div class="container">
<div class="row mt-4">
<div class="col-lg-10 offset-lg-1">
<h1>Firefly III Data Import Tool, v{{ version }}</h1>
</div>
</div>
<div class="row mt-3">
<div class="col-lg-10 offset-lg-1">
<div class="card">
<div class="card-header">
Authenticate with Firefly III
</div>
<div class="card-body">
<p class="card-text">
Welcome! This tool will help you import data into Firefly III.
</p>
<p>
This tool is sparsely documented, you can find all the details you need
in the <a href="https://docs.firefly-iii.org/data-importer/" target="_blank">
documentation</a>. Any links you see to the docs will open in a new window or tab.
</p>
<p class="card-text">
{% if '' != baseURL %}
In order to get access to your Firefly III installation at <a
href="{{ baseURL }}">{{ baseURL }}</a>, you will need to submit a valid Client ID. This is a number.
{% else %}
In order to get access to your Firefly III installation, you will need to submit a valid Client ID. This is a number.
{% endif %}
</p>
<p>
{% if '' != baseURL %}
If you don't have one, you must create <a href="{{ baseURL }}/profile">in your
profile</a> under "OAuth". Make sure you
<em>remove</em> the checkbox under "Confidential".
{% else %}
If you don't have one, you must create in your profile under "OAuth". Make sure you <em>remove</em> the checkbox under "Confidential".
{% endif %}
</p>
<p>
The callback URL for this installation is<br> <code>{{ route('token.callback') }}</code>
</p>
{% for error in errors.all %}
<p class="text-danger">{{ error }}</p>
{% endfor %}
<form action="{{ route('token.submitClientId') }}" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
{% if '' == baseURL %}
<div class="form-group mb-3">
<label for="input_base_url">Firefly III URL</label>
<input type="url" placeholder="https://" value="{{ baseURL }}" class="form-control"
id="input_base_url" autocomplete="off" name="base_url">
{% if errors.has('base_url') %}<span
class="text-danger">{{ errors.first('base_url') }}</span>{% endif %}
{% if Session.has('secure_url') %}<span
class="text-danger">{{ Session.get('secure_url') }}</span>{% endif %}
</div>
{% endif %}
<div class="form-group mb-3">
<label for="input_client_id">Client ID</label>
<input type="number" step="1" min="1" class="form-control" id="input_client_id"
autocomplete="off" name="client_id" value="{{ clientId }}">
{% if errors.has('client_id') %}<span
class="text-danger">{{ errors.first('client_id') }}</span>{% endif %}
</div>
<input type="submit" name="submit" value="Submit" class="float-end btn btn-success"/>
</form>
</div>
</div>
<div class="card mt-3">
<div class="card-body">
<p>
<a class="btn btn-danger btn-sm" href="{{ route('flush') }}" data-bs-toggle="tooltip"
data-bs-placement="top" title="This button resets your progress">Start over</a>
<a class="btn btn-danger btn-sm" href="{{ route('reset') }}" data-bs-toggle="tooltip"
data-bs-placement="top" title="This button tries to connect to Firefly III again">Reauthenticate</a>
</p>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block scripts %}
<script type="text/javascript">
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl)
})
</script>
{% endblock %}