bootstrap_italia-8.x-0.x-dev/patterns/patterns-meta-information.html.twig
patterns/patterns-meta-information.html.twig
{#
/**
* @file
* UI Pattern meta information.
*/
#}
{% if pattern is not empty %}
{# Pattern name and desciption. #}
<p>{{ pattern.description }}</p>
{# Pattern fields descriptions. #}
<div class="table-responsive">
<table class="table table-hover table-meta">
<thead>
<tr>
<th>{{ "Field"|t }}</th>
<th>{{ "Label"|t }}</th>
<th>{{ "Type"|t }}</th>
<th>{{ "Description"|t }}</th>
</tr>
</thead>
<tbody>
{% for field in pattern.fields %}
<tr>
<td><code>{{ field.name }}</code></td>
<td>{{ field.label }}</td>
<td><code>{{ field.type }}</code></td>
<td>{{ field.description }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
