Horizon: Disable buttons when user doesn't fill mandatory fields

Bug #1335618 reported by Ido Ovadia
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Expired
Wishlist
Unassigned

Bug Description

Description of problem:
=======================
Many dialogs have mandatory fields.
Buttons in these dialogs should be disabled until user fill the mandatory fields.

Version-Release number of selected component (if applicable):
============================================================
python-django-horizon-2014.1-7.el7ost.noarch
openstack-dashboard-2014.1-7.el7ost.noarch

How reproducible:
=================
100%

Steps to Reproduce:
===================
1. Login to Horizon
2. Click 'Project' --> 'Compute' --> 'Images'
3. Click 'Create Image'

Actual results:
===============
Mandatory fields are empty but 'Create Image' button in enabled

Expected results:
=================
The button should be disabled until user fill the mandatory fields.

Additional info:
================
Two screenshots are enclosed

Tags: ux
Revision history for this message
Ido Ovadia (iovadia) wrote :
Revision history for this message
Ido Ovadia (iovadia) wrote :
Revision history for this message
Amit Prakash Pandey (amitpp23) wrote :

But It is not creating an image. Instead it produces the error as :A image or external image location must be specified.

So I think its not a bug but a suggestion may be.
Still I would like to give it some time.

Changed in horizon:
assignee: nobody → Amit Prakash Pandey (amitpp23)
status: New → Confirmed
Revision history for this message
Liz Blanchard (lblanchard) wrote :

Right. This isn't technically a bug because it works as it was originally designed, but it would be a nice enhancement (however we'd like to track that). This would prevent the user from causing an error and instead push them to be sure they've entered all of the required criteria before continuing with the creation action.

If we were to apply something like this, I'd really like to see it applied in a way that is consistent across all of Horizon and not just to one modal at a time if possible.

Julie Pichon (jpichon)
Changed in horizon:
importance: Undecided → Wishlist
tags: added: ux
Revision history for this message
Akihiro Motoki (amotoki) wrote :

As of Django 1.11, if some mandatory field(s) is not filled when a submit button is clicked, a message which suggest such field(s) are filled is shown based on 'required' attribute and the message is pop-ed by a modern browser like Chrome.
This is three years old and we fail to get an active assignee for a long time. Let's mark it as Incomplete so that the bug can be expired. Let's tackle it as a separate bug if filed.

Changed in horizon:
assignee: Amit Prakash Pandey (amitpp23) → nobody
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Dashboard (Horizon) because there has been no activity for 60 days.]

Changed in horizon:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.