Changes between Version 4 and Version 5 of Ticket #10938, comment 10
- Timestamp:
- Sep 8, 2011, 12:46:37 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10938, comment 10
v4 v5 9 9 }}} 10 10 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 SomeInlineinto the fieldsets of the parent at that location.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. 12 12 13 13 The 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.