Stephen Anderson
2006-Mar-26 23:14 UTC
[Rails] Trigger in place edit by clicking on label also?
I''ve got a page that''s very slick that uses lots of in place
edit fields
like this:
<tr><td>
<span class="label">AIM</span>
<span id="aim"><%= in_place_editor_field :member,
:aim_address
%></span> </td></tr>
My client loves this feature, but each field is <i>un-editable</i>
if
that field''s value is blank. There is nothing for the user to click on
to trigger the edit.
A possible solution would be to allow the user to also click on the
field label to trigger the edit. Can someone provide an example, or
suggestion on how to do this?
Are there other approaches that would work better?
Thanks!
-Steve-
--
Posted via http://www.ruby-forum.com/.
