[openstack-dev] [horizon] Angular Views overriding
Yves-Gwenaël Bourhis
yves-gwenael.bourhis at cloudwatt.com
Tue Jan 26 10:13:39 UTC 2016
Hi,
Thanks a lot, that's exactly what I needed :-)
Le 25/01/2016 19:16, Thai Q Tran a écrit :
> Hello,
>
> When we designed the architecture for the angular work, we had extension
> in mind. We have pretty good support for extending a workflow (see links
> below). We have a bunch of patches that when put together will do what
> you want, but no guide on how to do it. The documentation in Horizon is
> stalling because some of us prefer to nit pick then see any real progress.
>
> https://review.openstack.org/#/c/252014/
> This patch allows you to declare your columns inside of a
> controller instead of the HTML. It doesn't get you where you want
> yet, it still requires you to modify a static file.
>
> https://review.openstack.org/#/c/214306/
> This patch has already merged so it is available now. It allows you to
> arbitrarily inject your plugin/extension into a container. See video
> below on how to use it for a workflow. This same architecture can be
> applied to table columns.
>
> Basically, most of what you want is there, but not currently
> documented. Currently, you will need do a bit more work on your end to
> get it working. Feel free to reach out to me on IRC (tqtran) or email
> (tqtran at us.ibm.com) if you are stuck somewhere.
>
> Links below provide a more detailed explanation of how to extend a workflow.
>
> Video tutorial on extending the workflow about 22 minute in:
> https://www.youtube.com/watch?v=Km99BCHfBdk
>
> And the patch containing the docs for it:
> https://review.openstack.org/#/c/244407/2/doc/source/tutorials/workflow_extend.rst
>
>
>
> ----- Original message -----
> From: Yves-Gwenaël Bourhis <yves-gwenael.bourhis at cloudwatt.com>
> To: openstack-dev at lists.openstack.org
> Cc:
> Subject: Re: [openstack-dev] [horizon] Angular Views overriding
> Date: Mon, Jan 25, 2016 7:50 AM
>
>
> Le 25/01/2016 12:27, Yves-Gwenaël Bourhis a écrit :
> > Hello All,
> >
> > I have a question regarding Horizon Angular views.
> >
> > My question is "Is there a way (and if so "a doc") of customizing
> (overriding) the current angular views without modifying the current
> static js and html files?"
> > With
> http://docs.openstack.org/developer/horizon/topics/customizing.html people
> who deploy horizon can easily modify some views without touching the
> horizon code, but what I would like to know if there is a provided
> mechanism to add some company specific columns in the angular
> launch-instance form (I want to add the prices of an instance per
> flavor, plus some extra flavor specific info, plus some flavor
> categories, plus category tabs for the images, etc...).
>
> s/what I would like to know if/what I would like to know is if/
>
> > For the moment the only method I found was either to be intrusive
> in the horizon code, either I had to have my app come first in
> installed apps and have the same static path and copy + modify all
> the angular specific html... :-/
> >
> > Is there a better way of doing so?
> >
> > If not, maybe a Blue-Print could be welcomed, because it's often
> necessary to have deployment specific overrides of the angular views
> made as easy as the python/django/horizon ones.
> >
> > Thanks all.
> >
>
> --
> Yves-Gwenaël Bourhis
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe:
> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
--
Yves-Gwenaël Bourhis
More information about the OpenStack-dev
mailing list