File tree 5 files changed +15
-13
lines changed
src/main/frontend/src/components
5 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ class AddCatalogNumbersFormView extends React.PureComponent {
105
105
106
106
return (
107
107
< div className = "col-sm-12 form-group" >
108
- < form className = { `form-horizontal ${ hasValidationErrors ? 'has-error' : '' } ` } onSubmit = { handleSubmit } >
108
+ < form className = { `form-horizontal ${ hasValidationErrors ? 'has-error' : '' } ` }
109
+ onSubmit = { handleSubmit } >
109
110
< div
110
111
id = "add-catalog-numbers-failed-msg"
111
112
className = { `alert alert-danger text-center col-sm-8 col-sm-offset-2 ${ hasServerError ? '' : 'hidden' } ` } >
@@ -149,7 +150,7 @@ class AddCatalogNumbersFormView extends React.PureComponent {
149
150
< div className = "col-sm-offset-3 col-sm-4" >
150
151
< span
151
152
id = "catalog-numbers.errors"
152
- className = { `help-block ${ hasValidationErrors ? '' : 'hidden' } ` } >
153
+ className = { `help-block ${ hasValidationErrors ? '' : 'hidden' } ` } >
153
154
{ validationErrors . join ( ', ' ) }
154
155
</ span >
155
156
< button
Original file line number Diff line number Diff line change @@ -123,7 +123,8 @@ class AddCatalogPriceFormView extends React.PureComponent {
123
123
const [ currencySymbol , currencyName ] = this . getCurrencyByCatalogName ( catalog ) ;
124
124
return (
125
125
< div className = "col-sm-12 form-group" >
126
- < form className = { `form-horizontal ${ hasValidationErrors ? 'has-error' : '' } ` } onSubmit = { handleSubmit } >
126
+ < form className = { `form-horizontal ${ hasValidationErrors ? 'has-error' : '' } ` }
127
+ onSubmit = { handleSubmit } >
127
128
< div
128
129
id = "add-catalog-price-failed-msg"
129
130
className = { `alert alert-danger text-center col-sm-8 col-sm-offset-2 ${ hasServerError ? '' : 'hidden' } ` } >
@@ -169,7 +170,7 @@ class AddCatalogPriceFormView extends React.PureComponent {
169
170
< div className = "col-sm-offset-3 col-sm-4" >
170
171
< span
171
172
id = "catalog-price.errors"
172
- className = { `help-block ${ hasValidationErrors ? '' : 'hidden' } ` } >
173
+ className = { `help-block ${ hasValidationErrors ? '' : 'hidden' } ` } >
173
174
{ validationErrors . join ( ', ' ) }
174
175
</ span >
175
176
< button
Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ class AddCommentFormView extends React.PureComponent {
92
92
const hasValidationErrors = validationErrors . length > 0 ;
93
93
return (
94
94
< div className = "col-sm-12 form-group" >
95
- < form className = { `form-horizontal ${ hasValidationErrors ? 'has-error' : '' } ` } onSubmit = { handleSubmit } >
95
+ < form className = { `form-horizontal ${ hasValidationErrors ? 'has-error' : '' } ` }
96
+ onSubmit = { handleSubmit } >
96
97
< div
97
98
id = "add-comment-failed-msg"
98
99
className = { `alert alert-danger text-center col-sm-8 col-sm-offset-2 ${ hasServerError ? '' : 'hidden' } ` } >
@@ -116,7 +117,7 @@ class AddCommentFormView extends React.PureComponent {
116
117
< div className = "col-sm-offset-3 col-sm-4" >
117
118
< span
118
119
id = "comment.errors"
119
- className = { `help-block ${ hasValidationErrors ? '' : 'hidden' } ` } >
120
+ className = { `help-block ${ hasValidationErrors ? '' : 'hidden' } ` } >
120
121
{ validationErrors . join ( ', ' ) }
121
122
</ span >
122
123
< button
Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ class AddReleaseYearFormView extends React.PureComponent {
105
105
106
106
return (
107
107
< div className = "col-sm-12 form-group" >
108
- < form className = { `form-horizontal ${ hasValidationErrors ? 'has-error' : '' } ` } onSubmit = { handleSubmit } >
108
+ < form className = { `form-horizontal ${ hasValidationErrors ? 'has-error' : '' } ` }
109
+ onSubmit = { handleSubmit } >
109
110
< div
110
111
id = "add-release-year-failed-msg"
111
112
className = { `alert alert-danger text-center col-sm-8 col-sm-offset-2 ${ hasServerError ? '' : 'hidden' } ` } >
@@ -124,17 +125,15 @@ class AddReleaseYearFormView extends React.PureComponent {
124
125
onChange = { handleChange } >
125
126
< option value = "" > </ option >
126
127
{ rangeOfYears . map ( year => (
127
- < option key = { year . toString ( ) } value = { year } >
128
- { year }
129
- </ option >
128
+ < option key = { year . toString ( ) } value = { year } > { year } </ option >
130
129
) ) }
131
130
</ select >
132
131
</ div >
133
132
</ div >
134
133
< div className = "col-sm-offset-3 col-sm-4" >
135
134
< span
136
135
id = "release-year.errors"
137
- className = { `help-block ${ hasValidationErrors ? '' : 'hidden' } ` } >
136
+ className = { `help-block ${ hasValidationErrors ? '' : 'hidden' } ` } >
138
137
{ validationErrors . join ( ', ' ) }
139
138
</ span >
140
139
< button
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ class SeriesSaleImportFormView extends React.PureComponent {
132
132
< div className = "row" >
133
133
< div className = "col-sm-12" >
134
134
< form id = "import-series-sale-form"
135
- className = { `form-horizontal ${ hasValidationErrors ? 'has-error' : '' } ` }
135
+ className = { `form-horizontal ${ hasValidationErrors ? 'has-error' : '' } ` }
136
136
onSubmit = { handleSubmit } >
137
137
138
138
< div className = "form-group form-group-sm" >
@@ -150,7 +150,7 @@ class SeriesSaleImportFormView extends React.PureComponent {
150
150
onChange = { handleChange }
151
151
disabled = { isDisabled } />
152
152
< span id = "series-sale-url.errors"
153
- className = { `help-block ${ hasValidationErrors ? '' : 'hidden' } ` } >
153
+ className = { `help-block ${ hasValidationErrors ? '' : 'hidden' } ` } >
154
154
{ validationErrors . join ( ', ' ) }
155
155
</ span >
156
156
</ div >
You can’t perform that action at this time.
0 commit comments