forked from bnw/firefly-iii-fints-importer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollecting-data.twig
87 lines (85 loc) · 4.41 KB
/
collecting-data.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{% extends 'base.twig' %}
{% block title %}Enter account data{% endblock %}
{% block content %}
<h1>Enter account data</h1>
<form action="." method="post">
<input type="hidden" name="step" value="{{ next_step }}">
<fieldset class="mt-3">
<legend>Bank Data</legend>
{% if configuration.bank_url == "" %}
<div class="form-group">
<label for="bank_url">URL</label>
<input class="form-control" id="bank_url" name="bank_url" required style="font-family:monospace;">
<small class="form-text text-muted">
URL to your banks FinTS api, e.g.
<span class="text-monospace">https://banking-dkb.s-fints-pt-dkb.de/fints30</span><br>
If you cannot find the correct URL for your bank, try out
<a href="https://github.com/dr-duplo/python-fints-url">this tool</a>.<br>
Do not add a trailing slash to the URL.
</small>
</div>
{% endif %}
{% if configuration.bank_code == "" %}
<div class="form-group">
<label for="bank_code">Bank-Code (BLZ)</label>
<input class="form-control" id="bank_code" name="bank_code" required style="font-family:monospace;">
<small class="form-text text-muted">
E.g. <span class="text-monospace">12030000</span>
</small>
</div>
{% endif %}
<div class="form-group">
<label for="bank_username">Username</label>
<input class="form-control" id="bank_username" name="bank_username" required value="{{ configuration.bank_username }}">
</div>
<div class="form-group">
<label for="bank_password">Password</label>
<input class="form-control" id="bank_password" name="bank_password" type="password" required>
<small class="form-text text-muted">This is NOT the PIN of your bank card!</small>
</div>
{% if configuration.bank_2fa == "" %}
<div class="form-group">
<label for="bank_sfa">Two-Factor Method</label>
<select class="form-control" id="bank_2fa" name="bank_2fa" required>
<option value="911">chipTAN optisch</option>
<option value="910">chipTAN manuell</option>
<option value="912">chipTAN-USB</option>
<option value="913">chipTAN-QR</option>
<option value="920">smsTAN</option>
<option value="921">pushTAN</option>
<option value="900">iTAN</option>
<option value="902">photoTAN</option>
<option value="901">mobileTAN 901</option>
<option value="930">mobileTAN 930 (for Postbank)</option>
<option value="942">mobileTAN 942</option>
<option value="944">SecureGoTAN</option>
<option value="962">Smart-TAN plus manuell</option>
<option value="972">Smart-TAN plus optisch</option>
<option value="982">Smart-TAN photo</option>
<option value="997">Sparda Secure App</option>
<option value="NoPsd2TanMode">None (for ING-DiBa)</option>
</select>
<small class="form-text text-muted">Choose an option that you know works for your bank.</small>
</div>
{% endif %}
</fieldset>
{% if configuration.firefly_access_token == "" %}
<fieldset class="mt-4">
<legend>Firefly III Data</legend>
<div class="form-group">
<label for="firefly_url">Firefly III URL</label>
<input class="form-control" id="firefly_url" name="firefly_url" required>
</div>
<div class="form-group">
<label for="firefly_access_token">Firefly III Personal Access Token</label>
<textarea class="form-control" id="firefly_access_token" name="firefly_access_token"
required></textarea>
</div>
</fieldset>
{% endif %}
{% if data_collect_mode != "" %}
<input type="hidden" id="data_collect_mode" name="data_collect_mode" value="{{ data_collect_mode }}">
{% endif %}
<button type="submit" class="btn btn-primary">Submit</button>
</form>
{% endblock %}