Your layout.html needs an {{include}} at the end to tell it where to insert 
the user.html view. Also, looks like user.html has one too many {{pass}} 
statements (you just need two to close the two if blocks).

Anthony

On Wednesday, March 14, 2012 3:10:52 PM UTC-4, bussiere adrien wrote:
>
> i don't understand the pass ...
> I anyone have a better tutorial than the official one.
>
> Here is my layout.html :
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http&nbsp;://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http&nbsp;://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
> <head>
>   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
>   <title>Projet Jackpoint</title> 
> </head>
> <css>
> body{
> color:#b7d14e;
> background-color:#000f00;
> margin:4px;
> margin-top:0px;
> font-family:monospace;
> }
> a:link{
> color:#94d118;
> }
> a:visited{
> color:#94a443;
> }</css>
>
>
> here is my user.html :
> {{extend 'layout.html'}}
> <body>
> <pre>
>    __             _                _       _   
>    \ \  __ _  ___| | ___ __   ___ (_)_ __ | |_ 
>     \ \/ _` |/ __| |/ / '_ \ / _ \| | '_ \| __|
>  /\_/ / (_| | (__|   <| |_) | (_) | | | | | |_ 
>  \___/ \__,_|\___|_|\_\ .__/ \___/|_|_| |_|\__|
>                       |_|   
> </pre>
> <h2>{{=T( request.args(0).replace('_',' ').capitalize() )}}</h2>
> <div id="web2py_user_form">
>   {{=form}}
>   {{if request.args(0)=='login':}}
>   {{if not 'register' in auth.settings.actions_disabled:}}
>   <br/>
>   {{pass}}
>   {{pass}}
>   {{pass}}
> </div>
> <a href="../invitation">Vous avez une invitation ? Follow the rabbit 
> ...</a><br>
> <a href="../faq">FAQ</a>
> <script language="javascript"><!--
>       jQuery("#web2py_user_form input:visible:enabled:first").focus();
>       //--></script>
>
> </body>
>
> Why does it say to me that there is not enough {{pass}} ?
> I have no pass in layout.html and in user html 3 pass.
>
> And before tryieng to make a layout and put the balise extend layout it 
> worked fine.
>
>
> regards
> Bussiere
>

Reply via email to