<?php
/* ----------------------------------------------------------------------
 * app/views/system/auth_error_html.php :
 * ----------------------------------------------------------------------
 * CollectiveAccess
 * Open-source collections management software
 * ----------------------------------------------------------------------
 *
 * Software by Whirl-i-Gig (http://www.whirl-i-gig.com)
 * Copyright 2018 Whirl-i-Gig
 *
 * For more information visit http://www.CollectiveAccess.org
 *
 * This program is free software; you may redistribute it and/or modify it under
 * the terms of the provided license as published by Whirl-i-Gig
 *
 * CollectiveAccess is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTIES whatsoever, including any implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * This source code is free and modifiable under the terms of
 * GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
 * the "license.txt" file for details, or visit the CollectiveAccess web site at
 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
  AppController::getInstance()->removeAllPlugins();
?>
<html>
	<head>
		<title><?= $this->request->config->get("app_display_name"); ?></title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		
		<link href="<?= caGetThemeUrlPath() ?>/css/login.css" rel="stylesheet" type="text/css" />
		<?= AssetLoadManager::getLoadHTML($this->request); ?>

		<script type="text/javascript">
			// initialize CA Utils
			jQuery(document).ready(function() { caUI.utils.disableUnsavedChangesWarning(true); });
		</script>
	</head>
	<body>
		<div align="center">
			<div id="loginBox">
				<div align="center">
					<?= caGetDefaultLogo(); ?>
				</div>
				<div id="systemTitle">
<?php 
					if ($va_notifications = $this->getVar('notifications')) {  
?>
						<p class="content"><?php foreach($va_notifications as $va_notification) { print $va_notification['message']."<br/>\n"; }; ?></p>
<?php
					}
?>
				</div><!-- end  systemTitle -->
				<div id="loginForm">
					<?= caNavLink($this->request, _t("Login again"), 'loginAgainLink', 'system/auth', 'login', ''); ?>
				</div><!-- end loginForm -->
			</div><!-- end loginBox -->
		</div><!-- end center -->
	</body>
</html>
