Skip to content

Commit 599f59b

Browse files
committed
bootlint: fix E042.
Fix the following warning from bootlint: E042 `.form-control` cannot be used on non-textual `<input>`s, such as those whose `type` is: `file`, `checkbox`, `radio`, `range`, `button` @see https://github.com/twbs/bootlint/wiki/E042 Last part of fix for #278
1 parent 925855d commit 599f59b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ <h3 th:text="${#strings.capitalize(add_series)}">
201201
<span id="image.required" class="required_field">*</span>
202202
</label>
203203
<div class="col-sm-7">
204-
<input type="file" id="image" class="form-control" style="box-shadow: none; border: 0px;" required="required" accept="image/png,image/jpeg" th:field="*{image}" />
204+
<input type="file" id="image" style="box-shadow: none; border: 0px;" required="required" accept="image/png,image/jpeg" th:field="*{image}" />
205205
<small togglz:active="ADD_ADDITIONAL_IMAGES_TO_SERIES" sec:authorize="hasAuthority('ADD_IMAGES_TO_SERIES')">
206206
<span class="hint-block" th:text="#{t_add_more_images_hint}">
207207
You will be able to add additional images on the series page

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@
293293
<div class="col-sm-6 col-sm-offset-3">
294294
<form method="post" class="form-horizontal" enctype="multipart/form-data" th:action="@{${ADD_IMAGE_SERIES_PAGE}(id=${series.id})}" th:object="${addImageForm}">
295295
<div class="form-group" th:classappend="${#fields.hasErrors('image') ? 'has-error' : ''}">
296-
<input type="file" id="image" class="form-control" style="box-shadow: none; border: 0px;" required="required" accept="image/png,image/jpeg" th:field="*{image}" />
296+
<input type="file" id="image" style="box-shadow: none; border: 0px;" required="required" accept="image/png,image/jpeg" th:field="*{image}" />
297297
<span id="image.errors" class="help-block" th:if="${#fields.hasErrors('image')}" th:each="error : ${#fields.errors('image')}" th:text="${error}"></span>
298298
</div>
299299
<div class="from-group-sm">

0 commit comments

Comments
 (0)