23 |
23 |
<div th:replace="fragments/navbar :: navBar"></div>
|
24 |
24 |
<!-- ./Navigation bar imported -->
|
25 |
25 |
|
|
26 |
<!-- Container for show error message -->
|
|
27 |
<div class="container">
|
|
28 |
<div th:if="${errorMessage}" th:text="${errorMessage}" class="alert alert-danger" role="alert">
|
|
29 |
</div>
|
|
30 |
</div>
|
|
31 |
<!-- ./Container for show error message -->
|
|
32 |
<!-- Container for show success message -->
|
|
33 |
<div class="container">
|
|
34 |
<div th:if="${successMessage}" th:text="${successMessage}" class="alert alert-success" role="alert">
|
|
35 |
</div>
|
|
36 |
</div>
|
|
37 |
<!-- ./Container for show success message -->
|
|
38 |
|
26 |
39 |
<!-- Card for anti pattern details-->
|
27 |
40 |
<div class="card">
|
28 |
41 |
<!-- Card header -->
|
... | ... | |
68 |
81 |
|
69 |
82 |
<!-- Anti pattern configuration form -->
|
70 |
83 |
<h5>Anti Pattern configurations</h5>
|
71 |
|
<div th:each="config : ${antiPattern.configurations}" class="form-group">
|
72 |
|
<label th:text="${config.value.printName} + ':'" th:for="${config.value.name}"></label>
|
73 |
|
<input disabled type="text" class="form-control" th:id="${config.value.name}"
|
74 |
|
th:value="${config.value.value}">
|
75 |
|
<small th:text="${config.value.description}" th:value="${config.value.name}"
|
76 |
|
class="form-text text-muted"></small>
|
77 |
|
</div>
|
78 |
|
<!-- ./Anti pattern configuration form -->
|
|
84 |
|
|
85 |
<!-- Form for configuration values -->
|
|
86 |
<form action="#" th:action="@{/anti-patterns/} + ${antiPattern.id}" th:object="${antiPattern}" method="post">
|
|
87 |
<div th:each="config : ${antiPattern.configurations}" class="form-group">
|
|
88 |
<label th:text="${config.value.printName} + ':'"
|
|
89 |
th:for="${config.value.name}"></label>
|
|
90 |
<input th:value="${config.value.value}" class="form-control" th:id="${config.value.name}"
|
|
91 |
name="configValues">
|
|
92 |
<input th:value="${config.value.name}" style="display: none" class="form-control"
|
|
93 |
name="configNames">
|
|
94 |
<small th:text="${config.value.description}" th:value="${config.value.name}"
|
|
95 |
class="form-text text-muted"></small>
|
|
96 |
</div>
|
|
97 |
<div class="analyze-button-container">
|
|
98 |
<button type="submit" class="btn btn-primary btn-lg btn-block">Save configuration</button>
|
|
99 |
</div>
|
|
100 |
<!-- ./Anti pattern configuration form -->
|
|
101 |
</form>
|
|
102 |
<!-- ./Form for configuration values -->
|
79 |
103 |
</div>
|
80 |
104 |
</div>
|
81 |
105 |
<!-- ./Card for anti pattern details-->
|
#4 Allow reparameterization in AP detail
- added form to the AP detail page for editing treshold values
- added method to the controller for saving new values