[4d67d70] | 1 | <div>
|
---|
| 2 | <form class="form-signin mt-xl-4" method="post" action="/addPart">
|
---|
| 3 | <h2 class="form-signin-heading mb-3">Додај дел во системот</h2>
|
---|
| 4 | <p>
|
---|
| 5 | <label for="name" class="sr-only">Име на делот</label>
|
---|
| 6 | <input type="text" id="name" name="name" class="form-control" placeholder="Внеси го името на делот..." required="" autofocus=""/>
|
---|
| 7 | </p>
|
---|
| 8 | <p>
|
---|
| 9 | <label for="description" class="sr-only">Опис на делот</label>
|
---|
| 10 | <input type="text" id="description" name="description" class="form-control" placeholder="Внеси опис за делот..." autofocus=""/>
|
---|
| 11 | </p>
|
---|
| 12 | <p>
|
---|
| 13 | <label for="manufacturer" class="sr-only">
|
---|
| 14 | Одбери производител
|
---|
| 15 | </label><select class="form-control" id="manufacturer" name="manufacturer" required>
|
---|
| 16 | <option th:each="m : ${manufacturers}"
|
---|
| 17 | th:text="${m.getName()}"
|
---|
| 18 | th:value="${m.getId()}">
|
---|
| 19 | </option>
|
---|
| 20 | </select>
|
---|
| 21 | </p>
|
---|
| 22 | <p>
|
---|
| 23 | <label for="cars">Соодветно за</label>
|
---|
| 24 | <!-- <select class="form-control" id="cars" name="cars" required multiple="multiple">-->
|
---|
| 25 | <!-- <option th:each="c : ${cars}"-->
|
---|
| 26 | <!-- th:text="${c.getCartype()}"-->
|
---|
| 27 | <!-- th:value="${c.getId()}">-->
|
---|
| 28 | <!-- </option>-->
|
---|
| 29 | <!-- </select>-->
|
---|
| 30 | <input type="checkbox" name="cars" id="cars"
|
---|
| 31 | th:each="c : ${cars}"
|
---|
| 32 | th:text="${c.getCartype()}"
|
---|
| 33 | th:value="${c.getId()}"
|
---|
| 34 | />
|
---|
| 35 | </p>
|
---|
| 36 | <p>
|
---|
| 37 | <label for="categories">Во категории</label>
|
---|
| 38 | <!-- <select class="form-control" id="categories" name="categories" required multiple="multiple">-->
|
---|
| 39 | <!-- <option th:each="c : ${categories}"-->
|
---|
| 40 | <!-- th:text="${c.getCname()}"-->
|
---|
| 41 | <!-- th:value="${c.getId()}">-->
|
---|
| 42 | <!-- </option>-->
|
---|
| 43 | <!-- </select>-->
|
---|
| 44 | <input type="checkbox" name="categories" id="categories"
|
---|
| 45 | th:each="c : ${categories}"
|
---|
| 46 | th:text="${c.getCname()}"
|
---|
| 47 | th:value="${c.getId()}"
|
---|
| 48 | />
|
---|
| 49 | </p>
|
---|
| 50 | <p>
|
---|
| 51 | <label for="warehouse">Во магацин</label>
|
---|
| 52 | <select class="form-control" id="warehouse" name="warehouse" required>
|
---|
| 53 | <option th:each="w : ${warehouses}"
|
---|
| 54 | th:text="${w.getLocation()}"
|
---|
| 55 | th:value="${w.getId()}">
|
---|
| 56 | </option>
|
---|
| 57 | </select>
|
---|
| 58 | </p>
|
---|
| 59 | <p>
|
---|
| 60 | <label for="quantity" class="sr-only">Количина во магацин</label>
|
---|
| 61 | <input required type="number" min="1" id="quantity" name="quantity" class="form-control" placeholder="Внеси количина..." autofocus=""/>
|
---|
| 62 | </p>
|
---|
| 63 | <p>
|
---|
| 64 | <label for="amount" class="sr-only">Цена</label>
|
---|
| 65 | <input required type="number" min="1" id="amount" name="amount" class="form-control" placeholder="Внеси цена..." autofocus=""/>
|
---|
| 66 | </p>
|
---|
| 67 | <button class="btn btn-lg btn-primary btn-block" type="submit">Додај дел</button>
|
---|
| 68 | </form>
|
---|
| 69 | </div> |
---|