%page args="course_overview, entitlement, dashboard_index, can_refund_entitlement" expression_filter="h"/>
<%!
from django.utils.translation import ugettext as _
from django.core.urlresolvers import reverse
%>
<%
dropdown_id = "entitlement-actions-dropdown-{}".format(dashboard_index)
dropdown_btn_id = "entitlement-actions-dropdown-btn-{}".format(dashboard_index)
%>
## id, data-dropdown-selector, and data-dropdown-button-selector must be defined for compatibility with
## lms/static/js/dashboard/dropdown.js
% if can_refund_entitlement:
## href, id, rel, and data-model-close-button-selector must be defined for compatibility with lms/static/js/leanModal.js
## data-dropdown-selector and data-dropdown-button-selector must be defined for compatibility with lms/static/js/dashboard/dropdown.js
## class="js-entitlement-action-unenroll" must be set for compatibility with lms/static/js/learner_dashboard/views/entitlement_unenrollment_view.js
${_('Unenroll')}