Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add placeholder for Feedback fields and Persian Localization #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions App_LocalResources/Settings.ascx.resx
Original file line number Diff line number Diff line change
Expand Up @@ -652,4 +652,70 @@ Send Copy </strong>– Enabling this option allows a copy of the f
<data name="valNoCaptchaSiteKey.ErrorMessage" xml:space="preserve">
<value>&lt;br /&gt;If you enable google NoCaptcha, you need to provide the Site Key</value>
</data>
<data name="plSubjectEditFieldPlaceholder.Text" xml:space="preserve">
<value>Subject Field Placeholder</value>
</data>
<data name="plSubjectEditFieldPlaceholder.Help" xml:space="preserve">
<value>Add Subject PlaceHoder Here</value>
</data>
<data name="plEmailFieldPlaceholder.Text" xml:space="preserve">
<value>Email Field Placeholder</value>
</data>
<data name="plEmailFieldPlaceholder.Help" xml:space="preserve">
<value>Add Email PlaceHoder Here</value>
</data>
<data name="plEmailConfirmFieldPlaceholder.Text" xml:space="preserve">
<value>Email Confirm Field Placeholder</value>
</data>
<data name="plEmailConfirmFieldPlaceholder.Help" xml:space="preserve">
<value>Add Email Confirm PlaceHoder Here</value>
</data>
<data name="plNameFieldPlaceholder.Text" xml:space="preserve">
<value>Name Field Placeholder</value>
</data>
<data name="plNameFieldPlaceholder.Help" xml:space="preserve">
<value>Add Name PlaceHoder Here</value>
</data>
<data name="plStreetFieldPlaceholder.Text" xml:space="preserve">
<value>Street Field Placeholder</value>
</data>
<data name="plStreetFieldPlaceholder.Help" xml:space="preserve">
<value>Add Street PlaceHoder Here</value>
</data>
<data name="plCityFieldPlaceholder.Text" xml:space="preserve">
<value>City Field Placeholder</value>
</data>
<data name="plCityFieldPlaceholder.Help" xml:space="preserve">
<value>Add City PlaceHoder Here</value>
</data>
<data name="plRegionFieldPlaceholder.Text" xml:space="preserve">
<value>Region Field Placeholder</value>
</data>
<data name="plRegionFieldPlaceholder.Help" xml:space="preserve">
<value>Add Region PlaceHoder Here</value>
</data>
<data name="plCountryFieldPlaceholder.Text" xml:space="preserve">
<value>Country Field Placeholder</value>
</data>
<data name="plCountryFieldPlaceholder.Help" xml:space="preserve">
<value>Add Country PlaceHoder Here</value>
</data>
<data name="plPostalCodeFieldPlaceholder.Text" xml:space="preserve">
<value>Postal Code Field Placeholder</value>
</data>
<data name="plPostalCodeFieldPlaceholder.Help" xml:space="preserve">
<value>Add Postal Code PlaceHoder Here</value>
</data>
<data name="plTelephoneFieldPlaceholder.Text" xml:space="preserve">
<value>Telephone Code Field Placeholder</value>
</data>
<data name="plTelephoneFieldPlaceholder.Help" xml:space="preserve">
<value>Add Telephone Code PlaceHoder Here</value>
</data>
<data name="plMessageFieldPlaceholder.Text" xml:space="preserve">
<value>Message Code Field Placeholder</value>
</data>
<data name="plMessageFieldPlaceholder.Help" xml:space="preserve">
<value>Add Message Code PlaceHoder Here</value>
</data>
</root>
2 changes: 1 addition & 1 deletion AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Imports System.Runtime.InteropServices
' You can specify all the values or you can default the Build and Revision Numbers
' by using the '*' as shown below:

<Assembly: AssemblyVersion("06.07.00.22")>
<Assembly: AssemblyVersion("06.07.00.43")>

<Assembly: AssemblyFileVersion("06.07.00.00")>
<Assembly: ComVisibleAttribute(False)>
127 changes: 127 additions & 0 deletions Components/Configuration.vb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Namespace DotNetNuke.Modules.Feedback
Private _labelDisplayPosition As LabelDisplayPositions
Private _width As System.Web.UI.WebControls.Unit
Private _rows As Integer

Private _captchaVisibility As CaptchaVisibilities
Private _captchaAudio As Boolean
Private _captchaCase As Boolean
Expand All @@ -111,6 +112,19 @@ Namespace DotNetNuke.Modules.Feedback
Private _subjectFieldType As SubjectFieldTypes
Private _subject As String


Private _subjectplaceholder As String
Private _emailplaceholder As String
Private _confirmemailplaceholder As String
Private _nameplaceholder As String
Private _streetplaceholder As String
Private _cityplaceholder As String
Private _regionplaceholder As String
Private _countryplaceholder As String
Private _postalcodeplaceholder As String
Private _telephoneplaceholder As String
Private _messageplaceholder As String

Private _sendTo As String
Private _sendToRoles As String
Private _sendFrom As String
Expand Down Expand Up @@ -381,6 +395,7 @@ Namespace DotNetNuke.Modules.Feedback
End Set
End Property


Public Property CaptchaVisibility() As CaptchaVisibilities
Get
Return _captchaVisibility
Expand Down Expand Up @@ -711,6 +726,96 @@ Namespace DotNetNuke.Modules.Feedback
_akismetSendModerator = value
End Set
End Property
Public Property SubjectPlaceholder() As String
Get
Return _subjectplaceholder
End Get
Set(ByVal value As String)
_subjectplaceholder = value
End Set
End Property

Public Property EmailPlaceholder() As String
Get
Return _emailplaceholder
End Get
Set(ByVal value As String)
_emailplaceholder = value
End Set
End Property
Public Property ConfirmEmailPlaceholder() As String
Get
Return _confirmemailplaceholder
End Get
Set(ByVal value As String)
_confirmemailplaceholder = value
End Set
End Property
Public Property NamePlaceholder() As String
Get
Return _nameplaceholder
End Get
Set(ByVal value As String)
_nameplaceholder = value
End Set
End Property
Public Property StreetPlaceholder() As String
Get
Return _streetplaceholder
End Get
Set(ByVal value As String)
_streetplaceholder = value
End Set
End Property
Public Property CityPlaceholder() As String
Get
Return _cityplaceholder
End Get
Set(ByVal value As String)
_cityplaceholder = value
End Set
End Property
Public Property RegionPlaceholder() As String
Get
Return _regionplaceholder
End Get
Set(ByVal value As String)
_regionplaceholder = value
End Set
End Property
Public Property CountryPlaceholder() As String
Get
Return _countryplaceholder
End Get
Set(ByVal value As String)
_countryplaceholder = value
End Set
End Property
Public Property PostalCodePlaceholder() As String
Get
Return _postalcodeplaceholder
End Get
Set(ByVal value As String)
_postalcodeplaceholder = value
End Set
End Property
Public Property TelephonePlaceholder() As String
Get
Return _telephoneplaceholder
End Get
Set(ByVal value As String)
_telephoneplaceholder = value
End Set
End Property
Public Property MessagePlaceholder() As String
Get
Return _messageplaceholder
End Get
Set(ByVal value As String)
_messageplaceholder = value
End Set
End Property


#End Region

Expand Down Expand Up @@ -829,6 +934,17 @@ Namespace DotNetNuke.Modules.Feedback
_akismetEnable = GetSetting("Feedback_AkismetEnable", False)
_akismetKey = GetSetting("Feedback_AkismetKey", String.Empty)
_akismetSendModerator = GetSetting("Feedback_AkismetSendModerator", False)
_subjectplaceholder = GetSetting("Feedback_SubjectPlaceholder", String.Empty).ToString
_emailplaceholder = GetSetting("Feedback_EmailPlaceholder", String.Empty).ToString
_confirmemailplaceholder = GetSetting("Feedback_ConfirmEmailPlaceholder", String.Empty).ToString
_nameplaceholder = GetSetting("Feedback_NamePlaceholder", String.Empty).ToString
_streetplaceholder = GetSetting("Feedback_StreetPlaceholder", String.Empty).ToString
_cityplaceholder = GetSetting("Feedback_CityPlaceholder", String.Empty).ToString
_regionplaceholder = GetSetting("Feedback_RegionPlaceholder", String.Empty).ToString
_countryplaceholder = GetSetting("Feedback_CountryPlaceholder", String.Empty).ToString
_postalcodeplaceholder = GetSetting("Feedback_PostalCodePlaceholder", String.Empty).ToString
_telephoneplaceholder = GetSetting("Feedback_TelephonePlaceholder", String.Empty).ToString
_messageplaceholder = GetSetting("Feedback_MessagePlaceholder", String.Empty).ToString
End If
End Sub

Expand Down Expand Up @@ -979,6 +1095,17 @@ Namespace DotNetNuke.Modules.Feedback
.UpdateModuleSetting(_moduleId, "Feedback_NoCaptchaSiteKey", _noCaptchaSiteKey)
.UpdateModuleSetting(_moduleId, "Feedback_NoCaptchaSecretKey", _noCaptchaSecretKey)

.UpdateModuleSetting(_moduleId, "Feedback_SubjectPlaceholder", _subjectplaceholder)
.UpdateModuleSetting(_moduleId, "Feedback_EmailPlaceholder", _emailplaceholder)
.UpdateModuleSetting(_moduleId, "Feedback_ConfirmEmailPlaceholder", _confirmemailplaceholder)
.UpdateModuleSetting(_moduleId, "Feedback_NamePlaceholder", _nameplaceholder)
.UpdateModuleSetting(_moduleId, "Feedback_StreetPlaceholder", _streetplaceholder)
.UpdateModuleSetting(_moduleId, "Feedback_CityPlaceholder", _cityplaceholder)
.UpdateModuleSetting(_moduleId, "Feedback_RegionPlaceholder", _regionplaceholder)
.UpdateModuleSetting(_moduleId, "Feedback_CountryPlaceholder", _countryplaceholder)
.UpdateModuleSetting(_moduleId, "Feedback_PostalCodePlaceholder", _postalcodeplaceholder)
.UpdateModuleSetting(_moduleId, "Feedback_TelephonePlaceholder", _telephoneplaceholder)
.UpdateModuleSetting(_moduleId, "Feedback_MessagePlaceholder", _messageplaceholder)

End With
Entities.Modules.ModuleController.SynchronizeModule(_moduleId)
Expand Down
Loading