Skip to content

Commit eb8e3e1

Browse files
committed
/series/add: reorder fields.
1 parent f461dbb commit eb8e3e1

File tree

1 file changed

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

1 file changed

+51
-51
lines changed

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

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,57 @@ <h3 th:text="#{t_add_series_ucfirst}">
117117
</div>
118118
</div>
119119

120+
<div class="form-group form-group-sm" th:classappend="${#fields.hasErrors('quantity') ? 'has-error' : ''}">
121+
<label for="quantity" class="control-label col-sm-3">
122+
<span class="field-label" th:text="#{t_quantity}">
123+
Quantity
124+
</span>
125+
<span id="quantity.required" class="required_field">*</span>
126+
</label>
127+
<div class="col-sm-2">
128+
<input type="number"
129+
id="quantity"
130+
class="form-control"
131+
required="required"
132+
th:min="${T(ru.mystamps.web.validation.ValidationRules).MIN_STAMPS_IN_SERIES}"
133+
th:max="${T(ru.mystamps.web.validation.ValidationRules).MAX_STAMPS_IN_SERIES}"
134+
min="1"
135+
max="50"
136+
th:field="*{quantity}" />
137+
<span id="quantity.errors" class="help-block" th:if="${#fields.hasErrors('quantity')}" th:each="error : ${#fields.errors('quantity')}" th:text="${error}"></span>
138+
</div>
139+
</div>
140+
141+
<div class="form-group form-group-sm" th:classappend="${#fields.hasErrors('perforated') ? 'has-error' : ''}">
142+
<label for="perforated" class="control-label col-sm-3">
143+
<span class="field-label" th:text="#{t_perforated}">
144+
Perforated
145+
</span>
146+
</label>
147+
<div class="col-sm-1">
148+
<input type="checkbox" id="perforated" checked="checked" th:field="*{perforated}" />
149+
<span id="perforated.errors" class="help-block" th:if="${#fields.hasErrors('perforated')}" th:each="error : ${#fields.errors('perforated')}" th:text="${error}"></span>
150+
</div>
151+
</div>
152+
153+
<div class="form-group form-group-sm" th:classappend="${#fields.hasErrors('image') ? 'has-error' : ''}">
154+
<label for="image" class="control-label col-sm-3">
155+
<span class="field-label" th:text="#{t_image}">
156+
Image
157+
</span>
158+
<span id="image.required" class="required_field">*</span>
159+
</label>
160+
<div class="col-sm-7">
161+
<input type="file" id="image" class="form-control" style="box-shadow: none; border: 0px;" required="required" accept="image/png,image/jpeg" th:field="*{image}" />
162+
<small togglz:active="ADD_ADDITIONAL_IMAGES_TO_SERIES" sec:authorize="hasAuthority('ADD_IMAGES_TO_SERIES')">
163+
<span class="hint-block" th:text="#{t_add_more_images_hint}">
164+
You will be able to add additional images on the series page
165+
</span>
166+
</small>
167+
<span id="image.errors" class="help-block" th:if="${#fields.hasErrors('image')}" th:each="error : ${#fields.errors('image')}" th:text="${error}"></span>
168+
</div>
169+
</div>
170+
120171
<div class="form-group js-collapse-toggle-header">
121172
<div class="col-sm-offset-3 col-sm-5">
122173
<span class="glyphicon glyphicon-chevron-right" th:class="${#fields.hasErrors('day') or #fields.hasErrors('month') or #fields.hasErrors('year') ? 'glyphicon glyphicon-chevron-down' : 'glyphicon glyphicon-chevron-right'}"></span>&nbsp;<a href="javascript:void(0)" data-toggle="collapse" data-target=".js-issue-date" th:text="#{t_specify_issue_date}">
@@ -209,39 +260,6 @@ <h3 th:text="#{t_add_series_ucfirst}">
209260
</div>
210261
</div>
211262

212-
<div class="form-group form-group-sm" th:classappend="${#fields.hasErrors('quantity') ? 'has-error' : ''}">
213-
<label for="quantity" class="control-label col-sm-3">
214-
<span class="field-label" th:text="#{t_quantity}">
215-
Quantity
216-
</span>
217-
<span id="quantity.required" class="required_field">*</span>
218-
</label>
219-
<div class="col-sm-2">
220-
<input type="number"
221-
id="quantity"
222-
class="form-control"
223-
required="required"
224-
th:min="${T(ru.mystamps.web.validation.ValidationRules).MIN_STAMPS_IN_SERIES}"
225-
th:max="${T(ru.mystamps.web.validation.ValidationRules).MAX_STAMPS_IN_SERIES}"
226-
min="1"
227-
max="50"
228-
th:field="*{quantity}" />
229-
<span id="quantity.errors" class="help-block" th:if="${#fields.hasErrors('quantity')}" th:each="error : ${#fields.errors('quantity')}" th:text="${error}"></span>
230-
</div>
231-
</div>
232-
233-
<div class="form-group form-group-sm" th:classappend="${#fields.hasErrors('perforated') ? 'has-error' : ''}">
234-
<label for="perforated" class="control-label col-sm-3">
235-
<span class="field-label" th:text="#{t_perforated}">
236-
Perforated
237-
</span>
238-
</label>
239-
<div class="col-sm-1">
240-
<input type="checkbox" id="perforated" checked="checked" th:field="*{perforated}" />
241-
<span id="perforated.errors" class="help-block" th:if="${#fields.hasErrors('perforated')}" th:each="error : ${#fields.errors('perforated')}" th:text="${error}"></span>
242-
</div>
243-
</div>
244-
245263
<div class="form-group js-collapse-toggle-header">
246264
<div class="col-sm-offset-3 col-sm-7">
247265
<span class="glyphicon glyphicon-chevron-right" th:class="${showCatalogsInfo ? 'glyphicon glyphicon-chevron-down' : 'glyphicon glyphicon-chevron-right'}"></span>&nbsp;<a href="javascript:void(0)" data-toggle="collapse" data-target=".js-catalogs-info" th:text="#{t_add_catalogs_info}">
@@ -402,24 +420,6 @@ <h3 th:text="#{t_add_series_ucfirst}">
402420
</div>
403421
</div>
404422

405-
<div class="form-group form-group-sm" th:classappend="${#fields.hasErrors('image') ? 'has-error' : ''}">
406-
<label for="image" class="control-label col-sm-3">
407-
<span class="field-label" th:text="#{t_image}">
408-
Image
409-
</span>
410-
<span id="image.required" class="required_field">*</span>
411-
</label>
412-
<div class="col-sm-7">
413-
<input type="file" id="image" class="form-control" style="box-shadow: none; border: 0px;" required="required" accept="image/png,image/jpeg" th:field="*{image}" />
414-
<small togglz:active="ADD_ADDITIONAL_IMAGES_TO_SERIES" sec:authorize="hasAuthority('ADD_IMAGES_TO_SERIES')">
415-
<span class="hint-block" th:text="#{t_add_more_images_hint}">
416-
You will be able to add additional images on the series page
417-
</span>
418-
</small>
419-
<span id="image.errors" class="help-block" th:if="${#fields.hasErrors('image')}" th:each="error : ${#fields.errors('image')}" th:text="${error}"></span>
420-
</div>
421-
</div>
422-
423423
<div class="form-group form-group-sm">
424424
<div class="col-sm-offset-3 col-sm-5">
425425
<input type="submit" class="btn btn-primary" value="Add" th:value="#{t_add}" />

0 commit comments

Comments
 (0)