blob: 42dde04352cb7229613d8ad25a0e8f12fbce8f7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>builddb</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body>
<nav th:insert="~{navbar :: navigation}"></nav>
<hr>
<div class="container">
<div class="col-md-8 mx-auto rounded border p-4 m-4">
<h2 class="text-center mb-5">Add Package</h2>
<form method="post" enctype="multipart/form-data" th:object="${pkgDto}">
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}" />
<div class="row mb-3">
<label class="col-sm-4 col-form-label">Sequence</label>
<div class="col-sm-8">
<input class="form-control" th:field="${pkgDto.sequence}" />
<p th:if="${#fields.hasErrors('sequence')}" th:errorclass="text-danger" th:errors="${pkgDto.sequence}"></p>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-4 col-form-label">Name</label>
<div class="col-sm-8">
<input class="form-control" th:field="${pkgDto.name}" />
<p th:if="${#fields.hasErrors('name')}" th:errorclass="text-danger" th:errors="${pkgDto.name}"></p>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-4 col-form-label">Version</label>
<div class="col-sm-8">
<input class="form-control" th:field="${pkgDto.version}" />
<p th:if="${#fields.hasErrors('version')}" th:errorclass="text-danger" th:errors="${pkgDto.version}"></p>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-4 col-form-label">Configure</label>
<div class="col-sm-8">
<textarea class="form-control" th:field="${pkgDto.configure}" />
<p th:if="${#fields.hasErrors('configure')}" th:errorclass="text-danger" th:errors="${pkgDto.configure}"></p>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-4 col-form-label">Build</label>
<div class="col-sm-8">
<textarea class="form-control" th:field="${pkgDto.build}" />
<p th:if="${#fields.hasErrors('build')}" th:errorclass="text-danger" th:errors="${pkgDto.build}"></p>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-4 col-form-label">Install</label>
<div class="col-sm-8">
<textarea class="form-control" th:field="${pkgDto.install}" />
<p th:if="${#fields.hasErrors('install')}" th:errorclass="text-danger" th:errors="${pkgDto.install}"></p>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-4 col-form-label">Setup</label>
<div class="col-sm-8">
<textarea class="form-control" th:field="${pkgDto.setup}" />
<p th:if="${#fields.hasErrors('setup')}" th:errorclass="text-danger" th:errors="${pkgDto.setup}"></p>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-4 col-form-label">Notes</label>
<div class="col-sm-8">
<textarea class="form-control" th:field="${pkgDto.notes}" />
<p th:if="${#fields.hasErrors('notes')}" th:errorclass="text-danger" th:errors="${pkgDto.notes}"></p>
</div>
</div>
<div class="row mb-3">
<label class="col-sm-4 col-form-label">Url</label>
<div class="col-sm-8">
<textarea class="form-control" th:field="${pkgDto.url}" />
<p th:if="${#fields.hasErrors('Url')}" th:errorclass="text-danger" th:errors="${pkgDto.url}"></p>
</div>
</div>
<div class="row">
<div class="offset-sm-4 col-sm-4 d-grid">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
<div class="col-sm-4 d-grid">
<a class="btn btn-outline-primary" href="/pkgs" role="button">Cancel</a>
</div>
</div>
</form>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</body>
</html>
|