[openstack-dev] [Horizon] Django

Lin Hua Cheng os.lcheng at gmail.com
Tue Feb 2 03:35:28 UTC 2016


Hi Sandeep,

Edit Subnet is a workflow that uses a _workflow.html to generate the HTML.

The form attribute is generated by looking up workflow.attr_string in
https://github.com/openstack/horizon/blob/5ef14e17961a699e5980b98aa7edb2a95a905c1b/horizon/templates/horizon/common/_workflow.html#L6

You can specify the attr_string in the workflow class provided by Matthias
and the additional form attribute should be rendered in the form.

HTH,
Lin



On Mon, Feb 1, 2016 at 4:40 AM, Sandeep Makhija <
sandeep.makhija at nectechnologies.in> wrote:

> Hi Matthias,
>
> Thanks for your reply.
>
> As mentioned, I need to change the <form> 'action' attribute of the 'Edit
> Subnet' button.\
>
>
> Regards,
> Sandeep Makhija
>
> -----Original Message-----
> From: Matthias Runge [mailto:mrunge at redhat.com]
> Sent: Monday, February 01, 2016 6:03 PM
> To: openstack-dev at lists.openstack.org
> Subject: Re: [openstack-dev] [Horizon] Django
>
> On Mon, Feb 01, 2016 at 10:56:14AM +0000, Sandeep Makhija wrote:
> > Hi,
> >
> > I have been trying to fix a bug in horizon but I am a beginner in Django
> and couldn't get my way through this code.
> >
> > Could somebody please help me with it? Below given are the details of
> what I am looking for.
>
> Since you did not describe, what you would like to change, it's a bit hard
> to set you on track.
>
> Looking at that image, I assume, you would like to change the subnet
> workflow, which is defined in subnets/workflows.py
>
>
> https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/networks/workflows.py#L457
>
>
> Matthias
> --
> Matthias Runge <mrunge at redhat.com>
>
> __________________________________________________________________________
> 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
>
>
>
> DISCLAIMER:
>
> -----------------------------------------------------------------------------------------------------------------------
> The contents of this e-mail and any attachment(s) are confidential and
> intended
> for the named recipient(s) only.
> It shall not attach any liability on the originator or NEC or its
> affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect
> the
> opinions of NEC or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification,
> distribution and / or publication of
> this message without the prior written consent of the author of this
> e-mail is
> strictly prohibited. If you have
> received this email in error please delete it and notify the sender
> immediately. .
>
> -----------------------------------------------------------------------------------------------------------------------
>
> __________________________________________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160201/a4c4b978/attachment.html>


More information about the OpenStack-dev mailing list