Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamelers committed Sep 19, 2024
1 parent 0ee09b1 commit f8b2127
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/views/stash_datacite/resources/_payment.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script type="text/javascript">
ReactRailsUJS.mountComponents();
</script>
<% if @resource.identifier.payment_type.blank? || @resource.identifier.payment_type == 'unknown' %>
<div>
<h3>Payment</h3>
<% submitter_affiliation = @resource.identifier.submitter_affiliation %>
Expand Down Expand Up @@ -32,7 +31,7 @@
<% else %>
<p>This submission does not require a payment.</p>
<% end %>
<% if @resource.identifier.user_must_pay? || @resource.identifier.institution_will_pay? %>
<% if (@resource.identifier.payment_type.blank? || @resource.identifier.payment_type == 'unknown') && (@resource.identifier.user_must_pay? || @resource.identifier.institution_will_pay?) %>
<% if @resource.identifier.user_must_pay? %>
<h4 style="color:#cf4817">Are you affiliated with a Dryad member institution that could sponsor this fee?</h4>
<% if @aff_tenant.present? %>
Expand All @@ -49,5 +48,4 @@
<p><b>Is this correct?</b> Your author list affiliation <b><%= @aff_tenant.long_name %></b> is also a Dryad member.</p>
<% end %>
<% end %>
</div>
<% end %>
</div>

0 comments on commit f8b2127

Please sign in to comment.