Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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