First look at \ow_system_plugins\base\views\controllers\join_index.html template file.
<div
id="static-sign-in-form">
{component class='BASE_CMP_SignIn'}
</div>
<script
type="text/javascript">
jQuery('#static-sign-in-form').find('form').attr('action',
'{url_for_route for="static_sign_in"}');
</script>
The right way, considering you want more control over the form will be to create additional Smarty function file \ow_smarty\plugin\function.signin_form.php containing:
<?php
function
smarty_function_signin_form( $params, &$smarty )
{
$form =
BOL_UserService::getInstance()->getSignInForm('sign-in', true);
$form->setAction(OW::getRouter()->urlForRoute('static_sign_in'));
$vr = OW_ViewRenderer::getInstance();
$assignedForms =
$vr->getAssignedVar('_owForms_');
$assignedForms[$params['name']] = $form;
$vr->assignVar('_owForms_',
$assignedForms);
}
And then insert actual form content into join_index.html and our new function call before:
{signin_form
name='sign-in'}
{form
name='sign-in'}
<div
class="clearfix">
<div
class="ow_sign_in">
{block_decorator
name='box' langLabel='base+base_sign_in_cap_label'}
<div
class="ow_user_name">
{input
name='identity'}
</div>
<div
class="ow_password">
{input
name='password'}
</div>
<div
class="ow_form_options clearfix">
<div
class="ow_right">
{submit
name='submit' class='ow_positive'}
</div>
<p
class="ow_remember_me">{input name='remember'}{label
name='remember'}</p>
<p
class="ow_forgot_pass"><a href="{url_for_route
for='base_forgot_password'}">{text
key='base+forgot_password_label'}</a></p>
</div>
{/block_decorator}
</div>
</div>
{/form}
Besides you'll probably want to edit \ow_system_plugins\base\classes\console_event_handler.php file and delete the following:
$cmp = new BASE_CMP_SignIn(true);
$signInMarkup = '<div
style="display:none"><div
id="base_cmp_floatbox_ajax_signin">' . $cmp->render() .
'</div></div>';
$item = new BASE_CMP_ConsoleItem();
$item->setControl($signInMarkup . '<span
class="ow_signin_label' . (empty($buttonList) ? '' : '
ow_signin_delimiter') . '">' . $language->text('base',
'sign_in_submit_label') . '</span>' . $iconListMarkup);
$event->addItem($item, 2);
OW::getDocument()->addOnloadScript("
$('#".$item->getUniqId()."').click(function(){new
OW_FloatBox({ \$contents: $('#base_cmp_floatbox_ajax_signin')});});
");
To remove the original login popup (or just hide it via css).