mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-23 11:51:05 -05:00
The diffDOM Javascript sometimes throws an error if it can’t calculate a diff between the original content of the page and the updated HTML delivered via AJAX. The problem seems to be when there’s not one, consistent top-level element for it to base its calculations on. This commit: - makes sure that all AJAX-delivered partials have a wrapping `<div>` - that this `<div>` has a consistent class name to make it clear why it’s there
24 lines
659 B
HTML
24 lines
659 B
HTML
{% from "components/big-number.html" import big_number %}
|
|
|
|
<div class='grid-row ajax-block-container'>
|
|
<div class='column-half'>
|
|
<div class="keyline-block">
|
|
{{ big_number("Unlimited", 'free email allowance', smaller=True) }}
|
|
</div>
|
|
</div>
|
|
<div class='column-half'>
|
|
<div class="keyline-block">
|
|
{% if sms_chargeable %}
|
|
{{ big_number(
|
|
(sms_chargeable * sms_rate),
|
|
'spent on text messages',
|
|
currency="£",
|
|
smaller=True
|
|
) }}
|
|
{% else %}
|
|
{{ big_number(sms_allowance_remaining, 'free text messages left', smaller=True) }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|