File tree Expand file tree Collapse file tree 3 files changed +0
-39
lines changed Expand file tree Collapse file tree 3 files changed +0
-39
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 183183 hint : 'If anything is incorrect in the non-editable fields, tell us here.' . html_safe ,
184184 hint_html : { id : 'thesis_author_note-hint' , class : 'col3q' } %>
185185
186- <%= f . simple_fields_for :authors do |author | %>
187- <% if author . object . user_id == current_user . id && satisfies_advanced_degree? ( @thesis ) %>
188- <%= render 'author_fields' , f : author %>
189- <% end %>
190- <% end %>
191-
192186 < div class ='field-row '>
193187 <%= submit_tag 'Submit thesis information' , class : 'btn button-primary' %>
194188 </ div >
205199
206200< script type ="text/javascript ">
207201 $ ( "form.thesisSubmission" ) . validate ( {
208- errorPlacement : function ( error , element ) {
209- if ( element . attr ( "name" ) == "thesis[authors_attributes][0][proquest_allowed]" ) {
210- error . insertBefore ( element ) ;
211- } else {
212- error . insertAfter ( element ) ;
213- }
214- } ,
215202 invalidHandler : function ( event , validator ) {
216203 var errors = validator . numberOfInvalids ( ) ;
217204 if ( errors ) {
Original file line number Diff line number Diff line change 181181 hint : 'If anything is incorrect in the non-editable fields, tell us here.' . html_safe ,
182182 hint_html : { id : 'thesis_author_note-hint' , class : 'col3q' } %>
183183
184- <%= f . simple_fields_for :authors do |author | %>
185- <% if author . object . user_id == current_user . id %>
186- <%= render 'author_fields' , f : author %>
187- <% end %>
188- <% end %>
189-
190184 < div class ='field-row '>
191185 <%= submit_tag 'Submit thesis information' , class : 'btn button-primary' %>
192186 </ div >
200194
201195< script type ="text/javascript ">
202196 $ ( "#new_thesis" ) . validate ( {
203- errorPlacement : function ( error , element ) {
204- if ( element . attr ( "name" ) == "thesis[authors_attributes][0][proquest_allowed]" ) {
205- error . insertBefore ( element ) ;
206- } else {
207- error . insertAfter ( element ) ;
208- }
209- } ,
210197 invalidHandler : function ( event , validator ) {
211198 var errors = validator . numberOfInvalids ( ) ;
212199 if ( errors ) {
You can’t perform that action at this time.
0 commit comments