I'm trying to customize the login form. I added this to my template.php
function neptune_theme() {
$items = array();
$items['user_login'] = array(
'render element' => 'form',
'path' => drupal_get_path('theme', 'neptune') ,
'template' => 'user-login',
'preprocess functions' => array(
'neptune_preprocess_user_login'
),
);
return $items;
}
and this is my user-login.tpl.php
<p><?php print render($intro_text); ?></p>
<div class="user-login">
<?php print drupal_render_children($form) ?>
<div class="links">
<a href="/user/register">Create an Account</a> | <a href="/user/password">Forgot Password</a>
</div>
</div>
I wanna know how to show the username, password and submit fields separately in the user-login.tpl.php file. I want to put the links for "Create an account" and "Forgot your password" before the Submit button.
I want to show something like
|Username |
|Password |
Create an Account | Forgot your password
|Submit|
Thank You. I hope it makes sense. :)