Added Allow Comunic emails field

This commit is contained in:
Pierre 2018-04-18 11:54:06 +02:00
parent e065b6ac18
commit 4df770e68c

View File

@ -115,6 +115,14 @@ ComunicWeb.pages.settings.sections.general = {
value: infos.lastName value: infos.lastName
}); });
//Allow mails from Comunic
var allowEmails = createFormGroup({
target: target,
type: "checkbox",
label: "Allow Comunic to send you emails",
checked: infos.allow_comunic_mails
});
//Page settings //Page settings
add_space(target); add_space(target);
createElem2({ createElem2({
@ -248,6 +256,7 @@ ComunicWeb.pages.settings.sections.general = {
var settings = { var settings = {
firstName: firstName.value, firstName: firstName.value,
lastName: lastName.value, lastName: lastName.value,
allow_comunic_mails: allowEmails.checked,
isPublic: publicPage.checked, isPublic: publicPage.checked,
isOpen: openPage.checked, isOpen: openPage.checked,
allowComments: allowComments.checked, allowComments: allowComments.checked,