I search further, I think my issue come form html.py

https://github.com/web2py/web2py/blob/master/gluon/html.py#L1914

It seems where web2py is cooking the rendering of error stuff...

I am not sure how to pass particular class in error context only, so error
get handle by semantic ui :

https://semantic-ui.com/collections/form.html

<div class="ui form error"> <div class="field"> <label>E-mail</label> <input
type="email" placeholder="j...@schmoe.com"> </div> <div class="ui error
message <https://semantic-ui.com/collections/message.html>"> <div class=
"header">Action Forbidden</div> <p>You can only sign up for an account once
with a given e-mail address.</p> </div> <div class="ui submit button
<https://semantic-ui.com/elements/button.html>">Submit</div> </div>

I am not sure what the impact of not having error at form level as web2py
doesn't set error class to form... It can be fix with js for sure, but I
would rather prefer generate the html in the first place...

I know we want to get away from rendering stuff, but does it means will
drop it entirely once we get web3py??

I think having a kind of "progressive" approach and support server side and
client side would be more convenient than be force to do everything client
side...

Richard

On Mon, Dec 4, 2017 at 2:06 PM, Leonel Câmara <leonelcam...@gmail.com>
wrote:

> Web2py is all about having sane defaults that just work. So I think we
> should have fontawesome integrated by default with the welcome app and in
> the grid. People who want to use other icons will have to use the ui_dict
> option in the grid and make their own layout, etc. just as they always had
> to do.
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to