Sfoglia il codice sorgente

Escaped success msg in web form. Fixes frappe/erpnext#9729 (#3643)

version-14
Nabin Hait 8 anni fa
committed by GitHub
parent
commit
698e2d8c69
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. +1
    -1
      frappe/docs/user/en/guides/basics/apps.md
  2. +2
    -1
      frappe/website/doctype/web_form/templates/web_form.html

+ 1
- 1
frappe/docs/user/en/guides/basics/apps.md Vedi File

@@ -12,7 +12,7 @@ Frappe ships with a boiler plate for a new app. The command `bench make-app
app-name` helps you start a new app by starting an interactive shell.


% bench make-app sample_app
% bench new-app sample_app
App Name: sample_app
App Title: Sample App
App Description: This is a sample app.


+ 2
- 1
frappe/website/doctype/web_form/templates/web_form.html Vedi File

@@ -350,9 +350,10 @@
{% block script %}

<script>
{% set seccess_msg = success_message.replace("'", "\'") %}
window.web_form_settings = {
allow_incomplete: {{ allow_incomplete or 0 }},
success_link: '<p>{{ success_message or _("Your information has been submitted") }}</p><p><a href="{{ success_url or "/" }}" class="btn btn-sm btn-default">{{ _("Continue") }}</a></p>',
success_link: '<p>{{ success_msg or _("Your information has been submitted") }}</p><p><a href="{{ success_url or "/" }}" class="btn btn-sm btn-default">{{ _("Continue") }}</a></p>',
datepicker_format: "{{ frappe.date_format }}",
web_form_doctype: "{{ doc_type }}",
web_form_name: "{{ name }}",


Caricamento…
Annulla
Salva