Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
968b605d
Commit
968b605d
authored
Apr 08, 2022
by
Minahil Nichols
Committed by
Peter Hegman
Apr 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add HTML5 validation to about your company form
By removing the `novalidate` attribute Changelog: changed EE: true
parent
4784d4e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ee/app/assets/javascripts/registrations/components/company_form.vue
...ets/javascripts/registrations/components/company_form.vue
+1
-1
ee/spec/features/trial_registrations/company_information_spec.rb
.../features/trial_registrations/company_information_spec.rb
+2
-1
No files found.
ee/app/assets/javascripts/registrations/components/company_form.vue
View file @
968b605d
...
@@ -73,7 +73,7 @@ export default {
...
@@ -73,7 +73,7 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<gl-form
:action=
"createLeadPath"
method=
"post"
novalidate
>
<gl-form
:action=
"createLeadPath"
method=
"post"
>
<input
:value=
"$options.csrf.token"
type=
"hidden"
name=
"authenticity_token"
/>
<input
:value=
"$options.csrf.token"
type=
"hidden"
name=
"authenticity_token"
/>
<div
class=
"gl-display-flex gl-flex-direction-column gl-sm-flex-direction-row gl-mt-5"
>
<div
class=
"gl-display-flex gl-flex-direction-column gl-sm-flex-direction-row gl-mt-5"
>
<gl-form-group
<gl-form-group
...
...
ee/spec/features/trial_registrations/company_information_spec.rb
View file @
968b605d
...
@@ -24,7 +24,7 @@ RSpec.describe 'Company Information', :js do
...
@@ -24,7 +24,7 @@ RSpec.describe 'Company Information', :js do
"company_size"
=>
'1 - 99'
.
delete
(
' '
),
"company_size"
=>
'1 - 99'
.
delete
(
' '
),
"phone_number"
=>
'+1 23 456-78-90'
,
"phone_number"
=>
'+1 23 456-78-90'
,
"country"
=>
'US'
,
"country"
=>
'US'
,
"state"
=>
''
,
"state"
=>
'
CA
'
,
"work_email"
=>
user
.
email
,
"work_email"
=>
user
.
email
,
"uid"
=>
user
.
id
,
"uid"
=>
user
.
id
,
"setup_for_company"
=>
user
.
setup_for_company
,
"setup_for_company"
=>
user
.
setup_for_company
,
...
@@ -42,6 +42,7 @@ RSpec.describe 'Company Information', :js do
...
@@ -42,6 +42,7 @@ RSpec.describe 'Company Information', :js do
fill_in
'company_name'
,
with:
'GitLab'
fill_in
'company_name'
,
with:
'GitLab'
select
'1 - 99'
,
from:
'company_size'
select
'1 - 99'
,
from:
'company_size'
select
'United States of America'
,
from:
'country'
select
'United States of America'
,
from:
'country'
select
'California'
,
from:
'state'
fill_in
'website_url'
,
with:
'gitlab.com'
fill_in
'website_url'
,
with:
'gitlab.com'
fill_in
'phone_number'
,
with:
'+1 23 456-78-90'
fill_in
'phone_number'
,
with:
'+1 23 456-78-90'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment