$def with (perm_records, perm_pages) $var title: $_("[Admin Center] Site Permissions")
$:render_template("admin/menu")

$_("Site Permissions")

$_("Change the policy of who can edit the site.")
$ options = [] $ options.append(("/permission/open", "Anyone can edit")) $ options.append(("/permission/loggedinusers", "Only loggedin users can edit")) $ options.append(("/permission/restricted", "Only admins can edit"))
$_("This applies to /authors/*, /books/* and /works/* records.")
$:Dropdown("perm_records", options, id="id_root", value=perm_records).render()
$_("This applies to /about/*, /help/*, /dev/*, /docs/* etc.")
$:Dropdown("perm_pages", options, id="id_root", value=perm_pages).render()

  $_("Cancel")
$_("This updates "permission" and "child_permission" fields of /, /works, /books and /authors records in the database.")