# New template - connect with green spot / red triangle

**URL:** <https://community.silverfin.com/t/new-template-connect-with-green-spot-red-triangle/1433>\
**Category:** Templates\
**Tags:** unreconciled, input\_comment, filter\_collection\
**Created:** [March 21, 2019, 8:07am UTC](https://community.silverfin.com/t/new-template-connect-with-green-spot-red-triangle/1433 "2019-03-21T08:07:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anke](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Anke](https://community.silverfin.com/u/Anke)\
**Post date:** [March 21, 2019, 8:07am UTC](https://community.silverfin.com/t/new-template-connect-with-green-spot-red-triangle/1433/1 "2019-03-21T08:07:55Z")

</div>

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 %}

---

<div class="post-metadata">

**Author:** ![Michiel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michiel/32/2364_2.png) [@Michiel](https://community.silverfin.com/u/Michiel)\
**Post date:** [March 21, 2019, 1:52pm UTC](https://community.silverfin.com/t/new-template-connect-with-green-spot-red-triangle/1433/2 "2019-03-21T13:52:05Z")

</div>

Hi Anke,

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

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

```

You can then loop over all accounts selected like this:

```auto
{% 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.
