client/posts: respect edit privileges in sidebar

This commit is contained in:
rr-
2016-07-26 19:58:26 +02:00
parent 0db70f7951
commit 865c4f3b79
5 changed files with 78 additions and 63 deletions

View File

@ -59,6 +59,7 @@ function makeRadio(options) {
value: options.value,
type: 'radio',
checked: options.selectedValue === options.value,
disabled: options.readonly,
required: options.required,
}) +
_makeLabel(options, {class: 'radio'});
@ -75,6 +76,7 @@ function makeCheckbox(options) {
type: 'checkbox',
checked: options.checked !== undefined ?
options.checked : false,
disabled: options.readonly,
required: options.required,
}) +
_makeLabel(options, {class: 'checkbox'});