<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$errorMessage = $this->session->flashdata('error');
$success = $this->session->flashdata('success');
?>
<div class="ui container" style="padding-top:5%">
	<?php if (validation_errors() || $errorMessage) { ?>
		<div class="ui negative message"><i class="close icon"></i><?php echo $errorMessage ? $errorMessage : validation_errors(); ?></div>
	<?php } ?>
	<?php if ($success) { ?>
		<div class="ui success message"><i class="close icon"></i><?php echo $success; ?></div>
	<?php } ?>
	<div class="ui equal width center aligned padded grid stackable">
		<div class="row">
			<div class="five wide column">
				<div class="ui segments">
					<?php echo form_open('reset_complete', 'class="ui form" id="reset-form"'); ?>
					<div class="ui segment">
						<div class="field">
							<div class="ui fluid icon input">
								<input name="password" type="password" placeholder="New Password..." autocomplete="off"  />
								<i class="icon key"></i>
							</div>
						</div>
						<div class="field">
							<div class="ui fluid icon input">
								<input name="confirm_password" type="password" placeholder="Confirm Password..." autocomplete="off"  />
								<i class="icon key"></i>
							</div>
						</div>

						<div class="ui divider hidden"></div>
						<button class="ui primary fluid button" type="submit"><i class="send icon"></i>Submit</button>

						<div class="field">
							<a href="<?php echo site_url('login'); ?>"><i class="arrow left icon"></i>Login</a>
						</div>
					</div>
					<?php echo form_close(); ?>
				</div>
			</div>
		</div>
	</div>
</div>
