{namespace poi=Newland\Toubiz\Poi\Neos\ViewHelpers}
{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<poi:collection.attributes.notAllEmpty
    strings="{
        0: article.flatAttributes.startingPoint,
        1: article.flatAttributes.endingPoint,
        2: article.flatAttributes.publicTransit,
        3: article.flatAttributes.privateTransit,
        4: article.flatAttributes.parking,
        5: article.flatAttributes.tipOfAuthor,
        6: article.flatAttributes.safetyNote,
        7: article.flatAttributes.equipment,
        8: article.flatAttributes.literatureTipOfAuthor
    }">

    <div
        id="target-enhancement-target-travel"
        class="tb-tab-navigation__target"
        data-target-enhancement-subject>

        <table class="tb-table tb-table--with-dividers">
            <f:if condition="{article.flatAttributes.safetyNote -> vh:string.notEmpty(ignoreEmptyTags:true)}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.safetyNote"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

                    </th>
                    <td>
                        <vh:render
                            partial="PointOfInterests/Attribute"
                            arguments="{
                            type: 'text',
                            name: 'safetyNote',
                            attribute: article.flatAttributes.safetyNote
                        }"/>

                    </td>
                </tr>
            </f:if>
            <f:if condition="{article.flatAttributes.equipment -> vh:string.notEmpty(ignoreEmptyTags:true)}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.equipment"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

                    </th>
                    <td colspan="3">
                        <vh:render
                            partial="PointOfInterests/Attribute"
                            arguments="{
                                type: 'text',
                                attribute: article.flatAttributes.equipment
                            }"/>

                    </td>
                </tr>
            </f:if>
            <f:if condition="{article.flatAttributes.tipOfAuthor -> vh:string.notEmpty(ignoreEmptyTags:true)}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.tipOfAuthor"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

                    </th>
                    <td>
                        <vh:render
                            partial="PointOfInterests/Attribute"
                            arguments="{
                            type: 'text',
                            name: 'tipOfAuthor',
                            attribute: article.flatAttributes.tipOfAuthor
                        }"/>

                    </td>
                </tr>
            </f:if>
            <f:if condition="{article.flatAttributes.literatureTipOfAuthor -> vh:string.notEmpty(ignoreEmptyTags:true)}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.literatureTipOfAuthor"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

                    </th>
                    <td>
                        <vh:render
                            partial="PointOfInterests/Attribute"
                            arguments="{
                            type: 'text',
                            name: 'literatureTipOfAuthor',
                            attribute: article.flatAttributes.literatureTipOfAuthor
                        }"/>

                    </td>
                </tr>
            </f:if>
            <f:if condition="{article.flatAttributes.startingPoint -> vh:string.notEmpty()}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.startingPoint"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

                    </th>
                    <td>
                        <vh:render
                            partial="PointOfInterests/Attribute"
                            arguments="{
                                type: 'text',
                                name: 'startingPoint',
                                attribute: article.flatAttributes.startingPoint
                            }"/>
                    </td>
                </tr>
            </f:if>
            <f:if condition="{article.flatAttributes.endingPoint -> vh:string.notEmpty()}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.endingPoint"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

                    </th>
                    <td>
                        <vh:render
                            partial="PointOfInterests/Attribute"
                            arguments="{
                                type: 'text',
                                name: 'endingPoint',
                                attribute: article.flatAttributes.endingPoint
                            }"/>
                    </td>
                </tr>
            </f:if>
            <f:if condition="{article.flatAttributes.publicTransit -> vh:string.notEmpty(ignoreEmptyTags:true)}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.publicTransit"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

                    </th>
                    <td>
                        <vh:render partial="PointOfInterests/Attribute"
                            arguments="{
                            type: 'text',
                            name: 'publicTransit',
                            attribute: article.flatAttributes.publicTransit
                        }"/>

                    </td>
                </tr>
            </f:if>
            <f:if condition="{article.flatAttributes.privateTransit -> vh:string.notEmpty(ignoreEmptyTags:true)}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.privateTransit"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

                    </th>
                    <td>
                        <vh:render
                            partial="PointOfInterests/Attribute"
                            arguments="{
                            type: 'text',
                            name: 'privateTransit',
                            attribute: article.flatAttributes.privateTransit
                        }"/>

                    </td>
                </tr>
            </f:if>
            <f:if condition="{article.flatAttributes.parking -> vh:string.notEmpty(ignoreEmptyTags:true)}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.parking"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

                    </th>
                    <td>
                        <vh:render
                            partial="PointOfInterests/Attribute"
                            arguments="{
                            type: 'text',
                            name: 'parking',
                            attribute: article.flatAttributes.parking
                        }"/>

                    </td>
                </tr>
            </f:if>
        </table>
    </div>
</poi:collection.attributes.notAllEmpty>
