{% load i18n %}

<p>{% blocktrans with object.corp_profile.name as bname %}Thank you for applying for the corporate membership "{{ bname }}" on {{ SITE_GLOBAL_SITEDISPLAYNAME }}.{% endblocktrans %}
</p>
{% if object.authentication_method == 'secret_code' %}
<p>
{% blocktrans %}For individuals to join under your corporate membership, use the following <b>secret code</b>:{% endblocktrans %}<br />
<b>{{ object.corp_profile.secret_code }}</b>
</p>
{% endif %}


{% if invoice.balance <= 0 %}
	<p>
	{% trans "To view the invoice, go to:" %} <a href="{{ SITE_GLOBAL_SITEURL }}{% url invoice.view invoice.pk %}">{{ SITE_GLOBAL_SITEURL }}{% url invoice.view invoice.pk %}</a>
	</p>
{% else %}
	{% if object.payment_method == 'cc' or object.payment_method == 'credit card' %}
	<p>
        {% trans "To make online credit card payment, go to the invoice view page and make online payment from there." %}
		<a href="{{ SITE_GLOBAL_SITEURL }}{% url invoice.view invoice.pk %}">{{ SITE_GLOBAL_SITEURL }}{% url invoice.view invoice.pk %}</a>
		
	</p>
	{% endif %}
{% endif %}

{% if object.status_detail == "pending" %}
	<p>
	{% trans "You will be notified by email when your corporate membership is approved." %}<br /><br />
	{% trans "Your corporate membership has to be approved before individuals can join under your corporate membership." %}
	</p>
{% else %}
<p>
{% trans "To view this corporate membership, go to:" %} <a href="{{ SITE_GLOBAL_SITEURL }}{% url corpmembership.view object.pk %}">{{ SITE_GLOBAL_SITEURL }}{% url corpmembership.view object.pk  %}</a>
</p>
{% endif %}

<p>{% trans "Thanks!" %}</p>
<p>{{ SITE_GLOBAL_SITEDISPLAYNAME }}</p>
 <p>{% trans "Time submitted:" %} {% now "D d M Y P" %}</p>