Ignore:
Timestamp:
01/05/23 01:31:58 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
676144b
Parents:
ab952ab
Message:

Added functionalities

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

Legend:

Unmodified
Added
Removed
  • src/main/resources/templates/fragments/header.html

    rab952ab r7d43957  
    1 <header xmlns:sec="http://www.w3.org/1999/xhtml">
     1<header xmlns:sec="http://www.w3.org/1999/xhtml" >
    22  <nav class="navbar navbar-expand-md navbar-dark bg-dark">
    33    <div class="container">
     
    1616            <a class="nav-link active" href="/services">Сервиси</a>
    1717          </li>
     18          <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
     19          <li class="nav-item m-auto">
     20            <a class="nav-link active" href="/currentOrder">Моја нарачка</a>
     21          </li>
     22          </th:block>
    1823        </ul>
    1924
  • src/main/resources/templates/master-template.html

    rab952ab r7d43957  
    11<!DOCTYPE html>
    2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
     2<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security"
     3>
    34<head>
    45  <meta charset="UTF-8"/>
  • src/main/resources/templates/partinfo.html

    rab952ab r7d43957  
    44<p th:text="${part.getManufacturer().getName()}"></p>
    55<p><span th:text="${amount}"></span><span> денари</span></p>
    6 <form th:action="@{'/part/delivery/{id}' (id=${part.getId()}) }">
     6<form method="post" th:action="@{'/part/addToOrder/{id}' (id=${part.getId()}) }">
    77    <label>
    8         <input type="number" required min="1" placeholder="Количина"/>
     8        <input type="number" name="quantity" required min="1" placeholder="Количина"/>
    99    </label>
    10     <button type="submit">Купи</button>
     10    <button class="btn btn-primary btn-block btn-lg" type="submit">Додај во нарачка</button>
    1111</form>
    1212</div>
  • src/main/resources/templates/products.html

    rab952ab r7d43957  
    1 <div>
     1<div xmlns:sec="http://www.thymeleaf.org/extras/spring-security"
     2>
    23<header>
     4    <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
    35    <a th:href="${'/orders'}">Мои нарачки</a>
    46    <a th:href="${'/repairs'}">Мои поправки</a>
    57    <a th:href="${'/reviews'}">Мои критики</a>
     8    </th:block>
    69</header>
    710<main>
  • src/main/resources/templates/register.html

    rab952ab r7d43957  
    2828                <input type="password" id="rpassword" name="rpassword" class="form-control" placeholder="*********" required=""/>
    2929            </p>
     30            <p>
     31                <label for="role" class="sr-only">
     32                    Одбери улога
     33                </label><select class="form-control" id="role" name="role" required>
     34                    <option value="client">CLIENT</option>
     35                    <option value="warehouseman">WAREHOUSEMAN</option>
     36                    <option value="deliveryman">DELIVERYMAN</option>
     37                </select>
     38            </p>
    3039        </form>
    3140        <button class="btn btn-lg btn-primary btn-block" type="submit">Регистрирај се</button>
  • src/main/resources/templates/repairsForUser.html

    rab952ab r7d43957  
    66    <th>Датум на нарачка</th>
    77    <th>Нарачан дел</th>
    8     <th>Број на шасија</th>
     8    <th>Број на нарачка</th>
    99    <th>Име на сервис</th>
    1010  </tr>
     
    1414    <td th:text="${repair.getOrderdate}"></td>
    1515    <td th:text="${repair.getPartname()}"></td>
    16     <td th:text="${repair.getVin()}"></td>
     16    <td th:text="${repair.getOrderid()}"></td>
    1717    <td th:text="${repair.getRsname()}"></td>
    1818  </tr>
Note: See TracChangeset for help on using the changeset viewer.