Add min_price var to _contribution.html template
This commit is contained in:
@@ -33,6 +33,7 @@ class ChooseModeView(View):
|
||||
if "verified" in modes:
|
||||
context["suggested_prices"] = modes["verified"].suggested_prices.split(",")
|
||||
context["currency"] = modes["verified"].currency.upper()
|
||||
context["min_price"] = modes["verified"].min_price
|
||||
|
||||
return render_to_response("course_modes/choose.html", context)
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ $(document).ready(function() {
|
||||
</div>
|
||||
%endif
|
||||
|
||||
<%include file="_contribution.html" args="suggested_prices=suggested_prices, currency=currency, chosen_price=chosen_price"/>
|
||||
<%include file="_contribution.html" args="suggested_prices=suggested_prices, currency=currency, chosen_price=chosen_price, min_price=min_price"/>
|
||||
|
||||
<div class="help-tip is-expandable">
|
||||
<h5 class="title title-expand"><i class="icon-caret-down expandable-icon"></i> ${_("Why do I have to pay? What if I don't meet all the requirements?")}</h5>
|
||||
|
||||
@@ -65,6 +65,7 @@ class VerifyView(View):
|
||||
],
|
||||
"currency": verify_mode.currency.upper(),
|
||||
"chosen_price": chosen_price,
|
||||
"min_price" : verify_mode.min_price,
|
||||
}
|
||||
|
||||
return render_to_response('verify_student/photo_verification.html', context)
|
||||
|
||||
@@ -320,7 +320,7 @@
|
||||
<p>${_("Please confirm your contribution for this course:")}</p>
|
||||
</div>
|
||||
|
||||
<%include file="/course_modes/_contribution.html" args="suggested_prices=suggested_prices, currency=currency, chosen_price=chosen_price"/>
|
||||
<%include file="/course_modes/_contribution.html" args="suggested_prices=suggested_prices, currency=currency, chosen_price=chosen_price, min_price=min_price"/>
|
||||
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
Reference in New Issue
Block a user