palasangha / Treasures-Of-Dhamma

GNU General Public License v3.0
0 stars 0 forks source link

Display Table as table format via twig template #41

Closed aryalsujay closed 2 years ago

aryalsujay commented 2 years ago

For other fields into table also.

aryalsujay commented 2 years ago

Refer to the e.g. below:

{#Eg: for Table Format#}
{% if attribute(data, 'ot_01_content') %}
<table style='font-family: Arial, Helvetica, sans-serif;border-collapse: collapse;width: 100%;'><tr><th style='  background-color:#0066b2 border: 1px solid #ddd; padding: 8px;'>
    <h2>Paragraph</h2></th>
    <th><h2>Content</h2></th>
    <th><h2>Note</h2></th>
</tr>
<tr>
    <td><p><h5>{{ data.ot_01_para }}</h5></p></td>
    <td><p><h5>{{ data.ot_01_content }}</h5></p></td>
    <td><p><h5>{{ data.ot_01_note }}</h5></p></td>
</tr>
</table>
{% endif %}
{##}