示例#1
0
<?php 
$this->block('content');
?>
<div class="container">
	<div class="row registration-form">
		<div class="col-md-6 col-md-offset-3">
			<form action="<?php 
echo $data->uri['current'];
?>
" class="form-horizontal" method="post">
				<fieldset>
					<legend>Registration</legend>

					<?php 
echo \Windwalker\Core\Frontend\Bootstrap::renderFields($data->form->getFields());
?>

					<div class="buttons col-md-offset-3">
						<button class="btn btn-primary" type="submit">Register</button>
					</div>
				</fieldset>
			</form>
		</div>
	</div>
</div>
<?php 
$this->endblock();
?>

示例#2
0
$this->endblock();
?>

<?php 
$this->block('content');
?>
	<div class="container">
		<div class="row reset-form">
			<div class="col-md-6 col-md-offset-3">
				<form action="<?php 
echo $data->router->html('reset', array('task' => 'reset'));
?>
" class="form-horizontal" method="post">
					<fieldset>
						<legend>Reset Password</legend>
						<?php 
echo \Windwalker\Core\Frontend\Bootstrap::renderFields($data->form->getFields(), 'col-md-4', 'col-md-8');
?>

						<div class="buttons col-md-offset-3">
							<p>
								<button class="btn btn-primary" type="submit">Confirm</button>
							</p>
						</div>
					</fieldset>
				</form>
			</div>
		</div>
	</div>
<?php 
$this->endblock();