[openstack-dev] [Horizon][DataTables] how to generate a confirmation dialog

John Calcote john.calcote at gmail.com
Tue Nov 8 01:10:25 UTC 2016


Thanks Timur! That's exactly what I needed!

On Mon, Nov 7, 2016 at 2:50 AM, Timur Sufiev <tsufiev at mirantis.com> wrote:
> Hi, John,
>
> the code you're looking for is located here:
> https://github.com/openstack/horizon/blob/master/horizon/static/horizon/js/horizon.tables.js#L227-L312
> This is bound at
> https://github.com/openstack/horizon/blob/master/horizon/static/horizon/js/horizon.forms.js#L368-L373
>
> On Sun, Nov 6, 2016 at 10:32 PM John Calcote <john.calcote at gmail.com> wrote:
>>
>> Ping. No thoughts on this from anyone?
>>
>>
>> On Nov 4, 2016 9:26 PM, "John Calcote" <john.calcote at gmail.com> wrote:
>>>
>>> Hi all -
>>>
>>> I don't see a better forum anywhere for this post - please correct me
>>> if I'm wrong.
>>>
>>> I have a django/horizon application. On one page users may delete
>>> objects. I'd like to display a modal dialog confirming the delete
>>> before submit. Can anyone tell me if there's a way to tie a
>>> confirmation dialog to a table's DeleteAction?
>>>
>>> Note - my template is a trivial table.render with multi-select enabled -
>>> e.g.,
>>>
>>> {% block main %}
>>>     {{ table.render }}
>>> {% endblock %}
>>>
>>> I've searched the docs and the code, but nothing sticks out at me. I'm
>>> not a client-side expert, but I can usually find my way around in the
>>> chrome debugger.
>>>
>>> Thanks,
>>> John
>>
>> __________________________________________________________________________
>> 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
>



More information about the OpenStack-dev mailing list