same bug on inplace_textbox and inplace_textarea
Reported by Panagiotis Skarvelis | July 8th, 2010 @ 10:45 AM
You can't start your text with char <
Try this string <a> on demo page.
I think is better label must always html_validate the text
Comments and changes to this ticket
-
Panagiotis Skarvelis July 8th, 2010 @ 12:19 PM
Another annoying think on this Elements is that if the text is empty then there is no way to find it with your mouse.
I believe is better if the text value is empty then the span label must shows the word "empty" or "click here" OR for properly internationalization an icon.
Also for the same reason the "click to edit" can change to pencil icon.
Best regards,
Panagiotis -
Panagiotis Skarvelis July 13th, 2010 @ 12:12 PM
Adding a patch for those that want non-English messages on inplace,inplace_textarea,flash,file elements on my fork
http://github.com/sl45sms/nitrogen/commit/9413bdb1b418e7cec433e8e60...Both inline_textbox and inline_textarrea have now the optional keys:
instructions_text
ok_button_text
cancel_button_textThe file element the optional key:
error_textand the flash element the optional key:
flash_close_text -
Panagiotis Skarvelis July 13th, 2010 @ 12:20 PM
For localization of datepicker_textbox element you can do something as the follow example for Greek:
#literal{text=wf:f("~s",["<script type="text/javascript" src="/nitrogen/jquery.ui.datepicker-el.js"></script>"]),html_encode=false },
#datepicker_textbox{options=[{dateFormat,"dd-mm-yy"},{regional,"el"}]}.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Nitrogen Web Framework for Erlang