Explorar el Código

Allow label and description translation in web forms (#4481)

version-14
paurosello hace 7 años
committed by Rushabh Mehta
padre
commit
b8723e72da
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. +3
    -3
      frappe/website/doctype/web_form/templates/web_form.html

+ 3
- 3
frappe/website/doctype/web_form/templates/web_form.html Ver fichero

@@ -238,7 +238,7 @@
<div class="text-center slide-progress text-extra-muted">
{% for page in layout %}
<i data-idx="{{ loop.index }}" data-toggle="tooltip" data-placement="top"
title="{{ page.label or _("Page {0}").format(loop.index) }}" class="fa-fw
title="{{ _(page.label) or _("Page {0}").format(loop.index) }}" class="fa-fw
{% if loop.index==1 %}fa fa-circle{% else %}fa fa-circle-o{% endif %}"></i>
{% endfor %}
</div>
@@ -263,10 +263,10 @@
data-idx="{{ loop.index }}"
data-label="{{ page.label or _("Page {0}").format(loop.index) }}">
{% if page.label %}
<h2 class='text-center'>{{ page.label }}</h2>
<h2 class='text-center'>{{ _(page.label) }}</h2>
{% endif %}
{% if page.description %}
<p class='text-center text-muted small'>{{ page.description }}</p>
<p class='text-center text-muted small'>{{ _(page.description) }}</p>
<br>
{% endif %}



Cargando…
Cancelar
Guardar