mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 22:09:21 +00:00
Can request update of posts creation level of the group.
This commit is contained in:
parent
1fb1e62fb6
commit
ddd54e05e5
@ -266,6 +266,42 @@ ComunicWeb.pages.groups.pages.settings = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//Group posts level
|
||||||
|
var postsLevelsForm = createElem2({
|
||||||
|
appendTo: formContainer,
|
||||||
|
type: "form",
|
||||||
|
class: "separated-block"
|
||||||
|
});
|
||||||
|
createElem2({
|
||||||
|
appendTo: postsLevelsForm,
|
||||||
|
type: "label",
|
||||||
|
innerHTML: "Posts creation level"
|
||||||
|
});
|
||||||
|
|
||||||
|
//Every members of the group
|
||||||
|
createFormGroup({
|
||||||
|
target: postsLevelsForm,
|
||||||
|
label: "Every members of the posts can create posts",
|
||||||
|
name: "group-posts-level",
|
||||||
|
type: "radio",
|
||||||
|
value: "members",
|
||||||
|
checked: settings.posts_level == "members"
|
||||||
|
});
|
||||||
|
|
||||||
|
//Moderators only
|
||||||
|
createFormGroup({
|
||||||
|
target: postsLevelsForm,
|
||||||
|
label: "Moderators and moderators only can create groups",
|
||||||
|
name: "group-posts-level",
|
||||||
|
type: "radio",
|
||||||
|
value: "moderators",
|
||||||
|
checked: settings.posts_level == "moderators"
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Group description
|
//Group description
|
||||||
var groupDescription = createFormGroup({
|
var groupDescription = createFormGroup({
|
||||||
target: formContainer,
|
target: formContainer,
|
||||||
@ -315,6 +351,7 @@ ComunicWeb.pages.groups.pages.settings = {
|
|||||||
virtual_directory: virtualDirectory.value,
|
virtual_directory: virtualDirectory.value,
|
||||||
visibility: visibilityForm.elements["group-visibility"].value,
|
visibility: visibilityForm.elements["group-visibility"].value,
|
||||||
registration_level: registrationLevelForm.elements["group-registration-level"].value,
|
registration_level: registrationLevelForm.elements["group-registration-level"].value,
|
||||||
|
posts_level: postsLevelsForm.elements["group-posts-level"].value,
|
||||||
description: groupDescription.value,
|
description: groupDescription.value,
|
||||||
url: groupURL.value
|
url: groupURL.value
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user