1) How do I suppress the display of "click to edit" in empty fields?

    you can use <if> tags to catch empty values and show your message.

  <first_name-view: replace>
   <if test="&this.blank?">click to edit</if> <else><first_name-view:
restore></else>
 </first_name-view:>

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.

   You will have to check the permissions section of that particular model
( its more like the ability.rb for cancan ) , you can use conditions there.





On Thu, Jun 20, 2013 at 7:46 PM, Tim Kuo <[email protected]> wrote:

>
> 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?
>
> 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.
>
> 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.
>
> 4) Is there a shortcut for enabling in-place editing in all columns of
> the table-plus?
>
> 5) Newbie question: What's the best tutorial for explaining
> how to get table-plus to sort by rows?
>
>  --
> 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.
>
>
>

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