commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / templates / CRM / common / fatal.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 *}
26 {* error.tpl: Display page for fatal errors. Provides complete HTML doc.*}
27 {if $config->userFramework != 'Joomla' and $config->userFramework != 'WordPress'}
28 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
29 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
30
31 <head>
32 <title>{$pageTitle}</title>
33 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
34 <base href="{$config->resourceBase}" />
35 <style type="text/css" media="screen">
36 @import url({$config->resourceBase}css/civicrm.css);
37 @import url({$config->resourceBase}bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css);
38 </style>
39 </head>
40 <body>
41 <div id="crm-container" class="crm-container" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
42 {else}
43 <div id="crm-container" class="crm-container" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
44 <style type="text/css" media="screen">
45 @import url({$config->resourceBase}css/civicrm.css);
46 @import url({$config->resourceBase}bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css);
47 </style>
48 {/if}
49 <div class="messages status no-popup"> <div class="icon red-icon ui-icon-alert"></div>
50 <span class="status-fatal">{ts}Sorry but we are not able to provide this at the moment.{/ts}</span>
51 <div class="crm-section crm-error-message">{$message}</div>
52 {if $error.message && $message != $error.message}
53 <hr style="solid 1px" />
54 <div class="crm-section crm-error-message">{$error.message}</div>
55 {/if}
56 {if ($code OR $mysql_code OR $errorDetails) AND $config->debug}
57 <div class="crm-accordion-wrapper collapsed crm-fatal-error-details-block" onclick="toggle(this);";>
58 <div class="crm-accordion-header">
59 {ts}Error Details{/ts}
60 </div><!-- /.crm-accordion-header -->
61 <div class="crm-accordion-body">
62 {if $code}
63 <div class="crm-section">{ts}Error Code:{/ts} {$code}</div>
64 {/if}
65 {if $mysql_code}
66 <div class="crm-section">{ts}Database Error Code:{/ts} {$mysql_code}</div>
67 {/if}
68 {if $errorDetails}
69 <div class="crm-section">{ts}Additional Details:{/ts} {$errorDetails}</div>
70 {/if}
71 </div><!-- /.crm-accordion-body -->
72 </div><!-- /.crm-accordion-wrapper -->
73 {/if}
74 <p><a href="{$config->userFrameworkBaseURL}" title="{ts}Main Menu{/ts}">{ts}Return to home page.{/ts}</a></p>
75 </div>
76 </div> {* end crm-container div *}
77 {literal}
78 <script language="JavaScript">
79 function toggle( element ) {
80 var className = element.className;
81 if ( className == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') {
82 element.className = 'crm-accordion-wrapper crm-fatal-error-details-block';
83 } else {
84 element.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block';
85 }
86 }
87 </script>
88 {/literal}
89 {if $config->userFramework != 'Joomla' and $config->userFramework != 'WordPress'}
90 </body>
91 </html>
92 {/if}