archived template preview
This commit is contained in:
@@ -107,6 +107,8 @@ safeRegisterElement('template-builder', class extends HTMLElement {
|
||||
withPayment: this.dataset.withPayment === 'true',
|
||||
isPaymentConnected: this.dataset.isPaymentConnected === 'true',
|
||||
withFormula: this.dataset.withFormula === 'true',
|
||||
withSendButton: this.dataset.withSendButton !== 'false',
|
||||
withSignYourselfButton: this.dataset.withSignYourselfButton !== 'false',
|
||||
withConditions: this.dataset.withConditions === 'true',
|
||||
currencies: (this.dataset.currencies || '').split(',').filter(Boolean),
|
||||
acceptFileTypes: this.dataset.acceptFileTypes
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
/>
|
||||
<template v-else>
|
||||
<a
|
||||
v-if="withSignYourselfButton"
|
||||
:href="template.submitters.length > 1 ? `/templates/${template.id}/submissions/new?selfsign=true` : `/d/${template.slug}`"
|
||||
class="btn btn-primary btn-ghost text-base hidden md:flex"
|
||||
:target="template.submitters.length > 1 ? '' : '_blank'"
|
||||
@@ -73,6 +74,7 @@
|
||||
</span>
|
||||
</a>
|
||||
<a
|
||||
v-if="withSendButton"
|
||||
:href="`/templates/${template.id}/submissions/new?with_link=true`"
|
||||
data-turbo-frame="modal"
|
||||
class="white-button md:!px-6"
|
||||
@@ -479,6 +481,16 @@ export default {
|
||||
required: false,
|
||||
default: true
|
||||
},
|
||||
withSendButton: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: true
|
||||
},
|
||||
withSignYourselfButton: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: true
|
||||
},
|
||||
inputMode: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
|
||||
Reference in New Issue
Block a user