How to declare the fieldtype of a dropdown box to be added in the login page of horizon ?

asked 2013-07-26 08:04:58 -0600

Deepak gravatar image

updated 2013-07-26 10:53:46 -0600

jpichon gravatar image


I have a code like this where I need to edit for bringing a extra label in my existing login page of horizon. I need to bring an extra label as a dropdown box in the existing login page. Please help me with the changes I need to do with the fieldtype for a dropdown box.

class AuthenticationForm(forms.Form):
    Base class for authenticating users. Extend this to get a form that accepts
    username/password logins.
    username = forms.CharField(max_length=254)
    password = forms.CharField(label="Enter Password", widget=forms.PasswordInput)
    FederatedLogin = forms.CharField(max_length=20)
    error_messages = {
        'invalid_login': _("Please enter a correct %(username)s and password. "
                           "Note that both fields may be case-sensitive."),
        'no_cookies': _("Your Web browser doesn't appear to have cookies "
                        "enabled. Cookies are required for logging in."),
        'inactive': _("This account is inactive."),
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-07-26 10:54:24 -0600

jpichon gravatar image
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-07-26 08:04:58 -0600

Seen: 381 times

Last updated: Jul 26 '13