mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
108 lines
6.0 KiB
Twig
108 lines
6.0 KiB
Twig
{% extends "./layout/default" %}
|
|
|
|
{% block breadcrumbs %}
|
|
{{ Breadcrumbs.render }}
|
|
{% endblock %}
|
|
{% block content %}
|
|
<div class="row">
|
|
<form class="form-horizontal" action="{{ route('import.job.configuration.post',[importJob.key]) }}" method="post">
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
<div class="box box-default">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ trans('import.job_config_spectre_apply_rules') }}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<p>
|
|
{{ trans('import.job_config_spectre_apply_rules_text') }}
|
|
</p>
|
|
{{ ExpandedForm.checkbox('apply_rules', 1, true) }}
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
<div class="box box-default">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ trans('import.job_config_spectre_accounts_title') }}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<div class="row">
|
|
<div class="col-lg-8">
|
|
<p>
|
|
{{ trans('import.job_config_spectre_accounts_text', {count: data.accounts|length,country: data.login.getCountryCode(),name: data.login.getProviderName()}) }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ trans('list.account_on_spectre') }}</th>
|
|
<th>{{ trans('list.account') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for account in data.accounts %}
|
|
<tr>
|
|
<td>
|
|
{{ account.getNature()|capitalize }} "<strong>{{ account.getName() }}</strong>"
|
|
({{ formatAmountBySymbol(account.getBalance(), account.getCurrencyCode()~' ') }})<br/>
|
|
{% set currentIban = '' %}
|
|
{% for name, value in account.getExtra() %}
|
|
{% if not value is iterable and name != 'sort_code' and name !='current_date' and name != 'available_amount' and name !='current_time' and name != 'last_posted_transaction_id' %}
|
|
{{ trans('import.spectre_extra_key_'~name) }}: {{ value }}<br/>
|
|
{% endif %}
|
|
{% if name == 'available_amount' %}
|
|
{{ trans('import.spectre_extra_key_'~name) }}: {{ formatAmountBySymbol(value, account.getCurrencyCode()~' ') }}
|
|
{% endif %}
|
|
{% if name == 'iban' %}
|
|
{% set currentIban = value %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</td>
|
|
<td>
|
|
<select class="form-control" name="account_mapping[{{ account.getId() }}]">
|
|
<option value="0" label="{{ trans('import.spectre_do_not_import') }}">
|
|
{{ trans('import.spectre_do_not_import') }}
|
|
</option>
|
|
{% for ffId, ffAccount in data.ff_accounts %}
|
|
{% if ffAccount.code == account.getCurrencyCode() %}
|
|
<option value="{{ ffId }}"{% if currentIban != '' and currentIban == ffAccount.iban %} selected{% endif %}>
|
|
{{ ffAccount.name }}{% if ffAccount.iban !='' %} ({{ ffAccount.iban }}){% endif %}
|
|
</option>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="box-footer">
|
|
<button type="submit" class="btn pull-right btn-success">
|
|
{{ ('submit')|_ }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|
|
{% block scripts %}
|
|
{% endblock %}
|
|
{% block styles %}
|
|
{% endblock %}
|