Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
232624b1 | 3 | | CiviCRM version 4.4 | |
6a488035 TO |
4 | +--------------------------------------------------------------------+ |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
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 | {include file="CRM/common/dashboard.tpl"} | |
27 | {include file="CRM/common/openFlashChart.tpl"} | |
28 | {* Alerts for critical configuration settings. *} | |
29 | {if ! $fromEmailOK || ! $ownerOrgOK || ! $defaultMailboxOK} | |
30 | <div class="help"> | |
31 | <div class="finalconf-intro"> | |
32 | {ts}There are a few things to setup before using your site ...{/ts} | |
33 | </div> | |
34 | {if ! $ownerOrgOK} | |
35 | <div class="finalconf-button"> | |
36 | <a href="{$fixOrgUrl}" id="fixOrgUrl" class="button"><span><div class="icon settings-icon"></div>{ts}Go{/ts}</span></a> | |
37 | </div> | |
38 | <div class="finalconf-itemdesc">{ts}Please enter your organization's name and primary address.{/ts}</div> | |
39 | <h4 class="finalconf-item"><div class="icon alert-icon"></div> {ts}Organization Name{/ts}</h4> | |
40 | <div style="clear:both"></div> | |
41 | {/if} | |
42 | {if ! $fromEmailOK} | |
43 | <div class="finalconf-button"> | |
44 | <a href="{$fixEmailUrl}" id="fixOrgUrl" class="button"><span><div class="icon settings-icon"></div>{ts}Go{/ts}</span></a> | |
45 | </div> | |
46 | <div class="finalconf-itemdesc">{ts}Please enter a default FROM Email Address (for system-generated emails).{/ts}</div> | |
47 | <h4 class="finalconf-item"><div class="icon alert-icon"></div> {ts}From Email Address{/ts}</h4> | |
48 | <div style="clear:both"></div> | |
49 | {/if} | |
50 | {if ! $defaultMailboxOK} | |
51 | <div class="finalconf-button"> | |
52 | <a href="{$fixDefaultMailbox}" id="fixDefaultMailbox" class="button"><span><div class="icon settings-icon"></div>{ts}Go{/ts}</span></a> | |
53 | </div> | |
dabeab96 | 54 | <div class="finalconf-itemdesc">{ts}Please configure a default mailbox for CiviMail.{/ts} (<a href="http://http://book.civicrm.org/user/current/initial-set-up/email-system-configuration/0" title="{ts}opens online user guide in a new window{/ts}" target="_blank">{ts}learn more{/ts}</a>)</div> |
6a488035 TO |
55 | <h4 class="finalconf-item"><div class="icon alert-icon"></div> {ts}Default CiviMail Mailbox{/ts}</h4> |
56 | <div style="clear:both"></div> | |
57 | {/if} | |
58 | </div> | |
59 | {/if} | |
9d9fa5bc | 60 | {$communityMessages} |
6a488035 | 61 | <div class="crm-submit-buttons"> |
b7054e52 | 62 | <a href="#" id="crm-dashboard-configure" class="button show-add"> |
6a488035 TO |
63 | <span><div class="icon settings-icon"></div>{ts}Configure Your Dashboard{/ts}</span></a> |
64 | ||
65 | <a style="display:none;" href="{crmURL p="civicrm/dashboard" q="reset=1"}" class="button show-done" style="margin-left: 6px;"> | |
66 | <span><div class="icon check-icon"></div>{ts}Done{/ts}</span></a> | |
67 | ||
68 | <a style="float:right;" href="{crmURL p="civicrm/dashboard" q="reset=1&resetCache=1"}" class="button show-refresh" style="margin-left: 6px;"> | |
69 | <span> <div class="icon refresh-icon"></div>{ts}Refresh Dashboard Data{/ts}</span></a> | |
70 | ||
71 | </div> | |
72 | <div class="clear"></div> | |
73 | <div class="crm-block crm-content-block"> | |
74 | {* Welcome message appears when there are no active dashlets for the current user. *} | |
75 | <div id="empty-message" class='hiddenElement'> | |
76 | <div class="status"> | |
77 | <div class="font-size12pt bold">{ts}Welcome to your Home Dashboard{/ts}</div> | |
78 | <div class="display-block"> | |
79 | {ts}Your dashboard provides a one-screen view of the data that's most important to you. Graphical or tabular data is pulled from the reports you select, and is displayed in 'dashlets' (sections of the dashboard).{/ts} {help id="id-dash_welcome" file="CRM/Contact/Page/Dashboard.hlp"} | |
80 | </div> | |
81 | </div> | |
82 | </div> | |
83 | ||
84 | <div id="configure-dashlet" class='hiddenElement'></div> | |
85 | <div id="civicrm-dashboard"> | |
86 | {* You can put anything you like here. jQuery.dashboard() will remove it. *} | |
87 | <noscript>{ts}Javascript must be enabled in your browser in order to use the dashboard features.{/ts}</noscript> | |
88 | </div> | |
89 | <div class="clear"></div> | |
90 | {literal} | |
91 | <script type="text/javascript"> | |
b7054e52 CW |
92 | cj(function($) { |
93 | $('#crm-dashboard-configure').click(function() { | |
94 | $.ajax({ | |
95 | url: CRM.url('civicrm/dashlet', 'reset=1&snippet=1'), | |
6a488035 | 96 | success: function( content ) { |
b7054e52 CW |
97 | $("#civicrm-dashboard, #crm-dashboard-configure, .show-refresh, #empty-message").hide(); |
98 | $('.show-done').show(); | |
99 | $("#configure-dashlet").show().html(content); | |
6a488035 TO |
100 | } |
101 | }); | |
b7054e52 CW |
102 | return false; |
103 | }); | |
104 | }); | |
6a488035 TO |
105 | cj().crmAccordions(); |
106 | </script> | |
107 | {/literal} | |
108 | </div> |