Hi Tim,

El 20/06/13 16:16, Tim Kuo escribió:
> 
> Hi, I'm trying to set up a table-plus where I can in-place edit
> one or more columns.  
> 
> Setup:
> ruby 2.0.0p195
> Rails 3.2.13
> Hobo Command Line Interface 2.0.0
> 
> Here's my users/index.dryml file:
> <index-page>
>   <collection: replace>
>     <table-plus with="&@users" fields="name, email_address, first_name,
> middle_name">
>       <first_name-view:> 
>         <editor/> 
>       </first_name-view> 
>     </table-plus>
>   </collection:>
> </index-page>
> 
> Some questions/observations:
> 
> 1) How do I suppress the display of "click to edit" in empty fields?

You can also try the translations (config/locales/app.en.yml):
en:
  hobo:
    in_place_editor:
      click_to_edit: ""

> 
> 2) If a non-admin clicks on field in the row for the admin user, the
> displayed contents of the field disappears.  A refresh displays the data
> again, but -- overall -- that's unexpected behavior.

Mmm, this is weird. Is it still happening after checking your permissions?

> 
> 3) a non-valid entry (e.g., a malformed email address) appears to update
> the field.  
> The display of the error message is suppressed,
> but can be seen if you click on field again.
> Re-freshing the webpage shows (correctly) no update to the field.

You should be getting a Javascript message with the error. The current
behaviour is to leave the incorrect message so the user can edit again
and correct it. Going back to the previous value could be annoying for
the user.

> 
> 4) Is there a shortcut for enabling in-place editing in all columns of
> the table-plus?

Yes, add tag="editor" to the table-plus:

<table-plus with="&@users" fields="name, email_address, first_name,
middle_name" tag="editor">

> 
> 5) Newbie question: What's the best tutorial for explaining 
> how to get table-plus to sort by rows?

This link should help:
http://hobocentral.net/tutorials/agility#improve-the-project-page-with-a-searchable-sortable-table

Regards,
Ignacio

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


Reply via email to