-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathcollecting-data.twig
114 lines (112 loc) · 6.18 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{% 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_2fa">Two-Factor Method</label>
<select class="form-control" id="bank_2fa" name="bank_2fa" required>
<option value="900">iTAN (900)</option>
<option value="901">mobileTAN (901)</option>
<option value="902">photoTAN (902)</option>
<option value="903">1822TAN+ (903)</option>
<option value="904">appTAN (904)</option>
<option value="910">chipTAN manuell (910)</option>
<option value="911">chipTAN optisch (911)</option>
<option value="912">chipTAN-USB (912)</option>
<option value="913">chipTAN-QR (913)</option>
<option value="920">smsTAN (920)</option>
<option value="921">pushTAN (921)</option>
<option value="922">photoTAN (922)</option>
<option value="923">pushTAN 2.0 (923)</option>
<option value="930">mobileTAN (930, for Postbank)</option>
<option value="942">mobileTAN (942)</option>
<option value="944">SecureGoTAN (944)</option>
<option value="962">Smart-TAN plus manuell (962)</option>
<option value="972">Smart-TAN plus optisch (972)</option>
<option value="982">Smart-TAN photo (982)</option>
<option value="994">Sparda chipTAN manuell (994)</option>
<option value="995">Sparda chipTAN optisch (995)</option>
<option value="997">Sparda Secure App (997)</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>
<small class="form-text text-muted">Input without a trailing <span class="text-monospace">/</span></small>
</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 configuration.description_regex_match == "" %}
<fieldset class="mt-4">
<legend>Regular Expression for Description Manipulation</legend>
<div class="form-group">
<label for="description_regex_match">Match RegEx</label>
<input class="form-control" id="description_regex_match" name="description_regex_match">
<small class="form-text text-muted">
If the transaction description matches this RegEx, then it should be replaced by the next one.<br>
Any valid <a href="https://www.php.net/manual/en/reference.pcre.pattern.syntax.php">PHP regex</a> will work.
</small>
</div>
<div class="form-group">
<label for="description_regex_replace">Replace RegEx</label>
<input class="form-control" id="description_regex_replace" name="description_regex_replace">
<small class="form-text text-muted">
You probably want to use <a href="https://www.php.net/manual/en/regexp.reference.back-references.php">back references</a> here.
</small>
</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 %}