Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
ee63a798
Commit
ee63a798
authored
6 years ago
by
muhammad-ammar
Browse files
Options
Downloads
Patches
Plain Diff
update api request form
ENT-989
parent
48bff77b
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openedx/core/djangoapps/api_admin/forms.py
+5
-5
5 additions, 5 deletions
openedx/core/djangoapps/api_admin/forms.py
openedx/core/djangoapps/api_admin/widgets.py
+3
-1
3 additions, 1 deletion
openedx/core/djangoapps/api_admin/widgets.py
with
8 additions
and
6 deletions
openedx/core/djangoapps/api_admin/forms.py
+
5
−
5
View file @
ee63a798
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
openedx/core/djangoapps/api_admin/widgets.py
+
3
−
1
View file @
ee63a798
...
@@ -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>
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment