Skip to content

Commit f08eda7

Browse files
committed
## 2.3.34
* fixed #317 switch Context is broken * fixed #326 add Context to Breadcrumb * Issue #327 AbstractController: rename rootCategories to rootProjects (line 77) * Issue #328 AbstractController: rename allCategories to allProjects (line 66) * fixed #329 AbstractController: remove side effects from getContext (line 145, 159) * fixed #330 Add Project to Root Project: preset correct Context * fixed #331 Edit Project: update HTML Layout to current Bootstrap Version
1 parent e0d426d commit f08eda7

File tree

2 files changed

+33
-30
lines changed

2 files changed

+33
-30
lines changed

etc/TODO.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666
* Issue #327 AbstractController: rename rootCategories to rootProjects (line 77)
6767
* Issue #328 AbstractController: rename allCategories to allProjects (line 66)
6868
* fixed #329 AbstractController: remove side effects from getContext (line 145, 159)
69-
* Issue #330 Add Project to Root Project: preset correct Context
70-
* Issue #331 Edit Project: update HTML Layout to current Bootstrap Version
69+
* fixed #330 Add Project to Root Project: preset correct Context
70+
* fixed #331 Edit Project: update HTML Layout to current Bootstrap Version
7171

7272
## 2.3.35
7373
* Issue #234 Taskstate: Task Edit Form -> change Project via DropDown

src/main/resources/templates/project/id/edit.html

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,47 +20,50 @@ <h1>
2020
<div th:fragment="mytwcontent">
2121
<div>
2222
<form id="formId" th:action="@{/project/{id}/edit(id=${thisProject.id})}" th:object="${project}" method="post">
23-
<div class="form-group form-control-lg">
23+
<div class="form-group">
2424
<label th:for="${#ids.next('name')}" class="control-label">Name</label>
25-
<input type="text" th:field="*{name}" class="form-control" />
25+
<input type="text" th:field="*{name}" class="form-control form-control-lg" />
2626
<div>
2727
<div th:each="err : ${#fields.errors('name')}" th:text="${err}" class="alert alert-danger">
2828
</div>
2929
</div>
3030
</div>
31-
<div class="form-group form-control-lg">
31+
<div class="form-group">
3232
<label th:for="textEditor" class="control-label">
3333
<span th:utext="#{project.add.description}">Description</span>
3434
</label>
35-
<textarea id="textEditor" name="textEditor" rows="10" cols="50" th:field="*{description}" class="form-control"></textarea>
35+
<textarea id="textEditor" name="textEditor" rows="10" cols="50"
36+
th:field="*{description}" class="form-control form-control-lg"></textarea>
3637
<div>
37-
<div th:each="err : ${#fields.errors('description')}" th:text="${err}" class="alert alert-danger">
38+
<div th:each="err : ${#fields.errors('description')}"
39+
th:text="${err}" class="alert alert-danger">
3840
</div>
3941
</div>
4042
</div>
41-
<div>
42-
<div class="form-group form-control-lg">
43-
<label th:for="${#ids.next('context.id')}" class="control-label">
44-
<span th:utext="#{project.edit.context}">context</span>
45-
</label>
46-
<select th:field="*{context.id}">
47-
<option th:each="context : ${contexts}"
48-
th:value="${context.id}"
49-
th:text="${locale == 'de' ? context.nameDe : context.nameEn}">Wireframe</option>
50-
</select>
51-
<div>
52-
<div th:each="err : ${#fields.errors('context.id')}" th:text="${err}" class="alert alert-danger"></div>
53-
</div>
54-
</div>
55-
</div>
56-
<input type="hidden" th:field="*{id}" />
57-
<button id="saveEditedProject" type="submit" class="btn btn-primary">
58-
<i class="fas fa-save"></i>
59-
<span th:utext="#{project.edit.button}">Save Project</span>
60-
</button>
61-
<input type="hidden"
62-
name="${_csrf.parameterName}"
63-
value="${_csrf.token}"/>
43+
<div class="form-group">
44+
<label th:for="${#ids.next('context.id')}" class="control-label">
45+
<span th:utext="#{project.edit.context}">context</span>
46+
</label>
47+
<select th:field="*{context.id}" class="form-control form-control-lg">
48+
<option th:each="context : ${contexts}"
49+
th:value="${context.id}"
50+
th:text="${locale == 'de' ? context.nameDe : context.nameEn}">Wireframe</option>
51+
</select>
52+
<div>
53+
<div th:each="err : ${#fields.errors('context.id')}"
54+
th:text="${err}" class="alert alert-danger"></div>
55+
</div>
56+
</div>
57+
<div class="form-group">
58+
<input type="hidden" th:field="*{id}" />
59+
<button id="saveEditedProject" type="submit" class="btn btn-primary">
60+
<i class="fas fa-save"></i>
61+
<span th:utext="#{project.edit.button}">Save Project</span>
62+
</button>
63+
<input type="hidden"
64+
name="${_csrf.parameterName}"
65+
value="${_csrf.token}"/>
66+
</div>
6467
</form>
6568
</div>
6669
<!-- Document Window End -->

0 commit comments

Comments
 (0)