Thank you Mark, for quick response.

Your hint gave me some progress, yet I occured that its not so easy.
I copied definition to application.dryml and I copied field-list from
show page but that gave me static fields.
I found that there is similar code in forms.dryml (i copy both drymls
below).
Stydying further I believe application calls form definition from
forms.dryml (which is propably quite obvious for you), yet in form
fields 'state' field already exists (and that confused me). How can I
make this field visible, where should I look?


FORMS.DRYML
<def tag="form" for="User">
  <form merge param="default">
    <error-messages param/>
    <field-list fields="name, nickname, role, email_address,
administrator, state" param/>
    <div param="actions">
      <submit label="#{ht 'users.actions.save', :default=>['Save']}"
param/><or-cancel param="cancel"/>
    </div>
  </form>
</def>

APPLICATION.DRYML (from pages.dryml)
<def tag="edit-page" for="User">
  <page merge title="#{ht 'users.edit.title', :default=>['Edit
User'] }">

    <body: class="edit-page user" param/>

    <content:>
      <section param="content-header">
        <h2 param="heading">
          <ht key="users.edit.heading" name="&this.respond_to?
(:name) ? this.name : ''">
            Edit <type-name/>
          </ht>
        </h2>
        <delete-button label="#{ht
'users.actions.delete', :default=>['Remove This User']}" param/>
      </section>

      <section param="content-body">
        <form param/>
      </section>
    </content:>

  </page>
</def>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to