Code

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


Ignore:
Timestamp:
09/08/11 10:46:37 (3 years ago)
Author:
stormlifter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10938, comment 10

    v4 v5  
    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.