<%! from django.utils.translation import ugettext as _ %> <%page args="section_data"/> <%include file="add_coupon_modal.html" args="section_data=section_data" /> <%include file="edit_coupon_modal.html" args="section_data=section_data" />

${_("Coupons List")} %if section_data['total_amount'] is not None: ${_("Total Amount: ")}$${section_data['total_amount']} %endif

${_("Coupons Information")} ${_("+ Add Coupon")}
%if len(section_data['coupons']): %for coupon in section_data['coupons']: %if coupon.is_active == False: %else: %endif %endfor
${_("Code")} ${_("Description")} ${_("Course_id")} ${_("Discount(%)")} ${_("Count")} ${_("Actions")}
${coupon.code} ${coupon.description} ${coupon.course_id.to_deprecated_string()} ${coupon.percentage_discount} ${ coupon.couponredemption_set.all().count() } [x]Edit
%endif