<?php
/**
 * @package	RSMembership!
 * @copyright	(c) 2009 - 2016 RSJoomla!
 * @link		https://www.rsjoomla.com
 * @license	GNU General Public License http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');
?>
<div id="rsm_subscribe_login">
	<h1><?php echo JText::_('COM_RSMEMBERSHIP_RETURNING_CUSTOMER'); ?></h1>
	<p><?php echo JText::_('COM_RSMEMBERSHIP_SUBSCRIBE_PLEASE_LOGIN'); ?></p>
	<form class="rsmembership_form form-horizontal" method="post" action="<?php echo JRoute::_('index.php'); ?>" id="rsm_subscribe_login_form">
	<div class="item-page">
		<h3 class="page-header"><?php echo JText::_('COM_RSMEMBERSHIP_LOGIN_INFORMATION'); ?></h3>


		<div class="rsmemgrid-form-group rsmemgrid-row">
			<div class="rsmemgrid-col-sm-4 rsmemgrid-col-form-label"><label for="username"><?php echo JText::_('COM_RSMEMBERSHIP_USERNAME') ?></label></div>
			<div class="rsmemgrid-col-sm-8"><input name="username" id="username" type="text" class="rsmemgrid-form-control rsmemgrid-form-control-sm" alt="username" size="18" /></div>
		</div>
		<div class="rsmemgrid-form-group rsmemgrid-row">
			<div class="rsmemgrid-col-sm-4 rsmemgrid-col-form-label"><label for="passwd"><?php echo JText::_('COM_RSMEMBERSHIP_PASSWORD') ?></label></div>
			<div class="rsmemgrid-col-sm-8"><input type="password" id="passwd" name="password" class="rsmemgrid-form-control rsmemgrid-form-control-sm" size="18" alt="password" /></div>
		</div>
		<?php if(JPluginHelper::isEnabled('system', 'remember')) { ?>
		<div class="rsmemgrid-form-group rsmemgrid-row">
			<div class="rsmemgrid-col-sm-8 rsmemgrid-offset-md-4">
				<div class="rsmemgrid-form-group rsmemgrid-form-check">
					<input type="checkbox" id="remember" name="remember" class="inputbox rsmemgrid-form-check-input" value="yes" title="<?php echo JText::_('COM_RSMEMBERSHIP_REMEMBER_ME'); ?>" />
					<label for="remember" class="rsmemgrid-form-check-label"><?php echo JText::_('COM_RSMEMBERSHIP_REMEMBER_ME') ?></label>
				</div>
			</div>
		</div>
		<?php } ?>

		<div class="form-actions">
			<button type="submit" class="btn btn-info rsmemgrid-btn"><?php echo JText::_('COM_RSMEMBERSHIP_LOGIN') ?></button>
		</div>
		<?php echo JHtml::_('form.token');?>
		<input type="hidden" name="option" value="com_users" />
		<input type="hidden" name="task" value="user.login" />
		<input type="hidden" name="return" value="<?php echo $this->return; ?>" />
	</div>
	</form>
</div>