Ignore:
Timestamp:
01/06/23 19:17:05 (18 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
cab5859
Parents:
d4b888e
Message:

Added full functionality for changing delivery status,
added bootstrap for some pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/templates/partinfo.html

    rd4b888e r9dcbf44  
    11<div>
    2 <p th:text="${part.getName()}"></p>
    3 <p th:text="${part.getDescription()}"></p>
    4 <p th:text="${part.getManufacturer().getName()}"></p>
    5 <p><span th:text="${amount}"></span><span> денари</span></p>
     2    <table class="table table-bordered mt-4">
     3        <thead class="thead-dark">
     4        <tr>
     5            <th scope="col">Име</th>
     6            <th scope="col">Опис</th>
     7            <th scope="col">Производител</th>
     8            <th scope="col">Цена</th>
     9        </tr>
     10        </thead>
     11        <tbody>
     12        <tr>
     13            <td th:text="${part.getName()}"></td>
     14            <td th:text="${part.getDescription()}"></td>
     15            <td th:text="${part.getManufacturer().getName()}"></td>
     16            <td><span th:text="${amount}"></span><span> денари</span></td>
     17        </tr>
     18        </tbody>
     19    </table>
     20
    621<form method="post" th:action="@{'/part/addToOrder/{id}' (id=${part.getId()}) }">
    722    <label>
    8         <input type="number" name="quantity" required min="1" placeholder="Количина"/>
     23        <input class="form-control d-inline" type="number" name="quantity" required min="1" placeholder="Количина"/>
    924    </label>
    10     <button class="btn btn-primary btn-block btn-lg" type="submit">Додај во нарачка</button>
     25    <button class="btn btn-primary btn-block btn-lg w-25 d-inline" type="submit">Додај во нарачка</button>
    1126</form>
    1227</div>
Note: See TracChangeset for help on using the changeset viewer.