Ignore:
Timestamp:
01/06/23 19:17:05 (21 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

Location:
src/main/resources/templates
Files:
2 added
5 edited

Legend:

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

    rd4b888e r9dcbf44  
    11<div>
    2 <h1>Резултат од филтерот</h1>
     2<h1 class="mt-3 mb-3">Резултат од филтерот</h1>
    33<a th:href="${'/products'}">Врати се на сите производи</a>
    4 
    5 <table>
    6     <thead>
     4    <h3 th:if="${hasError}" th:text="${error}"></h3>
     5    <div th:if="${!hasError}">
     6<table class="table table-bordered mt-3">
     7    <thead class="thead-dark">
    78    <tr>
    8         <th>Name</th>
    9         <th>Manufacturer</th>
    10         <th>Details</th>
     9        <th scope="col">Име</th>
     10        <th scope="col">Производител</th>
     11        <th scope="col">Детали</th>
    1112    </tr>
    1213    </thead>
     
    1718        <td>
    1819            <form th:action="@{'/part/{id}' (id=${f.getPartid()}) }">
    19                 <button type="submit">Детали</button>
     20                <button class="btn btn-primary btn-block btn-lg w-50" type="submit">Детали</button>
    2021            </form>
    2122        </td>
     
    2324    </tbody>
    2425</table>
    25 
     26    </div>
    2627</div>
  • src/main/resources/templates/myDeliveries.html

    rd4b888e r9dcbf44  
    11<div>
    22    <h1>Мои достави</h1>
     3    <form class="form-signin mt-xl-5" method="get" action="/myNextDeliveries">
     4    <button id="submit" class="btn btn-lg btn-primary btn-block" type="submit">Мои следни нарачки</button>
     5    </form>
    36    <table>
    47        <thead>
  • 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>
  • src/main/resources/templates/products.html

    rd4b888e r9dcbf44  
    99</header>
    1010<main>
    11     <h1>Сите производи</h1>
     11    <h1 class="mt-3 mb-3">Сите производи</h1>
    1212    <form th:action="@{/filtered}">
    13         <label for="cartype"></label><select id="cartype" required name="cartype">
     13        <label for="cartype"></label><select id="cartype" class="form-control w-25 d-inline mr-3" required name="cartype">
    1414            <option  th:each="car : ${cars}"
    1515                     th:text="${car.getCartype()}"
     
    1717            </option>
    1818        </select>
    19         <label for="category"></label><select id="category" required name="category">
     19        <label for="category"></label><select id="category" class="form-control w-25 d-inline mr-3" required name="category">
    2020            <option  th:each="cat : ${categories}"
    2121                     th:text="${cat.getCname()}"
     
    2323            </option>
    2424        </select>
    25         <button type="submit">Филтрирај</button>
     25        <button class="btn btn-lg btn-block btn-primary w-25 d-inline" type="submit">Филтрирај</button>
    2626    </form>
    27     <table>
    28         <thead>
     27    <table class="table table-bordered mt-4">
     28        <thead class="thead-dark">
    2929        <tr>
    30             <th>Name</th>
    31             <th>Manufacturer</th>
    32             <th>Details</th>
     30            <th scope="col">Име</th>
     31            <th scope="col">Производител</th>
     32            <th scope="col">Детали</th>
    3333        </tr>
    3434        </thead>
     
    3939            <td>
    4040                <form th:action="@{'/part/{id}' (id=${part.getId()}) }">
    41                     <button type="submit">Детали</button>
     41                    <button class="btn btn-primary btn-block btn-lg w-50" type="submit">Детали</button>
    4242                </form>
    4343            </td>
  • src/main/resources/templates/services.html

    rd4b888e r9dcbf44  
    11<div>
    22  <main>
    3     <h1>Информации за сервиси</h1>
    4     <table>
    5       <thead>
     3    <h1 class="mt-3 mb-3">Информации за сервиси</h1>
     4    <table class="table table-bordered">
     5      <thead class="thead-dark">
    66      <tr>
    7         <th>Name</th>
    8         <th>Number of reviews</th>
    9         <th>Average rating</th>
     7        <th scope="col">Име на сервис</th>
     8        <th scope="col">Број на критики</th>
     9        <th scope="col">Просечна оценка</th>
    1010      </tr>
    1111      </thead>
Note: See TracChangeset for help on using the changeset viewer.