Merge pull request #22449 from mattwire/phpnotices
[civicrm-core.git] / templates / CRM / common / success.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
4ef8abc2 10{* Display page for Upgrades. *}
6a488035
TO
11{if $config->userSystem->is_drupal neq '1'}
12 <h2>{$pageTitle}</h2>
13{/if}
14{if !$upgraded}
4498c471 15 <div class="crm-container" style="margin-top: 2em; padding: 1em; background-color: #FFFFE3; border: 1px #F8FF00 solid; color: black;">
6a488035 16 <form method="post">
4498c471
CW
17 <p>
18 <span class="crm-status-icon info"> </span>
68b2ba78 19 {ts 1=$currentVersion 2=$newVersion}The database will be upgraded from %1 to %2.{/ts}
4498c471 20 </p>
6a488035 21 {if $preUpgradeMessage}
68b2ba78
CW
22 <div style="border: 2px solid #E43D2B; background-color: rgba(228, 61, 43, 0.08); padding: 10px; margin-bottom: 15px;">
23 <span class="crm-status-icon"></span>
24 <strong style="vertical-align: middle; font-size: 1.2em;">{ts}Warning:{/ts}</strong>
25 {$preUpgradeMessage}
26 </div>
6a488035
TO
27 {/if}
28 <p><strong>{ts}Back up your database before continuing.{/ts}</strong>
d05f3550 29 {ts}This process may change your database structure and values. In case of emergency you may need to revert to a backup.{/ts} {docURL page="sysadmin/upgrade"}</p>
6a488035 30 <input type="hidden" name="action" value="begin" />
68b2ba78 31 <button type="submit" class="crm-button" name="upgrade" onclick="return confirm('{ts escape="js"}Are you sure you are ready to upgrade now?{/ts}');" >
13a3d214 32 <i class="crm-i fa-rocket" aria-hidden="true"></i>
68b2ba78
CW
33 {ts}Upgrade Now{/ts}
34 </button>&nbsp;&nbsp;
35 <a class="button cancel crm-form-submit" href="{$cancelURL}">
13a3d214 36 <i class="crm-i fa-times" aria-hidden="true"></i>
68b2ba78
CW
37 {ts}Cancel{/ts}
38 </a>
6a488035 39 </form>
4498c471 40 </div>
6a488035
TO
41
42{else}
4498c471 43 <div class="crm-container" style="margin-top: 2em; padding: 1em; background-color: #EEFFEE; border: 1px #070 solid; color: black;">
bb216f68 44 <div class="bold" style="padding: 1em; background-color: rgba(255, 255, 255, 0.76);">
4498c471
CW
45 <p>
46 <img style="display:block; float:left; width:40px; margin-right:10px;" src="{$config->resourceBase}i/logo_lg.png">
828fc2c3 47 {ts 1="https://civicrm.org/core-team" 2="https://civicrm.org/contributors" 3="https://civicrm.org/members" 4="https://civicrm.org/partners" 5="https://civicrm.org/become-a-member?src=ug&sid=$sid" 6=$newVersion 7="https://civicrm.org/become-a-partner" 8="https://civicrm.org"}Thank you for upgrading to %6. This release was made possible by the <a href="%1" target="_blank">CiviCRM Core Team</a> and an <a href="%2" target="_blank">incredible group of CiviCRM Contributors</a>. The CiviCRM project could not exist without the continued financial support of <a href="%3" target="_blank">CiviCRM Members</a> and <a href="%4" target="_blank">CiviCRM Partners</a>. We invite you to support CiviCRM by becoming a <a href="%5" target="_blank">CiviCRM Member</a> or <a href="%7" target="_blank">CiviCRM Partner</a> today. Providing financial support ensures that the <a href="%8" target="_blank">CiviCRM project</a> can continue to provide the essential resources and services to support the <a href="%8" target="_blank">CiviCRM community</a>.{/ts}
4498c471 48 </p>
6a488035 49 </div>
bb216f68 50 <p><span class="crm-status-icon success"> </span>{$message}</p>
d6c6e4cc 51 {if !empty($afterUpgradeMessage)}
896fc1df 52 <h3>{ts}Important Notes{/ts}</h3>
4498c471
CW
53 <p>{$afterUpgradeMessage}</p>
54 {/if}
8ca4ade5 55 <p><a href="{crmURL p='civicrm/dashboard' q='reset=1'}" title="{ts}CiviCRM home page{/ts}" style="text-decoration: underline;">{ts}Return to CiviCRM home page.{/ts}</a></p>
6a488035
TO
56 </div>
57{/if}