Skip to content

Commit

Permalink
Update success.tpl CSS (pre/post upgrade messages)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlutfy committed Mar 30, 2023
1 parent 3e87784 commit 511c73b
Showing 1 changed file with 61 additions and 30 deletions.
91 changes: 61 additions & 30 deletions templates/CRM/common/success.tpl
Expand Up @@ -12,42 +12,73 @@
<h2>{$pageTitle}</h2>
{/if}
{if !$upgraded}
<div class="crm-container" style="margin-top: 2em; padding: 1em; background-color: #FFFFE3; border: 1px #F8FF00 solid; color: black;">
<form method="post">
<p>
<span class="crm-status-icon info"> </span>
{ts 1=$currentVersion 2=$newVersion}The database will be upgraded from %1 to %2.{/ts}
</p>
{if $preUpgradeMessage}
<div style="border: 2px solid #E43D2B; background-color: rgba(228, 61, 43, 0.08); padding: 10px; margin-bottom: 15px;">
<span class="crm-status-icon"></span>
<strong style="vertical-align: middle; font-size: 1.2em;">{ts}Warning:{/ts}</strong>
{$preUpgradeMessage}
</div>
<div class="crm-container" style="background-color: #FFFFE3; border: 1px #F8FF00 solid;">
<div class="crm-success-wrapper">
<form method="post">
{if $preUpgradeMessageX}
<div class="crm-success-flex">
<div><span class="crm-status-icon"></span></div>
<div><strong style="vertical-align: middle; font-size: 1.2em;">{ts}Warning{/ts}</strong></div>
</div>
{$preUpgradeMessage}
{/if}
<p><strong>{ts}Back up your database before continuing.{/ts}</strong>
{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>
<p>{ts 1=$currentVersion 2=$newVersion}The database will be upgraded from %1 to %2.{/ts}</p>
<input type="hidden" name="action" value="begin" />
<button type="submit" class="crm-button" name="upgrade" onclick="return confirm('{ts escape="js"}Are you sure you are ready to upgrade now?{/ts}');" >
<i class="crm-i fa-rocket" aria-hidden="true"></i>
{ts}Upgrade Now{/ts}
</button>&nbsp;&nbsp;
<a class="button cancel crm-form-submit" href="{$cancelURL}">
<i class="crm-i fa-times" aria-hidden="true"></i>
{ts}Cancel{/ts}
</a>
</form>
<div class="crm-submit-buttons">
<button type="submit" class="crm-button crm-form-submit" name="upgrade" onclick="return confirm('{ts escape="js"}Are you sure you are ready to upgrade now?{/ts}');" >
<i class="crm-i fa-rocket" aria-hidden="true"></i>
{ts}Upgrade Now{/ts}
</button>
</div>
</form>
</div>
</div>

{else}
<div class="crm-container" style="margin-top: 2em; padding: 1em; background-color: #EEFFEE; border: 1px #070 solid; color: black;">
<div class="bold" style="padding: 1em; background-color: rgba(255, 255, 255, 0.76);">
<p>
<img style="display:block; float:left; width:40px; margin-right:10px;" src="{$config->resourceBase}i/logo_lg.png">
{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}
</p>
<div class="crm-container" style="background-color: #EEFFEE; border: 1px #44cb7e solid;">
<div class="crm-success-wrapper">
<div class="crm-success-flex" style="font-size: 20px; line-height: 1.4em;">
<div style="margin-right: 20px;">
<img style="width: 50px;" src="{$config->resourceBase}i/logo_lg.png">
</div>
<div>
<p>{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}</p>
</div>
</div>
<div class="crm-success-flex">
<div style="margin: 0 10px;"><span class="crm-status-icon success"></span></div>
<div>{$message}</div>
</div>
<div style="padding: 1em;">
<p><a href="{crmURL p='civicrm/a/#/status'}" title="{ts}CiviCRM Status Check{/ts}" style="text-decoration: underline;">{ts}View the CiviCRM System Status{/ts}</a></p>
<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>
</div>
</div>
<p><span class="crm-status-icon success"> </span>{$message}</p>
<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>
</div>
{/if}
{literal}
<style>
.crm-container {
margin-top: 2em;
border-radius: 5px;
color: black;
font-family: sans-serif;
font-size: 16px;
}
.crm-success-wrapper {
padding: 1em;
background-color: rgba(255, 255, 255, 0.5);
}
.crm-success-flex {
display: flex;
padding: 1em;
}
.crm-success-flex > div:first-child {
min-width: 50px;
}
.crm-container summary {
color: black;
}
</style>
{/literal}

0 comments on commit 511c73b

Please sign in to comment.