Skip to content

Commit 8f97a39

Browse files
committed
/series/add: improve visibility of the quantity error message field.
Fix #529
1 parent 179986f commit 8f97a39

File tree

1 file changed

+23
-11
lines changed
  • src/main/webapp/WEB-INF/views/series

1 file changed

+23
-11
lines changed

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

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -211,18 +211,30 @@ <h3 th:text="${#strings.capitalize(add_series)}">
211211
</span>
212212
<span id="quantity.required" class="required_field">*</span>
213213
</label>
214-
<div class="col-sm-2">
215-
<input type="number"
216-
id="quantity"
217-
class="form-control"
218-
required="required"
219-
th:min="${T(ru.mystamps.web.validation.ValidationRules).MIN_STAMPS_IN_SERIES}"
220-
th:max="${T(ru.mystamps.web.validation.ValidationRules).MAX_STAMPS_IN_SERIES}"
221-
min="1"
222-
max="50"
223-
th:field="*{quantity}" />
214+
<div class="col-sm-6">
215+
<div class="row">
216+
<div class="col-sm-4">
217+
<input type="number"
218+
id="quantity"
219+
class="form-control"
220+
required="required"
221+
th:min="${T(ru.mystamps.web.validation.ValidationRules).MIN_STAMPS_IN_SERIES}"
222+
th:max="${T(ru.mystamps.web.validation.ValidationRules).MAX_STAMPS_IN_SERIES}"
223+
min="1"
224+
max="50"
225+
th:field="*{quantity}" />
226+
</div>
227+
</div>
224228
<!--/*/
225-
<span id="quantity.errors" class="help-block" th:if="${#fields.hasErrors('quantity')}" th:each="error : ${#fields.errors('quantity')}" th:text="${error}"></span>
229+
<div class="row">
230+
<div class="col-sm-12">
231+
<span id="quantity.errors"
232+
class="help-block"
233+
th:if="${#fields.hasErrors('quantity')}"
234+
th:each="error : ${#fields.errors('quantity')}"
235+
th:text="${error}"></span>
236+
</div>
237+
</div>
226238
/*/-->
227239
</div>
228240
</div>

0 commit comments

Comments
 (0)