Skip to content

Commit 694d3e5

Browse files
authored
Merge pull request #1396 from MITLibraries/etd-658-remove-pq-form
Remove ProQuest submission field from thesis forms
2 parents d789473 + 9f627a4 commit 694d3e5

File tree

3 files changed

+0
-39
lines changed

3 files changed

+0
-39
lines changed

app/views/thesis/_author_fields.html.erb

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/views/thesis/edit.html.erb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,6 @@
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>
@@ -205,13 +199,6 @@
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) {

app/views/thesis/new.html.erb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,6 @@
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>
@@ -200,13 +194,6 @@
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) {

0 commit comments

Comments
 (0)