diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/portal/static/src/xml/portal_signature.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/portal/static/src/xml/portal_signature.xml')
| -rw-r--r-- | addons/portal/static/src/xml/portal_signature.xml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/addons/portal/static/src/xml/portal_signature.xml b/addons/portal/static/src/xml/portal_signature.xml new file mode 100644 index 00000000..43456d9c --- /dev/null +++ b/addons/portal/static/src/xml/portal_signature.xml @@ -0,0 +1,35 @@ +<templates id="template" xml:space="preserve"> + + <!-- Template for the widget SignatureForm. --> + <t t-name="portal.portal_signature"> + <form method="POST"> + <input type="hidden" name="csrf_token" t-att-value="widget.csrf_token"/> + <div class="o_web_sign_name_and_signature"/> + <div class="o_portal_sign_controls my-3"> + <div class="text-right my-3"> + <button type="submit" class="o_portal_sign_submit btn btn-primary" disabled="disabled"> + <i class="fa fa-check"/> + <t t-esc="widget.sendLabel"/> + </button> + </div> + </div> + </form> + </t> + <!-- Template when the sign rpc is successful. --> + <t t-name="portal.portal_signature_success"> + <div class="alert alert-success" role="status"> + <span t-if="widget.message" t-esc="widget.message"/> + <span t-else="">Thank You!</span> + <a t-if="widget.redirect_url" t-att-href="widget.redirect_url"> + <t t-if="widget.redirect_message" t-esc="widget.redirect_message"/> + <t t-else="">Click here to see your document.</t> + </a> + </div> + </t> + <!-- Template when the sign rpc returns an error. --> + <t t-name="portal.portal_signature_error"> + <div class="o_portal_sign_error_msg alert alert-danger" role="status"> + <t t-esc="widget.error"/> + </div> + </t> +</templates> |
