Hi Stefan, I think I know what you mean about adding many elements in one form. Please take a look at this screenshot from a recent application I have developed. The user adds many "materials" to a "work report". Every material is searched with a name-one, and also the user adds the amount of units used:
http://ubuntuone.com/0YBxewOIiLyfZdBl5ULmTC This is the code we have used insite the work report form: <work-report-materials-view:> <input-many> <field-list fields="material" size="7"> <material-label: replace/> <material-view:> <name-one complete-target="&@work_report" completer="material" autocomplete="off" class="span6"/> <input with="&this_parent" field="amount" class="span1"/> </material-view:> </field-list> </input-many> </work-report-materials-view:> If it doesn't fit your needs, please say and we'll try to find a solution :). Regards, Ignacio El 09/12/13 22:31, Stefan Haslinger escribió: > Hi Ignacio, > thanks for answer, yes and yes. And the <name-one> in my code snippet > uses the typehead already as far as I understand (see below) and it is > crazy fast (you wouldn't believe it's making a server round trip at all, > sometimes at 30ms). > > <https://lh3.googleusercontent.com/-dMaxdmYFB8w/UqYuHsPynnI/AAAAAAAAASo/MMdji1m4Lqk/s1600/screenshot.png> > > > > The only problem left is, that I can only add one associated item, then > I have to save, then to edit again, add one more item and so on. (I am > on the has_many :through side of the association here.) > I don't get how <select-many> manages this. I don't see any > dynamics/javascript trigger in the definition at > > https://github.com/Hobo/hobo/blob/master/hobo_rapid/taglibs/inputs/select_many.dryml > . > Could it be, that I have to change hjq-select-many.js for this? > > -- > You received this message because you are subscribed to the Google > Groups "Hobo Users" 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/hobousers. > For more options, visit https://groups.google.com/groups/opt_out. -- Ignacio Huerta Arteche http://www.ihuerta.net Teléfono: 0034 645 70 77 35 Email realizado con software libre -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers. For more options, visit https://groups.google.com/groups/opt_out.
bincVVQLsH91M.bin
Description: Binary data
