Skip to content

Commit 0ce3850

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 e97cf22 commit 0ce3850

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

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,25 @@
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 method="post" class="form-horizontal" enctype="multipart/form-data" th:action="@{${ADD_IMAGE_SERIES_PAGE}(id=${series.id})}" th:object="${addImageForm}">
91-
<div class="form-group" th:classappend="${#fields.hasErrors('image') ? 'has-error' : ''}">
92-
<input type="file" id="image" style="box-shadow: none; border: 0px;" required="required" accept="image/png,image/jpeg" th:field="*{image}" />
93-
<!--/*/
94-
<span id="image.errors" class="help-block" th:if="${#fields.hasErrors('image')}" th:each="error : ${#fields.errors('image')}" th:text="${error}"></span>
95-
/*/-->
91+
<div class="form-group form-group-sm" th:classappend="${#fields.hasErrors('image') ? 'has-error' : ''}">
92+
<label for="image" class="control-label col-sm-3">
93+
<span th:remove="tag" th:text="#{t_image}">
94+
Image
95+
</span>
96+
</label>
97+
<div class="col-sm-9">
98+
<input type="file" id="image" style="box-shadow: none; border: 0px;" required="required" accept="image/png,image/jpeg" th:field="*{image}" />
99+
<!--/*/
100+
<span id="image.errors" class="help-block" th:if="${#fields.hasErrors('image')}" th:each="error : ${#fields.errors('image')}" th:text="${error}"></span>
101+
/*/-->
102+
</div>
96103
</div>
97-
<div class="from-group-sm">
98-
<input type="submit" class="btn btn-primary" value="Add image" th:value="#{t_add_image}" />
104+
<div class="form-group from-group-sm">
105+
<div class="col-sm-offset-3 col-sm-5">
106+
<input type="submit" class="btn btn-primary" value="Add image" th:value="#{t_add_image}" />
107+
</div>
99108
</div>
100109
</form>
101110
</div>

0 commit comments

Comments
 (0)