<?php
/**
 * 利用規約
 *
 * @author Shohei Nakajima <nakajimashouhei@gmail.com>
 * @link http://www.netcommons.org NetCommons Project
 * @license http://www.netcommons.org/license.txt NetCommons License
 * @copyright Copyright 2014, NetCommons Project
 */

echo $this->NetCommonsHtml->script('/install/js/install.js');
echo $this->NetCommonsHtml->css('/install/css/install.css');
?>

<?php if (isset($errors)) : ?>
	<?php foreach ($errors as $error): ?>
		<div class="alert alert-danger alert-dismissable">
			<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
			<?php echo $error; ?>
		</div>
	<?php endforeach; ?>
<?php endif; ?>

<?php echo $this->Form->create(false, array('url' => array(
		//'plugin' => 'install',
		//'controller' => 'install',
		'action' => 'index',
		'?' => ['language' => Configure::read('Config.language')]
	))); ?>

	<div class="panel panel-default">
		<div class="panel-heading"><?php echo __d('install', 'Term'); ?></div>
		<div class="panel-body">
			<div class="form-group">
				<?php echo $this->M17n->languages('language', array(
						'label' => '',
						'div' => array('class' => 'text-right'),
						'enable' => array_fill_keys(Configure::read('Config.languageEnabled'), true),
					)); ?>
			</div>
			<div class="form-group">
			<?php echo $this->Form->textarea('term',
						array(
							'default' => __d('install', 'The terms & conditions for using the contents of this site is governed
by this agreement. Please read carefully the following conditions, and
register only if you agree to them.

By using this site, I agree to refrain from the following actions, or
behavior that may lead to the following actions.

actions that are against public order or morals
actions that are against the laws or ordinances
criminal acts or actions connected to criminal acts
actions that violate rights of other users, third party, or this site
actions that slander, defame, or cause the loss of prestige or
credibility of other users, third party, or this site
actions that result in liability to other users, third party, or this site
actions that hinder the operation of this site
actions that disseminate information that are not true
postings of personal information that may lead to invasion of privacy
other actions that are deemed unsuitable by this site

Disclaimer

This site is not responsible for damage (direct or indirect) to user
that is caused by, is resulted from the connection of, the usage of
this site, contents related to this site, services from links stemming
from this site, etc.'),
							'class' => 'form-control')); ?>
			</div>
		</div>
	</div>

	<p><?php echo __d('install', 'By clicking the button, you agree to the terms above.'); ?></p>

	<button class="btn btn-lg btn-primary btn-block" type="submit">
		<?php echo __d('install', 'Next'); ?></button>
<?php echo $this->Form->end();
