Skip to content

Commit

Permalink
fix: fixed usage view with fieldName
Browse files Browse the repository at this point in the history
  • Loading branch information
eliot488995568 committed Sep 13, 2024
1 parent 9ddd29c commit c0a3e07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 2 additions & 4 deletions lib/RoadizRozierBundle/templates/custom-forms/usage.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@
<tr>
<th>{% trans %}title{% endtrans %}</th>
<th>{% trans %}usage.fieldName{% endtrans %}</th>
<th>{% trans %}nodeType.name{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for usage in usages %}
{% set source = usage.node.nodeSources.first %}
{% set field = usage.field %}
{% set field = usage.fieldName %}
<tr>
<td>
<a href="{{ path('nodesEditSourcePage', {
Expand All @@ -42,8 +41,7 @@
{% endif %}
</a>
</td>
<td>{{ field.name }}</td>
<td>{{ field.nodeType.name }}</td>
<td>{{ field }}</td>
</tr>
{% endfor %}
</tbody>
Expand Down
8 changes: 3 additions & 5 deletions lib/Rozier/src/Resources/views/documents/usage.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@
<table class="content-table uk-table">
<thead>
<tr>
<th class="uk-text-center">{% trans %}title{% endtrans %}</th>
<th>{% trans %}title{% endtrans %}</th>
<th>{% trans %}usage.fieldName{% endtrans %}</th>
<th>{% trans %}nodeType.name{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for usage in usages %}
{% set source = usage.nodeSource %}
{% set field = usage.field %}
{% set field = usage.fieldName %}
<tr>
<td>
<a href="{{ path('nodesEditSourcePage', {
Expand All @@ -41,8 +40,7 @@
{% endif %}
</a>
</td>
<td>{{ field.name }}</td>
<td>{{ field.nodeType.name }}</td>
<td>{{ field }}</td>
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit c0a3e07

Please sign in to comment.