Explorar el Código

[fix] show upgrade button on usage page for free users too (#4535)

* [fix] show upgrade button on usage page for free users too

* Update usage_info.html
version-14
Saurabh hace 7 años
committed by Rushabh Mehta
padre
commit
4b5e347ea1
Se han modificado 1 ficheros con 6 adiciones y 4 borrados
  1. +6
    -4
      frappe/core/page/usage_info/usage_info.html

+ 6
- 4
frappe/core/page/usage_info/usage_info.html Ver fichero

@@ -1,12 +1,14 @@
<div> <div>
{% if limits.expiry %}
{% if limits.upgrade_url %}
<div class="upgrade-message padding" style="border-bottom: 1px solid #d0d8dc;"> <div class="upgrade-message padding" style="border-bottom: 1px solid #d0d8dc;">
<h4>{{ __("You have {0} days left in your subscription", [days_to_expiry]) }}</h4>
{% if limits.expiry %}
<h4>{{ __("You have {0} days left in your subscription", [days_to_expiry]) }}</h4>
{%elif%}
<h4>{{ __("You have subscribed for one user free plan") }}</h4>
{% endif %}


{% if limits.upgrade_url %}
<p>Upgrade to a premium plan with more users, storage and priority support.</p> <p>Upgrade to a premium plan with more users, storage and priority support.</p>
<button class="btn btn-primary btn-sm primary-action">Upgrade</button> <button class="btn btn-primary btn-sm primary-action">Upgrade</button>
{% endif %}
</div> </div>
{% endif %} {% endif %}




Cargando…
Cancelar
Guardar