/upstream/templates/type/permission/edit.tmpl
Type: /type/template
body: value: $def with (page, preview=False)

$ _x = ctx.setdefault('bodyid', 'admin')
$ _x = ctx.setdefault('usergroup', 'admin')

$ edit = thingedit(page)
$var title: $:edit.title
    
$:macros.databarEdit(page)

$if preview:
    <div class="clearfix"></div>
    <div id="preview">
        <div class="head">
            <h2>Preview</h2>
        </div>
    $:thingview(page)
    </div>
    <div class="clearfix"></div>

<div id="edit">
$:edit
</div>
plugin: openlibrary