Browse Source

fix(minor): success page button css (responsive)

(cherry picked from commit 7ae2202b75)
version-14
Shariq Ansari 2 years ago
committed by Mergify
parent
commit
7746bea3ad
3 changed files with 7 additions and 3 deletions
  1. +2
    -2
      frappe/public/js/frappe/web_form/web_form.js
  2. +4
    -0
      frappe/public/scss/website/web_form.scss
  3. +1
    -1
      frappe/website/doctype/web_form/templates/web_form.html

+ 2
- 2
frappe/public/js/frappe/web_form/web_form.js View File

@@ -422,7 +422,7 @@ export default class WebForm extends frappe.ui.FieldGroup {
render_success_page(data) {
if (this.allow_edit && data.name) {
$(".success-page").append(`
<a href="/${this.route}/${data.name}/edit" class="edit-button btn btn-default btn-md ml-2">
<a href="/${this.route}/${data.name}/edit" class="edit-button btn btn-default btn-md">
${__("Edit your response", null, "Button in web form")}
</a>
`);
@@ -430,7 +430,7 @@ export default class WebForm extends frappe.ui.FieldGroup {

if (this.login_required && !this.allow_multiple && !this.show_list && data.name) {
$(".success-page").append(`
<a href="/${this.route}/${data.name}" class="view-button btn btn-default btn-md ml-2">
<a href="/${this.route}/${data.name}" class="view-button btn btn-default btn-md">
${__("View your response", null, "Button in web form")}
</a>
`);


+ 4
- 0
frappe/public/scss/website/web_form.scss View File

@@ -318,6 +318,10 @@
.success-message {
margin-bottom: 1.6rem;
}

a {
margin: 0rem 0.3rem 1rem;
}
}

.web-list-container {


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

@@ -137,7 +137,7 @@
</div>
{% else %}
{% if show_list %}
<a href="/{{ route }}/list" class="show-list-button btn btn-default btn-md mr-2">{{ _("See previous responses", null, "Button in web form") }}</a>
<a href="/{{ route }}/list" class="show-list-button btn btn-default btn-md">{{ _("See previous responses", null, "Button in web form") }}</a>
{% endif %}
{% if not login_required or allow_multiple %}
<a href="/{{ route }}/new" class="new-btn btn btn-default btn-md">{{ _("Submit another response", null, "Button in web form") }}</a>


Loading…
Cancel
Save