#*
 * Aipo is a groupware program developed by Aimluck,Inc.
 * Copyright (C) 2004-2010 Aimluck,Inc.
 * http://aipostyle.com/
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *#

#if ($data.User.hasLoggedIn())
$screen_placeholder
#else
<card id="Login">
<p align="center">
#if (!$!data.getMessage())
<b>${l10n.LOGIN_WELCOME_AT_JETSPEED_VM}</b><br/>
#else
<b>${l10n.LOGIN_JETSPEED_WAP_VM}</b>
#end
</p>
  <do type="accept" label="login">
    <go href="$link" method="post">
      <postfield name="password" value="$(password)" /> 
      <postfield name="username" value="$(username)" />
      <postfield name="$jslink.ActionKey" value="$config.getString("action.login")" />
      <setvar name="$jslink.ActionKey" value="" />
      <setvar name="username" value="" />
      <setvar name="password" value="" />
    </go>
  </do>

#if ($data.getMessage())
<p>$!data.getMessage()</p>
<p align="center">-------</p>
#end
<p>${l10n.LOGIN_LOGIN_VM}<input name="username" type="text" size="5" value="" emptyok="false" maxlength="25"/></p>
<p>${l10n.LOGIN_PASSWD_VM}<input name="password" type="password" size="5" value="" emptyok="true" maxlength="25"/></p>
</card>
#end

