New template - connect with green spot / red triangle

I’ve created a new (simple) template, but the total amount in the bottom doesn’t connect with the green spot / red triangle on top. How can I connect them?

Next, I want that, If i insert an accountnumber, the account description appears automatically.
Is there anything I can implement in this template that makes this possible?

Hereby the provisional template:

{% t= “rek_nr” fr:“num. compte” en:“account nr” %}
{% t= “rek_omschrijving” fr:“descreption compte” en:“description nr” %}
{% t= “Omschrijving” fr:“Libellé” en:“Description” %}
{% t= “bedrag” fr:“montant” en:“amount” %}

{% stripnewlines %}
{% fori detail in current_account.custom.details %}
{% if forloop.first %}
| {% t “Rek. nr” %}
| {% t “Rek. Omschrijving” %}
| {% t “Omschrijving” %}
| {% t “Bedrag” %}
{% newline %}
|----------15%-----------
|:---------35%------
|:---------35%------
|----15%--------:+
{% endif %}
{% newline %}
| {% input detail.custom.rek_nr %}
| {% input detail.custom.rek_omschrijving %}
| {% input detail.custom.omschrijving %}
| {% $0+input detail.custom.value as:currency placeholder:‘bedrag’ %}
{% if forloop.last %}
{% ic %}
{% newline %}
|
|
|
| {{ $0 | currency }} {% unreconciled $0-current_account.value %}
{% endic %}
{% endif %}
{% endfori %}
{% endstripnewlines %}

Hi Anke,

Normally we don’t type account numbers manually in Silverfin, we prefer to use a input variable as account collection, like this:

{% input custom.accounts.total as:account_collection range:"6" accounts_var:accounts_total %}

You can then loop over all accounts selected like this:

{% for account in accounts_total %}
  {{account.number}} {{ account.name }} {{account.value }}
{% endfor %}

Lastly the unreconciled tag does not work as it is within {% ic %} and {% endic %}. If you put it after {% endic %} it will work perfectly fine.