Re: [openstack-dev] [Horizon] Email as User Name on the Horizon login page

2016-01-17 Thread Adrian Turjak
Updating the label code in django_openstack_auth isn't an option since it would mean forking and maintaining our own copy of the library for most likely one line of code. Diana, any clue how would I go about overriding the label solely with code placed in Horizon? Ideally we'd like to just place

Re: [openstack-dev] [Horizon] Email as User Name on the Horizon login page

2016-01-15 Thread Adrian Turjak
Thanks, as a hack that's not a bad fix. We maintain our own Horizon repo anyway and rebase often, so it's a change we can carry if needed. I'm just confused as to why these changes were made to work as they are. I mean sure having the html populate based on the form details is nice in

Re: [openstack-dev] [Horizon] Email as User Name on the Horizon login page

2016-01-15 Thread Lin Hua Cheng
It might be simpler to just update the label on the python code. This is where the form label are defined. You can update the label here: https://github.com/openstack/django_openstack_auth/blob/stable/kilo/openstack_auth/forms.py#L51 -Lin On Fri, Jan 15, 2016 at 12:54 AM, Itxaka Serrano Garcia

Re: [openstack-dev] [Horizon] Email as User Name on the Horizon login page

2016-01-15 Thread Diana Whitten
Adrian, Changing the label is also possible through overrides, but customizing any label that goes through Localization might affect other languages. Not sure if this might be a problem for you. If this isn't ideal, we can easily put in hooks to allow customization purely through CSS, using

Re: [openstack-dev] [Horizon] Email as User Name on the Horizon login page

2016-01-15 Thread Itxaka Serrano Garcia
Looks like the form comes from django_openstack_auth: https://github.com/openstack/django_openstack_auth/blob/master/openstack_auth/forms.py#L53 But to be honest, no idea how that can be overridden trough the themes, not sure if its even possible to override anything on that page without

[openstack-dev] [Horizon] Email as User Name on the Horizon login page

2016-01-14 Thread Adrian Turjak
I've run into a weird issue with the Liberty release of Horizon. For our deployment we enforce emails as usernames, and thus for Horizon we used to have "User Name" on the login page replaced with "Email". This used to be a straightforward change in the html template file, and with the