I would suggest that a good modal implementation for these should still
support "open in new tab/window" properly, with control/command click not
detected by the overriding JavaScript. It may be possible to do this and
keep the popup functionality passing the new id back to the parent window.

>From a UX perspective, I have heard[citation needed] that modal windows are
not ideal, mainly due to their blocking nature. However inline ajax loaded
windows are much better. For "small" parent form objects, this would likely
be ideal - click the plus icon, it reveals a 3-4 field inline form, fill
that in or cancel it, by choosing an option from the dropdown etc. This
concept of an inline parent form would be generally useful, I've written a
few limited implementations but never had the time to consider all the edge
cases to make a third party project.

There are definitely better ways to deal with raw_id_fields than the popup
window in my opinion - utilising something like select2 with ajax loading
and a hook on the ModelAdmin would be ideal.

In any case, it is fairly trivial to add options like this to the
modeladmin and make them opt in if that is desired.

Overall, I'm probably -0 on morals, but +1 on supporting an optional
alternative way to handle add buttons on related objects.

Marc
On 24 Feb 2015 16:41, "Stan" <[email protected]> wrote:

>
> On Tuesday, February 24, 2015 at 4:18:36 PM UTC+1, Florian Apolloner wrote:
>>
>>
>>
>> On Tuesday, February 24, 2015 at 3:23:23 PM UTC+1, riccardo.magliocchetti
>> wrote:
>>>
>>> I'm no UI/UX expert but modals are more or less the standard today,
>>> windows looks like a relic from the 2000s.
>>>
>>
>> That argument is based on what? I'd personally argue that windows are
>> superior cause I can easily switch between the page and the window --
>> something that does not work with modals
>>
>>
>>
> As the "helpdesk guy" for applications we develop and a "power-user" of
> Django admin, I strongly agree with Florian here.
> The ability to open and switch to other tabs in the main window - which is
> not possible with modals, right ? - and to resize/move/scroll the popup
> window with native performance beats fancy modal windows IMHO.
>
> --
> Stan
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/8d65957b-6e57-4b7a-a8b1-7ce3a2ee8a18%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/8d65957b-6e57-4b7a-a8b1-7ce3a2ee8a18%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMwjO1FOs-%2BtH6hm3OcKf%2B%3DU1%2BdG1%2B1rX%2BNO5rDU7UnUOwUY3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to