<?php

/**
* @copyright	Copyright (C) 2009 - 2012 Ready Bytes Software Labs Pvt. Ltd. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* @package 		RBInstaller
* @subpackage	Back-end
* @contact		team@readybytes.in
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

?>	
	 <div class="modal-header">
	 	<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
	 	<h3 id="myModalLabel"><?php echo Rb_Text::_('COM_RBINSTALLER_UPDATE_ACCOUNT_WINDOW_TITLE');?></h3>
	</div>

	<div class="modal-body">
		<div class="row-fluid" id="rbinstaller-credential-form">
			<div class="span11 offset1">
				<form class="form-horizontal rb-validate-form">
				
					<div class="row-fluid">
						<ul>
							<li>You need to enter the credential which you use at Reaybytes.net</li>
							<li>If you want to change account then please update email and password both.</li>
							<li>After changing email and password, click on "Verify & Save" Button.</li> 
							<li>New email and password will be stored if they are verified by Readybytes.net</li>
						</ul>					
					</div>
					
					<br>
				
					<div class="row-fluid" id="rbinstaller-credential-error">
					<?php if(isset($verification_error)):?>
						<div class="alert alert-error">
							<?php echo $verification_error;?>
			    		</div>
					<?php endif;?>
					</div>
					
					<fieldset>		
						<!-- Text input-->
						<div class="control-group">
							<label class="control-label"><?php echo Rb_Text::_('COM_RBINSTALLER_SET_CREDENTIAL_WINDOW_EMAIL');?></label>
							<div class="controls">
						    	<input id="rbinstaller-credential-email" name="rbinstaller_credential_email" class="validate-email" required type="text" value="<?php echo $credential['email'];?>">			    	
							</div>
						</div>
						
						<!-- Text input-->
						<div class="control-group">
							<label class="control-label"><?php echo Rb_Text::_('COM_RBINSTALLER_SET_CREDENTIAL_WINDOW_PASSWORD');?></label>
							<div class="controls">
						    	<input id="rbinstaller-credential-password" name="rbinstaller_credential_password" required type="password">		    	
							</div>
						</div>
						
					</fieldset>
				</form>				
			</div>
		</div>
	</div>
	
	<div class="modal-footer">
		<button class="btn btn-info" id="rbinstaller-credential-verify"><?php echo Rb_Text::_('COM_RBINSTALLER_VERIFY_AND_SAVE');?></button>		
	</div>	

<?php 