From ced4e293319dab9d675d52f1661cb46c15c0635d Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" <mjw@mjwconsult.co.uk> Date: Sun, 21 Jul 2019 17:41:04 +0100 Subject: [PATCH] Fix theming on webhook form when there is no bootstrap theme --- templates/CRM/Stripe/Form/UpdateWebhook.tpl | 84 +++++++++++---------- 1 file changed, 43 insertions(+), 41 deletions(-) diff --git a/templates/CRM/Stripe/Form/UpdateWebhook.tpl b/templates/CRM/Stripe/Form/UpdateWebhook.tpl index 2c41d8ea..bc821ab5 100644 --- a/templates/CRM/Stripe/Form/UpdateWebhook.tpl +++ b/templates/CRM/Stripe/Form/UpdateWebhook.tpl @@ -1,42 +1,44 @@ -{if $isAllOk} - <div class="alert alert-success">{$intro}</div> -{/if} -{if $shouldOfferToFix} - <h3>Problems discovered:</h3> - <div class="alert alert-warning"> - <ul> - {foreach from=$messages item=message} - <li>{$message.title}: {$message.message}</li> - {/foreach} - </ul> - </div> - <div class="alert alert-info"> - <p>Please click the Update / Create webhook button to - attempt to fix.</p> - <p>This will attempt to check and correct your Stripe webhooks. Note: do not - run this in a development environment unless you want a webhook set up that - points to your development domain(!).</p> - </div> -{/if} +<div class="crm-block crm-content-block"> + {if $isAllOk} + <div class="alert alert-success">{$intro}</div> + {/if} + {if $shouldOfferToFix} + <div class="alert alert-warning status crm-warning"> + <h3>Problems discovered:</h3> + <ul> + {foreach from=$messages item=message} + <li>{$message.title}: {$message.message}</li> + {/foreach} + </ul> + </div> + <div class="alert alert-info status help"> + <p>Please click the Update / Create webhook button to + attempt to fix.</p> + <p>This will attempt to check and correct your Stripe webhooks. Note: do not + run this in a development environment unless you want a webhook set up that + points to your development domain(!).</p> + </div> + {/if} -{if $isStillBad} - <div class="alert alert-danger"> - <h3>There were errors updating the webhook(s):</h3> - <ul> - {foreach from=$messages item=message} - <li>{$message.title}: {$message.message}</li> - {/foreach} - </ul> - </div> - <div class="alert alert-info"> - The easiest way to fix this, is to - delete your webhooks from your Stripe account(s) and then revisit this page - to recreate them correctly. - </div> -{/if} -{* FOOTER *} -{if $shouldOfferToFix || $isStillBad} - <div class="crm-submit-buttons"> - {include file="CRM/common/formButtons.tpl" location="bottom"} - </div> -{/if} + {if $isStillBad} + <div class="alert alert-danger status crm-error"> + <h3>There were errors updating the webhook(s):</h3> + <ul> + {foreach from=$messages item=message} + <li>{$message.title}: {$message.message}</li> + {/foreach} + </ul> + </div> + <div class="alert alert-info status help"> + The easiest way to fix this, is to + delete your webhooks from your Stripe account(s) and then revisit this page + to recreate them correctly. + </div> + {/if} + {* FOOTER *} + {if $shouldOfferToFix || $isStillBad} + <div class="crm-submit-buttons"> + {include file="CRM/common/formButtons.tpl" location="bottom"} + </div> + {/if} +</div> \ No newline at end of file -- GitLab