def get_enterprise_program_enrollment_page(self, request, enterprise_customer, program_details):
<EOL>organizations = program_details['<STR_LIT>']<EOL>organization = organizations[<NUM_LIT:0>] if organizations else {}<EOL>platform_name = get_configuration_value('<STR_LIT>', settings.PLATFORM_NAME)<EOL>program_title = program_details['<STR_LIT:title>']<EOL>program_type_details = program_details['<STR_LIT>']<EOL>program_type = program_type_details['<STR_LIT:name>']<EOL>program_courses = program_details['<STR_LIT>']<EOL>course_count = len(program_courses)<EOL>course_count_text = ungettext(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>course_count,<EOL>).format(count=course_count)<EOL>effort_info_text = ungettext_min_max(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>_('<STR_LIT>'),<EOL>program_details.get('<STR_LIT>'),<EOL>program_details.get('<STR_LIT>'),<EOL>)<EOL>length_info_text = ungettext_min_max(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>_('<STR_LIT>'),<EOL>program_details.get('<STR_LIT>'),<EOL>program_details.get('<STR_LIT>'),<EOL>)<EOL>if program_details['<STR_LIT>']:<EOL><INDENT>purchase_action = _('<STR_LIT>')<EOL>item = _('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>purchase_action = _('<STR_LIT>')<EOL>item = _('<STR_LIT>')<EOL><DEDENT>program_data_sharing_consent = get_data_sharing_consent(<EOL>request.user.username,<EOL>enterprise_customer.uuid,<EOL>program_uuid=program_details['<STR_LIT>'],<EOL>)<EOL>if program_data_sharing_consent.exists and not program_data_sharing_consent.granted:<EOL><INDENT>messages.add_consent_declined_message(request, enterprise_customer, program_title)<EOL><DEDENT>discount_data = program_details.get('<STR_LIT>', {})<EOL>one_click_purchase_eligibility = program_details.get('<STR_LIT>', False)<EOL>if not one_click_purchase_eligibility:<EOL><INDENT>messages.add_unenrollable_item_message(request, '<STR_LIT>')<EOL><DEDENT>elif discount_data.get('<STR_LIT>') is None:<EOL><INDENT>messages.add_missing_price_information_message(request, program_title)<EOL><DEDENT>context_data = get_global_context(request, enterprise_customer)<EOL>context_data.update({<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _("<STR_LIT>"),<EOL>'<STR_LIT>': <NUM_LIT:2>,<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': <NUM_LIT:1>,<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>').format(<EOL>platform_name=platform_name,<EOL>program_type=program_type,<EOL>),<EOL>'<STR_LIT>': _('<STR_LIT>').format(<EOL>platform_name=platform_name<EOL>),<EOL>'<STR_LIT>': organization.get('<STR_LIT:name>'),<EOL>'<STR_LIT>': organization.get('<STR_LIT>'),<EOL>'<STR_LIT>': _('<STR_LIT>').format(organization=organization.get('<STR_LIT:name>')),<EOL>'<STR_LIT>': _('<STR_LIT>').format(item=item),<EOL>'<STR_LIT>': program_type_details['<STR_LIT>'].get('<STR_LIT>', {}).get('<STR_LIT:url>', '<STR_LIT>'),<EOL>'<STR_LIT>': program_type,<EOL>'<STR_LIT>': get_program_type_description(program_type),<EOL>'<STR_LIT>': program_title,<EOL>'<STR_LIT>': program_details['<STR_LIT>'],<EOL>'<STR_LIT>': program_details['<STR_LIT>'],<EOL>'<STR_LIT>': get_price_text(discount_data.get('<STR_LIT>', <NUM_LIT:0>), request),<EOL>'<STR_LIT>': get_price_text(discount_data.get('<STR_LIT>', <NUM_LIT:0>), request),<EOL>'<STR_LIT>': discount_data.get('<STR_LIT>', False),<EOL>'<STR_LIT>': program_courses,<EOL>'<STR_LIT>': [<EOL>_('<STR_LIT>'),<EOL>_('<STR_LIT>'),<EOL>],<EOL>'<STR_LIT>': _('<STR_LIT>').format(purchase_action=purchase_action),<EOL>'<STR_LIT>': program_details['<STR_LIT>'],<EOL>'<STR_LIT>': program_details['<STR_LIT>'],<EOL>'<STR_LIT>': course_count_text,<EOL>'<STR_LIT>': length_info_text,<EOL>'<STR_LIT>': effort_info_text,<EOL>'<STR_LIT>': one_click_purchase_eligibility,<EOL>})<EOL>return render(request, '<STR_LIT>', context=context_data)<EOL>
Render Enterprise-specific program enrollment page.