Skip to content
Snippets Groups Projects
Commit ee63a798 authored by muhammad-ammar's avatar muhammad-ammar
Browse files

update api request form

ENT-989
parent 48bff77b
No related merge requests found
...@@ -15,15 +15,15 @@ class ApiAccessRequestForm(forms.ModelForm): ...@@ -15,15 +15,15 @@ class ApiAccessRequestForm(forms.ModelForm):
model = ApiAccessRequest model = ApiAccessRequest
fields = ('company_name', 'website', 'company_address', 'reason', 'terms_of_service') fields = ('company_name', 'website', 'company_address', 'reason', 'terms_of_service')
labels = { labels = {
'company_name': _('Company Name'), 'company_name': _('Organization Name'),
'company_address': _('Company Address'), 'company_address': _('Organization Address'),
'reason': _('Describe what your application does.'), 'reason': _('Describe what your application does.'),
} }
help_texts = { help_texts = {
'reason': None, 'reason': None,
'website': _("The URL of your company's website."), 'website': _("The URL of your organization's website."),
'company_name': _('The name of your company.'), 'company_name': _('The name of your organization.'),
'company_address': _('The contact address of your company.'), 'company_address': _('The contact address of your organization.'),
} }
widgets = { widgets = {
'company_address': forms.Textarea() 'company_address': forms.Textarea()
......
...@@ -33,7 +33,9 @@ class TermsOfServiceCheckboxInput(CheckboxInput): ...@@ -33,7 +33,9 @@ class TermsOfServiceCheckboxInput(CheckboxInput):
# Translators: link_start and link_end are HTML tags for a link to the terms of service. # Translators: link_start and link_end are HTML tags for a link to the terms of service.
# platform_name is the name of this Open edX installation. # platform_name is the name of this Open edX installation.
label = _('I, and my company, accept the {link_start}{platform_name} API Terms of Service{link_end}.').format( label = _(
'I, and my organization, accept the {link_start}{platform_name} API Terms of Service{link_end}.'
).format(
platform_name=configuration_helpers.get_value('PLATFORM_NAME', settings.PLATFORM_NAME), platform_name=configuration_helpers.get_value('PLATFORM_NAME', settings.PLATFORM_NAME),
link_start='<a href="{url}" target="_blank">'.format(url=reverse('api_admin:api-tos')), link_start='<a href="{url}" target="_blank">'.format(url=reverse('api_admin:api-tos')),
link_end='</a>', link_end='</a>',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment