houdini/app/views/settings/_pricing.html.erb
Bradley M. Kuhn 22adb4d5fd Relicense all .erb files under new project license.
The primary license of the project is changing to:
  AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later

with some specific files to be licensed under the one of two licenses:
   CC0-1.0
   LGPL-3.0-or-later

This commit is one of the many steps to relicense the entire codebase.

Documentation granting permission for this relicensing (from all past
contributors who hold copyrights) is on file with Software Freedom
Conservancy, Inc.
2018-03-25 15:10:40 -04:00

48 lines
1.7 KiB
Text

<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
<!-- settings/_pricing -->
<header class='pane-header'>
<h3>Pricing Plan</h3>
</header>
<div class='pane-inner'>
<p><strong>Tier:
<%= @nonprofit.billing_plan.name %>
(
$<%= Format::Currency.cents_to_dollars @nonprofit.billing_plan.amount %> <%= @nonprofit.billing_plan.interval || 'monthly'%>
<%= @nonprofit.billing_plan.percentage_fee > 0 ? ', ' + (@nonprofit.billing_plan.percentage_fee * 100).round(2).to_s + '%' : '' %>
)
</strong><br>
<em><small>Our processor (Stripe) assesses an additional 2.2% + $0.30 for each online payment.</small></em></p>
<% if @nonprofit.billing_subscription.status == 'trialing' %>
<p>
To ensure that your account stays active after your trial,
<a href='/nonprofits/<%=@nonprofit.id%>/card/edit'><strong> add a payment method.</strong></a>
</p>
<% end %>
<% if @nonprofit.billing_plan.amount > 0 && @nonprofit.billing_subscription.status != 'trialing' %>
<p><a class='u-color--red u-small' href='/nonprofits/<%=@nonprofit.id%>/billing_subscription/cancellation'>Unsubscribe from plan</a></p>
<p>
<strong>
<a href='/nonprofits/<%= @nonprofit.id %>/card/edit'>
Update payment method
</a>
</strong>
</p>
<% end %>
<% if @nonprofit.active_card %>
<hr>
<label>Payment Method</label>
<p>Current payment method for your nonprofit:
<strong><%= @nonprofit.active_card.name %></strong>
</p>
<% end %>
<p class='note u-marginTop--10'>If you have any questions about your current plan, please contact <a href='mailto:<%= Settings.devise.mailer_sender %>'><%= Settings.devise.mailer_sender %></a></p>
</div>