add menuitem aliases
This commit is contained in:
parent
70b39515ec
commit
9781bd561f
13 changed files with 713 additions and 212 deletions
|
@ -24,6 +24,9 @@
|
|||
{% for item in food_vendor.menuItems %}
|
||||
<li>
|
||||
<a href="{{ path('app_menu_item_show', {'id': item.id}) }}">{{ item.name }}</a>
|
||||
{% if(item.aliasOf) %}
|
||||
(alias of: {{ item.aliasOf.name }})
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
@ -15,6 +15,12 @@
|
|||
<th>Name</th>
|
||||
<td>{{ menu_item.name }}</td>
|
||||
</tr>
|
||||
{% if(menu_item.aliasOf) %}
|
||||
<tr>
|
||||
<th>Alias of</th>
|
||||
<td>{{ menu_item.aliasOf.name }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue