Bug 1015652

Summary: When domain has all gear sizes disabled, submit button is still enabled
Product: OpenShift Online Reporter: Clayton Coleman <ccoleman>
Component: WebsiteAssignee: Jordan Liggitt <jliggitt>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.xCC: xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-20 13:34:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Clayton Coleman 2013-10-04 18:04:56 UTC
The jquery form validator on the app create form (application_types/show) does not disable the submit button when the form is invalid - so the user can hit the submit button but nothing happens.  It should be be disabled when the form is invalid.

Repro:
1) Create a domain as test1 and share it with user test2
2) Disable all gear sizes in test1
3) As test2, go to the create app page.  Error messages are displayed, but the submit button is clickable

Expected:
The submit button to be disabled when the form is in error.

Comment 1 Jordan Liggitt 2013-11-20 13:34:31 UTC
Validation also triggers on submit, so we want to leave it enabled in case the user makes a change that would make the form validate correctly.