Skip to content

Commit

Permalink
Merge pull request #1396 from MITLibraries/etd-658-remove-pq-form
Browse files Browse the repository at this point in the history
Remove ProQuest submission field from thesis forms
  • Loading branch information
jazairi authored Dec 4, 2024
2 parents d789473 + 9f627a4 commit 694d3e5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 39 deletions.
13 changes: 0 additions & 13 deletions app/views/thesis/_author_fields.html.erb

This file was deleted.

13 changes: 0 additions & 13 deletions app/views/thesis/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,6 @@
hint: 'If anything is incorrect in the non-editable fields, tell us here.'.html_safe,
hint_html: { id: 'thesis_author_note-hint', class: 'col3q' } %>

<%= f.simple_fields_for :authors do |author| %>
<% if author.object.user_id == current_user.id && satisfies_advanced_degree?(@thesis) %>
<%= render 'author_fields', f: author %>
<% end %>
<% end %>

<div class='field-row'>
<%= submit_tag 'Submit thesis information', class: 'btn button-primary' %>
</div>
Expand All @@ -205,13 +199,6 @@

<script type="text/javascript">
$("form.thesisSubmission").validate({
errorPlacement: function(error, element) {
if (element.attr("name") == "thesis[authors_attributes][0][proquest_allowed]") {
error.insertBefore(element);
} else {
error.insertAfter(element);
}
},
invalidHandler: function(event, validator) {
var errors = validator.numberOfInvalids();
if (errors) {
Expand Down
13 changes: 0 additions & 13 deletions app/views/thesis/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,6 @@
hint: 'If anything is incorrect in the non-editable fields, tell us here.'.html_safe,
hint_html: { id: 'thesis_author_note-hint', class: 'col3q' } %>

<%= f.simple_fields_for :authors do |author| %>
<% if author.object.user_id == current_user.id %>
<%= render 'author_fields', f: author %>
<% end %>
<% end %>

<div class='field-row'>
<%= submit_tag 'Submit thesis information', class: 'btn button-primary' %>
</div>
Expand All @@ -200,13 +194,6 @@

<script type="text/javascript">
$("#new_thesis").validate({
errorPlacement: function(error, element) {
if (element.attr("name") == "thesis[authors_attributes][0][proquest_allowed]") {
error.insertBefore(element);
} else {
error.insertAfter(element);
}
},
invalidHandler: function(event, validator) {
var errors = validator.numberOfInvalids();
if (errors) {
Expand Down

0 comments on commit 694d3e5

Please sign in to comment.