@@ -40,16 +40,12 @@ Unless required by applicable law or agreed to in writing, software distributed
40
40
<%= form . text_field :label , id : "supplemental_file_input_#{ section . id } _#{ file . id } " , value : file . label %>
41
41
</ div >
42
42
<% if tag == 'transcript' %>
43
- < div class ="mb-3 col-md-6 col p-0 ">
44
- <%= render partial : 'modules/autocomplete_input' , locals : { field_name : :language ,
43
+ < div class ="mb-3 col-md-6 col p-0 " style ='display: flex; '>
44
+ <%= render partial : 'modules/autocomplete_input' , locals : { field_name : "supplemental_file[language]" ,
45
+ for_field : "language_#{ file . id } " ,
45
46
field_id : "supplemental_file_language_#{ section . id } _#{ file . id } " ,
46
47
value : display_supplemental_file_language ( file . language ) ,
47
48
model : 'languageTerm' } %>
48
- <%= form . text_field :language ,
49
- id : "supplemental_file_language_#{ section . id } _#{ file . id } " ,
50
- value : display_supplemental_file_language ( file . language ) ,
51
- class : "typeahead from-model form-control" ,
52
- data : { model : 'languageTerm' , validate : false } %>
53
49
</ div >
54
50
< div class ="row-col-sm-9 row-col-md-8 row-col-9 p-0 ">
55
51
< span class ="form-check-inline col-md-6 col-sm-6 col-6 p-0 ">
@@ -61,12 +57,12 @@ Unless required by applicable law or agreed to in writing, software distributed
61
57
</ div >
62
58
<% end %>
63
59
<% if tag == 'caption' %>
64
- < div class ="mb-3 col-md-6 col p-0 ">
65
- <%= form . text_field :language ,
66
- id : "supplemental_file_language_ #{ section . id } _ #{ file . id } " ,
67
- value : display_supplemental_file_language ( file . language ) ,
68
- class : "typeahead from-model form-control" ,
69
- data : { model : 'languageTerm' , validate : false } %>
60
+ < div class ="mb-3 col-md-6 col p-0 " style =' display: flex; ' >
61
+ <%= render partial : 'modules/autocomplete_input' , locals : { field_name : "supplemental_file[language]" ,
62
+ for_field : "language_ #{ file . id } " ,
63
+ field_id : "supplemental_file_language_ #{ section . id } _ #{ file . id } " ,
64
+ value : display_supplemental_file_language ( file . language ) ,
65
+ model : 'languageTerm' } %>
70
66
</ div >
71
67
< div class ="row-col-sm-9 row-col-md-8 row-col-9 p-0 ">
72
68
< div class ="form-check-inline col-md-6 col-sm-6 col-6 p-0 ">
0 commit comments