Skip to content

Commit f52fa5f

Browse files
committed
chore: add a missing asterisk to the required fields on the series info page
1 parent 75685b5 commit f52fa5f

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

src/main/frontend/src/components/AddCatalogNumbersForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class AddCatalogNumbersFormView extends React.PureComponent {
134134
</div>
135135
</div>
136136
<div className="form-group form-group-sm">
137-
<label htmlFor="catalog-numbers" className="control-label col-sm-3">
137+
<label htmlFor="catalog-numbers" className="control-label col-sm-3 required-field">
138138
{ l10n['t_numbers'] || 'Numbers' }
139139
</label>
140140
<div className="row">

src/main/frontend/src/components/AddCatalogPriceForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class AddCatalogPriceFormView extends React.PureComponent {
151151
</div>
152152
</div>
153153
<div className="form-group form-group-sm">
154-
<label htmlFor="catalog-price" className="control-label col-sm-3">
154+
<label htmlFor="catalog-price" className="control-label col-sm-3 required-field">
155155
{ l10n['t_price'] || 'Price' }
156156
</label>
157157
<div className="col-sm-3">

src/main/frontend/src/components/AddCommentForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class AddCommentFormView extends React.PureComponent {
105105
{ l10n['t_server_error'] || 'Server error' }
106106
</div>
107107
<div className="form-group form-group-sm">
108-
<label htmlFor="new-comment" className="control-label col-sm-3">
108+
<label htmlFor="new-comment" className="control-label col-sm-3 required-field">
109109
{ l10n['t_comment'] || 'Comment' }
110110
</label>
111111
<div className="col-sm-6">

src/main/java/ru/mystamps/web/feature/site/ResourceUrl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public final class ResourceUrl {
3232
public static final String STATIC_RESOURCES_URL = "https://stamps.filezz.ru";
3333

3434
// MUST be updated when any of our resources were modified
35-
public static final String RESOURCES_VERSION = "v0.4.5.0";
35+
public static final String RESOURCES_VERSION = "v0.4.5.1";
3636

3737
// CheckStyle: ignore LineLength for next 16 lines
3838
private static final String CATALOG_UTILS_JS = "/public/js/" + RESOURCES_VERSION + "/CatalogUtils.min.js";

src/main/webapp/WEB-INF/static/styles/main.css

+6
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ footer {
6363
font-style: italic;
6464
}
6565

66+
.required-field:after {
67+
/* \00a0 is the same as nbsp; */
68+
content: '\00a0*';
69+
color: #8b0000;
70+
}
71+
6672
.required_field {
6773
color: #8b0000;
6874
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
<div class="form-group form-group-sm"
137137
th:classappend="${#fields.hasErrors('imageId') ? 'has-error' : ''}"
138138
th:if="${allowReplacingImages}">
139-
<label for="image-id" class="control-label col-sm-3" th:text="#{t_image_id}">
139+
<label for="image-id" class="control-label col-sm-3 required-field" th:text="#{t_image_id}">
140140
Image ID
141141
</label>
142142
<div class="col-sm-4">

0 commit comments

Comments
 (0)