|
20 | 20 | <div th:fragment="mytwcontent"> |
21 | 21 | <div> |
22 | 22 | <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"> |
24 | 24 | <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" /> |
26 | 26 | <div> |
27 | 27 | <div th:each="err : ${#fields.errors('name')}" th:text="${err}" class="alert alert-danger"> |
28 | 28 | </div> |
29 | 29 | </div> |
30 | 30 | </div> |
31 | | - <div class="form-group form-control-lg"> |
| 31 | + <div class="form-group"> |
32 | 32 | <label th:for="textEditor" class="control-label"> |
33 | 33 | <span th:utext="#{project.add.description}">Description</span> |
34 | 34 | </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> |
36 | 37 | <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"> |
38 | 40 | </div> |
39 | 41 | </div> |
40 | 42 | </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> |
64 | 67 | </form> |
65 | 68 | </div> |
66 | 69 | <!-- Document Window End --> |
|
0 commit comments