mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			109 lines
		
	
	
		
			5.9 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
			
		
		
	
	
			109 lines
		
	
	
		
			5.9 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_bunq_apply_rules') }}</h3>
 | |
|                     </div>
 | |
|                     <div class="box-body">
 | |
|                         <div class="row">
 | |
|                             <div class="col-lg-6">
 | |
|                                 <p>
 | |
|                                     {{ trans('import.job_config_bunq_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_bunq_accounts_title') }}</h3>
 | |
|                     </div>
 | |
|                     <div class="box-body">
 | |
|                         <div class="row">
 | |
|                             <div class="col-lg-8">
 | |
|                                 <p>
 | |
|                                     {{ trans('import.job_config_bunq_accounts_text') }}
 | |
|                                 </p>
 | |
|                             </div>
 | |
|                         </div>
 | |
|                         <div class="row">
 | |
|                             <div class="col-lg-12">
 | |
|                                 <table class="table table-bordered table-striped">
 | |
|                                     <thead>
 | |
|                                     <tr>
 | |
|                                         <th> </th>
 | |
|                                         <th>{{ trans('list.account_at_bunq') }}</th>
 | |
|                                         <th>{{ trans('list.account') }}</th>
 | |
|                                     </tr>
 | |
|                                     </thead>
 | |
|                                     <tbody>
 | |
|                                     {% for account in data.accounts %}
 | |
|                                         {% set currentIban = 'not-iban' %}
 | |
|                                         <tr>
 | |
|                                             <td style="background:{{ account.settings.color }};"></td>
 | |
|                                             <td>
 | |
|                                                 <strong>{{ account.description }}</strong>
 | |
|                                                 <ul>
 | |
|                                                 {% for alias in account.aliases %}
 | |
|                                                     {% if alias.type == 'IBAN' %}
 | |
|                                                         <li>{{ alias.name }}: {{ alias.value }}{% set currentIban = alias.value  %}</li>
 | |
|                                                     {% endif %}
 | |
|                                                 {% endfor %}
 | |
|                                                 {% if account.status != 'ACTIVE' %}
 | |
|                                                     <li>{{ trans('import.bunq_account_status_'~account.status) }}</li>
 | |
|                                                 {% endif %}
 | |
|                                                 {% if account.type == 'MonetaryAccountSavings' %}
 | |
|                                                     <li>{{ trans('import.bunq_savings_goal', {'amount': account.savingsGoal.currency ~' '~account.savingsGoal.value,'percentage' : account.savingsGoal.percentage}) }}</li>
 | |
|                                                 {% endif %}
 | |
|                                                 </ul>
 | |
|                                             </td>
 | |
|                                             <td>
 | |
|                                                 <select class="form-control" name="account_mapping[{{ account.id }}]">
 | |
|                                                     <option value="0" label="{{ trans('import.spectre_do_not_import') }}">
 | |
|                                                         {{ trans('import.spectre_do_not_import') }}
 | |
|                                                     </option>
 | |
|                                                     {% for localId, localAccount in data.local_accounts %}
 | |
|                                                         {% if localAccount.code == account.currency_code %}
 | |
|                                                             <option value="{{ localId }}"{% if currentIban != '' and currentIban == localAccount.iban %} selected{% endif %}>
 | |
|                                                                 {{ localAccount.name }}{% if localAccount.iban !='' %} ({{ localAccount.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 %}
 |