TurboGears is screaming like crazy about this template of mine. says
the error is in the line 28, column 18. That line has just som
javascript. There shoulden't be a erro >__>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";
xmlns:py="http://purl.org/kid/ns#";
    py:extends="'master.kid'">

        <!--
        objetos:
                        login
                        senha
                        login_form:id
        entradas:
                        right_items
                        page
                        perfis
                        now
        -->

<head>
    <meta content="application/xhtml+xml; charset=iso-8859-1"
http-equiv="content-type" py:replace="''"/>
        <title>Bem vindo ao Wiki da UECE</title>
        <script type="text/javascript">
                function getElement( el ){
                        return (typeof el == 'string') ? 
document.getElementById(el): el;
                }

                function submit_login(){
                        var log = getElement('nome_de_usuario');
                        var sen = getElement('senha_de_acesso');
                        if( log.value && sen.value ){
                                f = getElement('login_form');
                                f.action='login'
                                f.submit();
                        }else
                                alert('Os campos login e senha são 
obrigatórios.\nFavor,
preencher.')
                }
        </script>
</head>

<body>
        <div class="header">
                <h2>Wiki UECE</h2>
        </div>
        <div class="header_bar">
                <!-- Dependente de perfil -->
                <div py:if="usuario in perfis">
                        <a href="/pvt/meusDados">Editar dados pessoais</a>
                        <a href="/pvt/mensagens" class="mensagens">Mensagens 
Privadas</a>
                        <a href="/pvt/criarWiki">Criar Wiki</a>
                </div>

                <!-- Só aparece caso não esteja logado -->
                <form py:if="not perfil" action="" method="post" 
id="login_form">
                        <label for="nome_de_usuario">Login:</label>
                        <input maxlength="20" type="text" id="nome_de_usuario" 
name="login"
/>
                        <label for="senha_de_acesso">Senha:</label>
                        <input maxlength="20" type="password" 
id="senha_de_acesso"
name="senha"/>
                        <input type="button" onclick="submit_login()" 
value="Enviar" />
                </form>
                <!-- Aparece caso esteja logado -->
                <a py:if="perfil" href="/loggout">Logout</a>
        </div>

        <div class="left_body">
                <ol class="left_items">
                        <li>
                                <a href="/">Home</a>
                        </li>
                        <li>
                        <a href="/wikis">Lista de Wiki's</a>
                        </li>
                        <li>
                                <a href="/nos">Quem Somos</a>
                        </li>
                        <li>
                                <a href="/contato">Contato</a>
                        </li>
                </ol>

                <ul>
                        <li class="buscar_wiki">
                        <input type="text" name="wiki_busca" />
                        <input type="button" value="Buscar"
onclick="javascript:pesquisarWiki('wiki_busca')" />
                        </li>
                </ul>

        </div>

        <div class="main_body">
                <div class="pagina">
                <span py:content="page"></span>
                </div>
        </div>

        <!-- Wiki's mais recentes -->
        <div class="right_body">
                <h3 class="title">Wiki's atualizados recentemente</h3>
                <ol>
                        <li py:for="nome,link in right_items">
                        <a href="/${link}">${nome}</a>
                        </li>
                </ol>
        </div>

        <p>Congratulations, your TurboGears application is running as of <span
py:replace="now">now</span>.</p>
</body>
</html>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to