{% include 'SimplyTestableWebClientBundle:bs3/Partials/User/Account/Plan:summary.html.twig' %}

<h3 id="plan-allowances">Allowances</h3>
{% include 'SimplyTestableWebClientBundle:bs3/Partials/User/Account/Plan:allowances.html.twig' %}

{% if (user_summary.getTeamSummary.isInTeam and team.leader == user.username) or not user_summary.getTeamSummary.isInTeam %}
    <div id="plan-upgrade-downgrade">
        <h3>Upgrade/downgrade</h3>

        <p>
            Need to test larger sites or need to run a greater amount of tests?
        </p>

        <a class="btn btn-default" href="{{ path('view_user_account_plan_index') }}#plan-upgrade-downgrade">Change your plan <i class="fa fa-caret-right"></i></a>

        <a class="plans-link" href="{{ public_site['urls']['home'] }}{{ public_site['urls']['plans_and_pricing'] }}">View plan and pricing details <i class="fa fa-caret-right"></i></a>

    </div>
{% endif %}
{% include 'SimplyTestableWebClientBundle:bs3/Partials/User/Account/Plan:summary.html.twig' %}

<h3 id="plan-allowances">Allowances</h3>
{% include 'SimplyTestableWebClientBundle:bs3/Partials/User/Account/Plan:allowances.html.twig' %}

{% if (user_summary.getTeamSummary.isInTeam and team.leader == user.username) or not user_summary.getTeamSummary.isInTeam %}
    <div id="plan-upgrade-downgrade">
        <h3>Upgrade/downgrade</h3>

        {% if user_summary.plan.accountPlan.isCustom %}
            <p>
                You're on a custom plan. <a href="mailto:{{ external_links.contact_email|raw }}">Contact us</a>
                if you need to modify your plan.
            </p>
        {% else %}
            <p>
                Need to test larger sites or need to run a greater amount of tests?
            </p>

            <a class="btn btn-default" href="{{ path('view_user_account_plan_index') }}#plan-upgrade-downgrade">Change your plan <i class="fa fa-caret-right"></i></a>

            <a class="plans-link" href="{{ public_site['urls']['home'] }}{{ public_site['urls']['plans_and_pricing'] }}">View plan and pricing details <i class="fa fa-caret-right"></i></a>
        {% endif %}

    </div>
{% endif %}
Remove standard upgrade/downgrade options for custom plan users
Remove standard upgrade/downgrade options for custom plan users
