Skip to content

Commit

Permalink
npx eslint --fix corehq/apps/domain/templates/domain/renew_plan.html
Browse files Browse the repository at this point in the history
  • Loading branch information
nospame committed Nov 14, 2024
1 parent e348b81 commit e0ed1ab
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions corehq/apps/domain/templates/domain/renew_plan.html
Original file line number Diff line number Diff line change
@@ -1,42 +1,51 @@
{% extends "domain/base_change_plan.html" %}
{% load hq_shared_tags %}

{% load i18n %}
{% load compress %}
{% load menu_tags %}

{% requirejs_main 'accounting/js/renew_plan_selection' %}

{% block plan_breadcrumbs %}{% endblock %}
{% block plan_breadcrumbs %}
{% endblock %}

{% block form_content %}
{% initial_page_data 'renewal_choices' renewal_choices %}
{% initial_page_data 'is_annual_plan' is_annual_plan %}
{% initial_page_data 'is_self_renewable_plan' is_self_renewable_plan %}

<p class="lead text-center">{% blocktrans with plan.name as p %}You are renewing your <strong>{{ p }}</strong> subscription.{% endblocktrans %}</p>

<form class="form"
method="post" action="{% url 'domain_subscription_renewal_confirmation' domain %}">
<p class="lead text-center">
{% blocktrans with plan.name as p %}
You are renewing your <strong>{{ p }}</strong> subscription.
{% endblocktrans %}
</p>

<form
class="form"
method="post"
action="{% url 'domain_subscription_renewal_confirmation' domain %}"
>
{% csrf_token %}

{% if is_self_renewable_plan %}
{% include 'accounting/partials/renew_plan_selection.html' %}
{% include 'accounting/partials/renew_plan_selection.html' %}
{% else %}
{% include 'accounting/partials/confirm_plan_summary.html' %}
{% include 'accounting/partials/confirm_plan_summary.html' %}
{% endif %}

<input type="hidden" name="from_plan_page" value="true" />
<input type="hidden" name="plan_edition" value="{{ current_edition }}">
<input type="hidden" name="plan_edition" value="{{ current_edition }}" />

<div class="text-center plan-next">
{% if downgrade_messages %}
<a class="btn btn-default btn-lg" href="{% url 'custom_plan_request_quote' domain %}">{% trans 'Talk to Sales' %}
<a
class="btn btn-default btn-lg"
href="{% url 'custom_plan_request_quote' domain %}"
>{% trans 'Talk to Sales' %}
</a>
{% endif %}
<button type="submit"
class="btn btn-primary btn-lg">
{% trans 'Next' %}</button>
<button type="submit" class="btn btn-primary btn-lg">
{% trans 'Next' %}
</button>
</div>
</form>
{% endblock %}

0 comments on commit e0ed1ab

Please sign in to comment.