Start on the fridge frontend
Create list overview without styling Start on editer of fridge
This commit is contained in:
8
templates/fridge/list.html.twig
Normal file
8
templates/fridge/list.html.twig
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends "base/base.html.twig" %}
|
||||
|
||||
{% block body %}
|
||||
Fridges: <br>
|
||||
{% for fridge in fridges %}
|
||||
<a href="{{ path('fridge_single', {'fridge': fridge.id}) }}">{{ fridge.name }}</a> <br>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
5
templates/fridge/single.html.twig
Normal file
5
templates/fridge/single.html.twig
Normal file
@ -0,0 +1,5 @@
|
||||
{% extends "base/base.html.twig" %}
|
||||
|
||||
{% block body %}
|
||||
{{ form(form) }}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user