From a75fb8b63547b89267bb8fc87a0e78b65d140f8b Mon Sep 17 00:00:00 2001 From: roman-yagodin Date: Fri, 16 Apr 2021 10:24:43 +0300 Subject: [PATCH] Allow signature label customization #116 --- .../App_LocalResources/ViewDocuments.ascx.resx | 6 ++++++ .../ViewDocuments.ascx.ru-RU.resx | 6 ++++++ R7.Documents.Dnn/R7.Documents.Dnn.csproj | 3 +++ .../ViewModels/DocumentViewModel.cs | 6 +++++- .../ViewDocuments.ascx.Host.resx | 18 ++++++++++++++++++ .../ViewDocuments.ascx.ru-RU.Host.resx | 18 ++++++++++++++++++ 6 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 R7.Documents.Dnn/etc/volgau.com/App_LocalResources/ViewDocuments.ascx.Host.resx create mode 100644 R7.Documents.Dnn/etc/volgau.com/App_LocalResources/ViewDocuments.ascx.ru-RU.Host.resx diff --git a/R7.Documents.Dnn/App_LocalResources/ViewDocuments.ascx.resx b/R7.Documents.Dnn/App_LocalResources/ViewDocuments.ascx.resx index e68eb51..c97d8ef 100644 --- a/R7.Documents.Dnn/App_LocalResources/ViewDocuments.ascx.resx +++ b/R7.Documents.Dnn/App_LocalResources/ViewDocuments.ascx.resx @@ -66,4 +66,10 @@ Delete Selected with Files + + .sig + + + Digital Signature + diff --git a/R7.Documents.Dnn/App_LocalResources/ViewDocuments.ascx.ru-RU.resx b/R7.Documents.Dnn/App_LocalResources/ViewDocuments.ascx.ru-RU.resx index 9f215ed..79cdee1 100644 --- a/R7.Documents.Dnn/App_LocalResources/ViewDocuments.ascx.ru-RU.resx +++ b/R7.Documents.Dnn/App_LocalResources/ViewDocuments.ascx.ru-RU.resx @@ -66,4 +66,10 @@ Удалить отмеченные с файлами + + Электронная подпись + + + .sig + diff --git a/R7.Documents.Dnn/R7.Documents.Dnn.csproj b/R7.Documents.Dnn/R7.Documents.Dnn.csproj index cfa6494..b9c7c08 100644 --- a/R7.Documents.Dnn/R7.Documents.Dnn.csproj +++ b/R7.Documents.Dnn/R7.Documents.Dnn.csproj @@ -103,6 +103,7 @@ + @@ -140,6 +141,8 @@ + + PreserveNewest diff --git a/R7.Documents.Dnn/ViewModels/DocumentViewModel.cs b/R7.Documents.Dnn/ViewModels/DocumentViewModel.cs index d12c665..d03428e 100644 --- a/R7.Documents.Dnn/ViewModels/DocumentViewModel.cs +++ b/R7.Documents.Dnn/ViewModels/DocumentViewModel.cs @@ -188,7 +188,11 @@ public HtmlString SignatureLink { if (sigFile == null) { return new HtmlString (string.Empty); } - return new HtmlString ($".sig"); + + return new HtmlString ( + $"" + + $"{Dnn.LocalizeString ("SignatureLink_Label.Text")}"); } } diff --git a/R7.Documents.Dnn/etc/volgau.com/App_LocalResources/ViewDocuments.ascx.Host.resx b/R7.Documents.Dnn/etc/volgau.com/App_LocalResources/ViewDocuments.ascx.Host.resx new file mode 100644 index 0000000..327fe95 --- /dev/null +++ b/R7.Documents.Dnn/etc/volgau.com/App_LocalResources/ViewDocuments.ascx.Host.resx @@ -0,0 +1,18 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + <i class="fas fa-signature"></i> + + diff --git a/R7.Documents.Dnn/etc/volgau.com/App_LocalResources/ViewDocuments.ascx.ru-RU.Host.resx b/R7.Documents.Dnn/etc/volgau.com/App_LocalResources/ViewDocuments.ascx.ru-RU.Host.resx new file mode 100644 index 0000000..327fe95 --- /dev/null +++ b/R7.Documents.Dnn/etc/volgau.com/App_LocalResources/ViewDocuments.ascx.ru-RU.Host.resx @@ -0,0 +1,18 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + <i class="fas fa-signature"></i> + +