From eda3a38e7bdd1d6adb5477bf3165ab64166b606e Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 4 Nov 2019 00:11:05 -0400 Subject: [PATCH] Update label and icon of the document sign form Label updated from "Save" to "Sign". Signed-off-by: Roberto Rosario --- mayan/apps/document_signatures/views.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mayan/apps/document_signatures/views.py b/mayan/apps/document_signatures/views.py index 4f436bc0c5..c5a1d8535e 100644 --- a/mayan/apps/document_signatures/views.py +++ b/mayan/apps/document_signatures/views.py @@ -25,7 +25,11 @@ from .forms import ( DocumentVersionSignatureCreateForm, DocumentVersionSignatureDetailForm ) -from .icons import icon_document_signature_list +from .icons import ( + icon_document_signature_list, + icon_document_version_signature_detached_create, + icon_document_version_signature_embedded_create +) from .links import ( link_document_version_signature_detached_create, link_document_version_signature_embedded_create, @@ -123,6 +127,8 @@ class DocumentVersionDetachedSignatureCreateView(FormView): def get_extra_context(self): return { 'object': self.get_document_version(), + 'submit_icon_class': icon_document_version_signature_detached_create, + 'submit_label': _('Sign'), 'title': _( 'Sign document version "%s" with a detached signature' ) % self.get_document_version(), @@ -220,6 +226,8 @@ class DocumentVersionEmbeddedSignatureCreateView(FormView): def get_extra_context(self): return { 'object': self.get_document_version(), + 'submit_icon_class': icon_document_version_signature_embedded_create, + 'submit_label': _('Sign'), 'title': _( 'Sign document version "%s" with a embedded signature' ) % self.get_document_version(),