Thanks for your suggestion, Bryan. I've been playing around with it for awhile trying to get it to work, but without success, so I'm not sure I'm following you. The code in my original post is a def to replace the input-many for "Concern". Is the code you are suggesting below supposed to go in that same def, or perhaps in the "edit-page" for the parent object (User) that is displaying the input-many for "User"? I also don't follow having nested feckless-fieldsets. Would you mind expanding on your post? It still seems to me that it should be possible to remove the buttons from the input-many def, but if that isn't possible and you think there is a better way I might need it spelled out more completely. I'm still somewhat of a newbie at Hobo. =)
Thanks, I appreciate your time! - Kevin On Saturday, March 23, 2013 3:56:28 AM UTC-7, Bryan Larsen wrote: > > Rather than trying to remove stuff from input-many, it's much easier > to just do it yourself: You might have to tweak things a bit to get > nested field-list's to display nicely -- you can take a look at the > input-many source code to see how we do it. > > <feckless-field-set fields="weight"> > <weight-view:> > <repeat> > <div class="well"> > <feckless-field-set fields="value"/> > </div> > </repeat> > </weight-view:> > </feckless-field-set> > Bryan > > > On Fri, Mar 22, 2013 at 5:20 PM, Kevin Brown > <[email protected]<javascript:>> > wrote: > > Is there a way to remove the +/- buttons from input-many? I have a > very > > small fixed model and I only want to allow changing the values of the > few > > records. My code is below. > > > > <def tag="input-many" for="Concern"> > > <input-many> > > <field-list: replace> > > <fieldset class="inline-vertical"> > > <div class="field weight"> > > <!-- Account for hidden_field_tag when getting the issue > label. > > --> > > <% i = this.id==0 ? nil : this.id > > lbl = i.nil? ? this : Issue.find(i).name > > %> > > <feckless-fieldset id="weight" class="horizontal" > fields="weight"> > > <weight-label:><%= lbl %></weight-label:> > > </feckless-fieldset> > > </div> > > </fieldset> > > </field-list:> > > </input-many> > > </def> > > > > > > Thanks! > > - Kevin > > > > -- > > 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] <javascript:>. > > To post to this group, send email to [email protected]<javascript:>. > > > Visit this group at http://groups.google.com/group/hobousers?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
