Skip to content

Commit 376b9bb

Browse files
committed
/series/{id}: add label and use a standard markup for image upload field.
Required for adding a field for specifying image URL later. No functional changes.
1 parent 7fb6289 commit 376b9bb

File tree

1 file changed

+17
-8
lines changed
  • src/main/webapp/WEB-INF/views/series

1 file changed

+17
-8
lines changed

src/main/webapp/WEB-INF/views/series/info.html

+17-8
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,30 @@
8686
</div>
8787

8888
<div class="row" th:if="${allowAddingImages}" togglz:active="ADD_ADDITIONAL_IMAGES_TO_SERIES">
89-
<div class="col-sm-8 col-sm-offset-2">
89+
<div class="col-sm-10">
9090
<form id="add-image-form"
9191
method="post"
9292
class="form-horizontal"
9393
enctype="multipart/form-data"
9494
th:action="@{${ADD_IMAGE_SERIES_PAGE}(id=${series.id})}"
9595
th:object="${addImageForm}">
96-
<div class="form-group" th:classappend="${#fields.hasErrors('image') ? 'has-error' : ''}">
97-
<input type="file" id="image" style="box-shadow: none; border: 0px;" required="required" accept="image/png,image/jpeg" th:field="*{image}" />
98-
<!--/*/
99-
<span id="image.errors" class="help-block" th:if="${#fields.hasErrors('image')}" th:each="error : ${#fields.errors('image')}" th:text="${error}"></span>
100-
/*/-->
96+
<div class="form-group form-group-sm" th:classappend="${#fields.hasErrors('image') ? 'has-error' : ''}">
97+
<label for="image" class="control-label col-sm-3">
98+
<span th:remove="tag" th:text="#{t_image}">
99+
Image
100+
</span>
101+
</label>
102+
<div class="col-sm-9">
103+
<input type="file" id="image" style="box-shadow: none; border: 0px;" required="required" accept="image/png,image/jpeg" th:field="*{image}" />
104+
<!--/*/
105+
<span id="image.errors" class="help-block" th:if="${#fields.hasErrors('image')}" th:each="error : ${#fields.errors('image')}" th:text="${error}"></span>
106+
/*/-->
107+
</div>
101108
</div>
102-
<div class="from-group-sm">
103-
<input type="submit" class="btn btn-primary" value="Add image" th:value="#{t_add_image}" />
109+
<div class="form-group from-group-sm">
110+
<div class="col-sm-offset-3 col-sm-5">
111+
<input type="submit" class="btn btn-primary" value="Add image" th:value="#{t_add_image}" />
112+
</div>
104113
</div>
105114
</form>
106115
</div>

0 commit comments

Comments
 (0)