<?php
/**
 * @version		$Id: confirm.php 20196 2011-01-09 02:40:25Z ian $
 * @package		Joomla.Site
 * @subpackage	com_users
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 * @since		1.5
 */

defined('_JEXEC') or die;

JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidation');
$this->form->reset( true ); // to reset the form xml loaded by the view
$this->form->loadFile( dirname(__FILE__) . DIRECTORY_SEPARATOR . "reset_confirm.xml"); // to load in our own version of reset_confirm.xml
?>

<div class="yjsg-userpages confirm">
	<h1 class="pagetitle">
		<?php echo $this->escape($this->params->get('page_title')); ?>
	</h1>
	<form action="<?php echo JRoute::_('index.php?option=com_users&task=reset.confirm'); ?>" method="post" class="yjsg-form form-validate">
		<?php foreach ($this->form->getFieldsets() as $fieldset): ?>
		<p>
			<?php echo JText::_($fieldset->label); ?>
		</p>
		<fieldset class="input form-fieldset">
			<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field): ?>
			<?php echo $field->label; ?>
			<?php echo $field->input; ?>
			<?php endforeach; ?>
		</fieldset>
		<?php endforeach; ?>
		<div>
			<button type="submit"  class="button validate"><?php echo JText::_('JSUBMIT'); ?></button>
			<?php echo JHtml::_('form.token'); ?>
		</div>
	</form>
</div>
