Skip to content
Snippets Groups Projects
Commit 2edc5974 authored by ratyann's avatar ratyann
Browse files

fixing changes

parent a59d397d
No related branches found
No related tags found
No related merge requests found
Pipeline #14951 passed
......@@ -32,19 +32,19 @@
</header>
<main>
<div class="list-group container">
<!--for item in items.items-->
{%for item in items %}
<div class="d-flex w-100 justify-content-between mb-4">
<img class=" col-md-2 col-xs-2" src="Gaming_5000x3125.jpg"{{ item.image }} alt="Image" />
<div class="list-group-item list-group-item-action" aria-current="true">
<img src="data:image/png;base64,{{ item.image_base64 }}">
<a href="#" class="list-group-item list-group-item-action" aria-current="true">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1"><!--item name-->Item 1</h5>
<small><!--creation date-->3 days ago</small>
<h5 class="mb-1">{{ item.title }}</h5>
<small>{{ item.created_at }}</small>
</div>
<p class="mb-1">Description</p>
<small>Current bid</small>
<p class="mb-1">{{ item.description }}</p>
<small>{{ item.starting_bid }}</small>
<?php
$x++;
echo "<div class=\"row\"><button id=\"button".$x."\" for=\"item".$x."\" class=\"col-md-2\" onclick=\"bid(".$x.")\">Bid</button><form method=\"post\" action=\"#\" class=\"col-md-4\"><input id=\"item".$x."\" type=\"hidden\" min=\"{{starting price}}\" placeholder=\"press enter to validate\" /></form></div>";
echo "<div class=\"row\"><button id=\"button".$x."\" for=\"item".$x."\" class=\"col-md-2\" onclick=\"bid(".$x.")\">Bid</button><form method=\"post\" action=\"#\" class=\"col-md-4\"><input id=\"item".$x."\" type=\"hidden\" min=\"{{ item.starting_bid }}\" placeholder=\"press enter to validate\" /></form></div>";
?>
</div>
<div class="row justify-content-md-center">
......@@ -67,7 +67,7 @@
</div>
</div>
<!--end for-->
{% endfor %}
</div>
</main>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment