Changes between Version 3 and Version 4 of Ticket #10938, comment 10


Ignore:
Timestamp:
Sep 8, 2011, 12:46:21 PM (13 years ago)
Author:
stormlifter

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10938, comment 10

    v3 v4  
    99}}}
    1010
    11 The sytax that melinath suggest isn't bad. Another idea would be to call a special method that allows you to insert the Inline at a specified index. So you could say in the example of melinath "fieldsets.inject(1,SomeInline)" which would put the fieldsets from SomeInline into the fieldsets of the parent at that location.
     11The sytax that melinath suggest isn't bad. Another idea would be to call a special method that allows you to insert the Inline at a specified index. So you could say in the example of melinath {{{"fieldsets.inject(1,SomeInline)"}}} which would put the fieldsets from SomeInline into the fieldsets of the parent at that location.
    1212
    1313The issue I am getting is that since the fieldsets are unable to include any inline fields that the fields from the inline model are always forced to the bottom, of course I could use JS to move them to the top, but that's just boring. I could also override the form and make it save that added field to the appropriate model, but that's just sloppy.
Back to Top