Hobo has some limitations when redefining parameters. Most famously,
you cannot use both prepend-foo and append-foo. You may be being bit
by this.
Try this:
<field-list: replace>
<field-list fields="name, password, password_confirmation"/>
<input id="accept_tos"..../>
</field-list:>
Bryan
On Fri, Mar 8, 2013 at 7:43 PM, Kevin Brown <[email protected]> wrote:
> I'm trying to make two modifications to the hobo accept-invitation-form:
>
> 1. Add the name field so the user can edit their name.
> 2. Add an Accept-terms-of-service checkbox.
>
> The following code added to my front_site.dryml fulfills item 1, and works
> fine:
>
> <extend tag="accept-invitation-form" for="User">
> <old-accept-invitation-form merge>
> <field-list: fields="name, password, password_confirmation" param/>
> </old-accept-invitation-form>
> </extend>
>
> However, when I attempt to add the checkbox via append-field-list as in the
> following code, it both removes the name field added by the previous code,
> and does not append the new checkbox field:
>
> <extend tag="accept-invitation-form" for="User">
> <old-accept-invitation-form merge>
> <field-list: fields="name, password, password_confirmation" param/>
> <append-field-list:>
> <p>
> <input id='accept_tos' type='checkbox'
> onClick="EnableSubmit(this)"/>
> Yes I agree to the <a href="#tos" data-toggle="modal">Terms
> of Service.</a>
> </p>
> </append-field-list:>
> </old-accept-invitation-form>
> </extend>
>
> Can anybody explain what might be going on, and let me know if there is a
> better way to accomplish this? I am still somewhat new to hobo.
>
> Thanks very much!
> - 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.