This commit is contained in:
pErfEcto2
2023-05-21 20:20:50 +03:00
parent 02a9414ce8
commit 264e6a4b74
24 changed files with 49 additions and 18 deletions
@@ -6,16 +6,23 @@
<title>TEST</title>
</head>
<body>
<h1>{{ text }}</h1>
<table>
{% for i in list %}
<tr>
<th>{{ i }}</th>
<th>{% widthratio i 1 i %}</th>
</tr>
{% endfor %}
</table>
{% for name, file_path, description in data %}
<div class="product">
<a title="{{ name }}">
<div class="title" style="height: 32px;">
<span class="name" itemprop="name">{{ name }}</span>
</div>
</a>
<a title="{{ name }}">
<img itemprop="image" alt="{{ name }}" src="{% static file_path %}">
</a>
<p class="product-desc">{{ description }}</p>
<div itemprop="offers" class="offers">
<span>{{ price }}</span>
</div>
</div>
{% endfor %}
</body>
</html>
@@ -0,0 +1,18 @@
<div class="product">
<a title={{ name }}>
<div class="title" style="height: 32px;">
<span class="name" itemprop="name">{{ name }}</span>
</div>
</a>
<a title={{ name }}>
<img itemprop="image" alt={{ name }} src={{ file_path }}>
</a>
<p class="product-desc">{{ description }}</p>
<div itemprop="offers" class="offers">
<span>{{ price }}</span>
</div>
</div>