@@ -33,19 +33,18 @@ export const onCallLogCreationConfiguration = (creationModel, template) => {
3333 return {
3434 mainPane : [
3535 h ( PanelComponent , [
36- h ( LabelPanelHeaderComponent , { required : true } , 'Short description' ) ,
36+ h ( LabelPanelHeaderComponent , { required : true , for : 'shortDescription' } , 'Short description' ) ,
3737 h ( 'input#shortDescription.form-control' , {
3838 placeholder : 'Enter a short description of the issue' ,
3939 minlength : 4 ,
4040 maxlength : 30 ,
4141 value : template . formData . shortDescription ,
4242 oninput : ( e ) => template . patchFormData ( { shortDescription : e . target . value } ) ,
43- autofocus : true ,
4443 } ) ,
4544 ] ) ,
4645 h ( '.flex-row.g3' , [
4746 h ( PanelComponent , [
48- h ( LabelPanelHeaderComponent , { required : true } , 'Detector or subsystem to be called' ) ,
47+ h ( LabelPanelHeaderComponent , { required : true , for : 'detectorOrSubsystem' } , 'Detector or subsystem to be called' ) ,
4948 template . detectorsAndSystems . match ( {
5049 NotAsked : ( ) => null ,
5150 Loading : ( ) => spinner ( { size : 2 , absolute : false } ) ,
@@ -66,7 +65,7 @@ export const onCallLogCreationConfiguration = (creationModel, template) => {
6665 } ) ,
6766 ] ) ,
6867 h ( PanelComponent , { class : 'flex-grow' } , [
69- h ( LabelPanelHeaderComponent , { required : true } , 'Severity level of the issue' ) ,
68+ h ( LabelPanelHeaderComponent , { required : true , for : 'severity' } , 'Severity level of the issue' ) ,
7069 h (
7170 'select#severity.form-control' ,
7271 { onchange : ( e ) => template . patchFormData ( { severity : e . target . value } ) } ,
@@ -81,7 +80,7 @@ export const onCallLogCreationConfiguration = (creationModel, template) => {
8180 ) ,
8281 ] ) ,
8382 h ( PanelComponent , { class : 'flex-grow' } , [
84- h ( LabelPanelHeaderComponent , { required : true } , 'Scope of the issue' ) ,
83+ h ( LabelPanelHeaderComponent , { required : true , for : 'issueScope' } , 'Scope of the issue' ) ,
8584 h (
8685 'select#issueScope.form-control' ,
8786 { onchange : ( e ) => template . patchFormData ( { scope : e . target . value } ) } ,
@@ -102,7 +101,7 @@ export const onCallLogCreationConfiguration = (creationModel, template) => {
102101 h ( 'input#shifterName.form-control' , { disabled : true , value : template . formData . shifterName } ) ,
103102 ] ) ,
104103 h ( PanelComponent , { class : 'flex-grow' } , [
105- h ( LabelPanelHeaderComponent , { required : true } , 'Shifter position' ) ,
104+ h ( LabelPanelHeaderComponent , { required : true , for : 'shifterPosition' } , 'Shifter position' ) ,
106105 h (
107106 'select#shifterPosition.form-control' ,
108107 { onchange : ( e ) => template . patchFormData ( { shifterPosition : e . target . value } ) } ,
@@ -118,7 +117,7 @@ export const onCallLogCreationConfiguration = (creationModel, template) => {
118117 ] ) ,
119118 ] ) ,
120119 h ( PanelComponent , [
121- h ( LabelPanelHeaderComponent , { required : true } , 'LHC Beam mode' ) ,
120+ h ( LabelPanelHeaderComponent , { required : true , for : 'lhcBeamMode' } , 'LHC Beam mode' ) ,
122121 h (
123122 'input#lhcBeamMode.form-control' ,
124123 {
@@ -128,7 +127,7 @@ export const onCallLogCreationConfiguration = (creationModel, template) => {
128127 ) ,
129128 ] ) ,
130129 h ( PanelComponent , { class : 'flex-column flex-grow' } , [
131- h ( LabelPanelHeaderComponent , { required : true } , 'Description of the issue' ) ,
130+ h ( LabelPanelHeaderComponent , { required : true , for : 'issue-description' } , 'Description of the issue' ) ,
132131 markdownInput (
133132 template . formData . issueDescription ,
134133 {
0 commit comments