Layout - show field labels and text on the same line

Is there a way to change the layout of the references data so that they show on one line? (as this is suggested by BIN-norms; http://www.gbs-piramide-tilia.be/gip/Resources/BinNorm.pdf) can i use specific fieldcodes in stead of the “field.label” and “field.text” like there was “number” or “issuedate” before?

regards

Is this actually legal requirement or just preference? I mean you can certainly show field labels and field text on the same line by using a custom template.

Hello Lubos,

no its not legal, but there is an institute that advices so to get som uniformity in correspondence.

I have been searching to change the HTML markup but am not an expert in it and cannot find how to change

" <td style="border-right-width: 1px; padding-right: 20px; text-align: right”>
{% for field in fields %}

{{ field.label }}
{{ field.text }}
{% endfor %} ”

that they show on one line,
I manage to do in a way but it means now that I have to go in the template every new document

hoped you could tell me (or where to find it) how I either code the html to show the sets of data (field.label and underneath field.text ) on one line

or can you tell me if it is possible to use (as earlier in manager) code as due date, invoice date etc… and if so is there an overview of what field are used in manager?

thanks in advance

keep up the good work

Mvg

Tomas Scheldeman

I’m not sure what template you are using but plain (default) template have this snippet:

                <table style="margin-bottom: 20px"><tr>
                    <td>
                        <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
                        <div>{{ recipient.address | newline_to_br }}</div>
                        <div>{{ recipient.identifier }}</div>
                    </td>
                    <td style="border-right-width: 1px; padding-right: 20px; text-align: right">
                        {% for field in fields %}
                        <div style="font-weight: bold">{{ field.label }}</div>
                        <div style="margin-bottom: 10px">{{ field.text }}</div>
                        {% endfor %}
                    </td>
                    <td style="padding-left: 20px; width: 1px; white-space: nowrap">
                        <div style="font-weight: bold">{{ business.name }}</div>
                        <div>{{ business.address | newline_to_br }}</div>
                        <div>{{ business.identifier }}</div>
                    </td>
                </tr></table>

You can replace this snipped with following code:

                <table style="margin-bottom: 20px"><tr>
                    <td>
                        <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
                        <div>{{ recipient.address | newline_to_br }}</div>
                        <div>{{ recipient.identifier }}</div>
                    </td>
                    <td style="width: 1px; white-space: nowrap">
                        <div style="font-weight: bold">{{ business.name }}</div>
                        <div>{{ business.address | newline_to_br }}</div>
                        <div>{{ business.identifier }}</div>
                    </td>
                </tr></table>

                <table style="margin-bottom: 20px"><tr>
                    {% for field in fields %}
                    <td style="padding-right: 20px">
                        <div style="font-weight: bold">{{ field.label }}</div>
                        <div style="margin-bottom: 10px">{{ field.text }}</div>
                    </td>
                    {% endfor %}
                </tr></table>

This will show fields in their row between business details and line items.

Keep it mind, if you don’t know HTML, you might need to help you out with it based on your custom requirements.

2 Likes

Lubos,

This kind of works and I have learned now some more html coding, but it doesn’t result exactly in what I want.
Is it possible to use the data ‘invoice number, date, due date and recipient.identifier’

Mvg

Tomas Scheldeman