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]> 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].
> 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.
>
>
--
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.